Navigate Select ESC Close

How To Create a Python API With FastAPI - Full Tutorial

2024-05-23 Education
79.6k
2.5k
64
Tech With Tim
Tech With Tim
2.0m subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

Host your API with Hostinger by going to: https://hostinger.com/TechwithTim and using my code TECHWITHTIM In today's video I'm going to be showing you guys how you can create your own API using Python for web applications. API (application programming interface) essentially allows one piece of software to request data from another and receive a response. If you want to land a developer job: https://techwithtim.net/dev 🎞 Video Resources 🎞 How to host this FastAPI: https://fastapi.tiangolo.com/vi/deployment/manually/ Finished Code: https://github.com/techwithtim/Fast-API-CRUD-App/tree/main Fix Pip (MacOS): https://www.youtube.com/watch?v=E-WhAS6qzsU Fix Pip (Windows): https://www.youtube.com/watch?v=AdUZArA-kZw ⏳ Timestamps ⏳ 00:00 | What is an API? 00:40 | CRUD 01:19 | Request/Response 01:38 | JSON 04:15 | FastAPI Overview 04:44 | Install/Setup 05:35 | Running FastAPI 09:00 | Pydantic Models 12:02 | Post Request 13:39 | Get Requests 15:57 | Path Parameters 17:45 | Put Requests 20:30 | Delete Requests 22:10 | Testing the API 23:41 | Small Fix To Delete Request Hashtags #api #pythonprogramming #techwithtim

Top Comments (10)

@francoisschoeman5350 2024-05-23

No database integration, auth, security, best practices, headers, form data, middleware, CORS, testing, project splitting or deployment. Nice video, but if you are including "Full Tutorial" in your title, make sure it's a full tutorial. 😊

6
@SandyLearner 2024-05-23

Hi @Tim, Very much appreciated for putting such Project based videos on Python. A earnest Request can you post Python Automation for DevOps Automation with Microservice Dev. It's very rare in YouTube to see such videos . Usage of adv 3rd party modules , Virtual Env for Task Automation 🎉🎉

4
@kimeg7294 2024-07-12

I've had a really funny day at work. We have a K8S cluster set up and implemented a very basic CRUD structure using fastapi which creates or deletes argo workflows. The upper heads seem to love this idea, but one guy accidently ran a pipeline that generates thousands of workflows which brought down the entire cluster. You can also write a simple perl script to send an infinite amount of requests to burn down EVERY node and its cores in no time.

3
@imabuzarr 2024-05-23

Please create FastAPI complete tutorial

3
@colinvon8971 2024-07-11

That's really like Flask + RestX, but much more simpler, great tutorial

1
@alimihakeem841 2024-11-05

Thanks for giving the general overview on fastapi. I found it helpful

0
@salvadorcobian4302 2025-09-25

More like an intro tutorial, but very nice indeed. Thank you for your quality work.

0
@Sebastian231995 2025-12-14

thank you some much for making this kind of videos!

0
@cindaellas 2025-05-15

very very good tutorial! thanks a lot! greetings from germany

0
@doggo104 2024-05-24

Need the rest of the Rust series

0

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot