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. 😊

8
@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
@PythonDeveloper98 2024-05-23

Thankyou so much for video, Love from India❤❤❤

2
@utrodus 2024-05-24

Thanks tim 🎉 you’re the best 😊

1
@colinvon8971 2024-07-11

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

1
@GeorgAubele 2024-05-27

Great tutorial - thanks a lot!

1
@salvadorcobian4302 2025-09-25

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

0
@doggo104 2024-05-24

Need the rest of the Rust series

0
@KayderimGameplays 2024-05-23

Thanks tim, i was having trouble with with this API thing, turned out much simpler than what i expected

0
@alimihakeem841 2024-11-05

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

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