An API is just an interface of callable functions. It can be a code library that simplifies some complex tasks, a web API (which is what this video talks about) or a bunch of functions that a running process on your computer exposes for other programs to interact with
great video, explain the concept in a simple manner, no fuzz, no-frills. I wish a video like this existed when I created my first API a couple of years ago.
This definition of API is completely in the context of web development. There are lots of non web based APIs provided by python packages for things like machine learning, scientific computing etc. and distinguishing between the two at the start of the video would be helpful for people from non web based backgrounds.
I was wondering the same thing… the notion of an API in computer science predates the internet by many, many years. All that low level stuff the browser is doing so users can run web apps? Yeah, generally exposed through platform API. 😊
Great presenter for every level learner! Your kind of tech people are rare. You are not only a outstanding performer in your profession but also a great presenter well organized and 100% clarity.
Nice video, as always, though I'd just suggest making a virtual environment (I know you know this, but the people watching/following the tutorial might not), especially since you're using python, so it's super easy :)
Ohhhh Iwatched it already, I'm giving a rewatch to it and look for a flask course. I can think of making my python scripts accessible from the web. Thats a super power.
At 8:33, I'm getting a 404 error. My url stops at :5000 and doesn't list 'get-user' etc. I went through the code letter by letter and can't find what I might be missing. Anyone have any ideas?
6 Years experience in every aspect computing and technology but somehow I never came across API development, very interesting. I've just been calling and calling them but never writing them
sweet video dude,, you've honestly been helping me for like 4 years at least now with Python tutorials and school. I want to start getting into the field now but I dont know how to start. Thank you for your guides
GET routes part is wrong. I get 404 error despite seemingly having identical code. What is unsaid in this part is that you need to type this address. It is quite confusing at first where in the code this get-user 123?extra="hello" is referenced and why base link which your server gives you suddenly stops working.
same here. Did you happen to get a solution? I cannot fathom, for the love of all that is holy, where 123 is coming from. Now I am debugging my first API.
Hey Tim, in this video you looked at creating APIs with Flask and the way it is done is mostly with functions and decorators but at the end of the video there was a recommendation to your full Flask API video. When I watched the full Flask API video it seemed to be using class based views, or just a completely different style to what is showed in the video. So could you make a new updated longer form tutorial on using Flask for creating APIs and in it could you discuss about whether to use classes or functions with annotations and if we should use one when we should. Thanks for this vid because I was really happy to learn how to get a simple API up and running with Python.
I was just thinking i will be need like this content .....and at same time you posted what a great time thanks for this tim very helpful .....i am working on projects flask
Fantastic tutorial! Concise yet comprehensive. Appreciate the step-by-step approach. Simplifies Python API creation. Thank you for sharing your expertise!
i tried the get part and got an error : The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Great vid thanks. I think you might have missed some info if you can confirm. When you demo the GET request you're using the id:123, however we don't set that up so we can't repeat the steps as you have as you have presumably already created a user in this scenario?
Great tutorial, followed along and it was easy to understand. I guess a great follow up would be a video explaining how to use this with a real example.
Is there any way to change the name of C:\Users\Tim to C:\Users\Prateek, I have this problem in my laptop where it's name is 91700 and I wanna change it to prateek(my actual name)
Anyone know what terminal he is using? I am on Windows and my Cmd Prompt does not look like his. I am very new to coding so any advice would be appreciated.
Hi, I need to create an api with python to modify the banner of different servers and host, does someone have an idea about how to develop this api for a practice? This is new for me
i've recently watched your RUclips video on why random generated numbers are not really random. I have a case that i've been working on figuring out. There is a Game that produces decimal generated numbers randomly and the play is for you to predict the next number that it will generate like it gives out 2.92, 1.65, 1.04, 3.75, 6.73, 1.53 ...... it may even reach 10000.0 some times. Is there a way that i can use those previous generated numbers to predict the next numbers that it will generate?
I like all of Tech's videos.... However, I think the main take away from the comments is that the information is dijointed and confused. First, we have to accept that this is a advertisement for paid content and that this is a sponsored video. This is all very acceptable. The takeaway is that the content is created to give the viewer the vocabulary around Web-AP. This is not meant to be a roadmap to creating a web-api within an application. The only criticism is that the producers and writers used advanced coding techniques that do not make it easy for the intended audience to follow the workflow. This is not saying that a viewer should be able to code an web-api, its meant that the user can not follow the code workflow. In short, the writers could give a "what to expect" section on the front and make this video accessible.
Hi @TechWithTim Please recommend a SAST & DAST tool specifically for Python based web application. I am aware that for web application we can use any available tool, however I am curious for only Flask and Django based web application.
Im not sure if thats a "my-perspective"-problem, because with Python API i actually thought u re going to teach how to write an API and not a REST APi :S if its not a "my-perspective"-problem, could u change the title to Rest API?
problem with that is most people dont know what a dunder member is, so if you dont want to confuse the average learner then it’s better to use terms that theyll understand in the meantime
Your amazing - But why do you need to have som much speed in your tutorials ? I might be the only one thinking it would be nicer to have a slower rytm...
great video but i had to slow it down to .75 playback to keep up with what you were saying/doing, could you please slow it down for us beginners, as the info is valuable but i have to playback every 10 seconds
Whats next, show your skills? New ground level project 1. CodeCraft Duel: Super Agent Showdown 2. Pixel Pioneers: Super Agent AI Clash 3. Digital Duel: LLM Super Agents Battle 4. Byte Battle Royale: Dueling LLM Agents 5. AI Code Clash: Super Agent Showdown 6. CodeCraft Combat: Super Agent Edition 7. Digital Duel: Super Agent AI Battle 8. Pixel Pioneers: LLM Super Agent Showdown 9. Byte Battle Royale: Super Agent AI Combat 10. AI Code Clash: Dueling Super Agents Edition
Rapidly build and deploy APIs in seconds with DreamFactory ! bit.ly/3M1TAP7
not another monthly subscription app
An API is just an interface of callable functions. It can be a code library that simplifies some complex tasks, a web API (which is what this video talks about) or a bunch of functions that a running process on your computer exposes for other programs to interact with
12分でPythonでAPIを作成する方法について、とても有益でした。短時間で実際にAPIを作成できることができ、Flaskを使ったシンプルな実装がとてもわかりやすかったです。APIの基本的な構造やエンドポイントの作成、レスポンスの返し方など、実践的な内容を短時間で学べて非常に効率的でした。この方法を使って、今後のプロジェクトでも迅速にAPIを作成できると思います。
thank you for being a huge part of the tech industry.. we appreciate you.
next video should be on how to deploy the sites, especially using free services like pythonanywhere
great video, explain the concept in a simple manner, no fuzz, no-frills. I wish a video like this existed when I created my first API a couple of years ago.
This definition of API is completely in the context of web development. There are lots of non web based APIs provided by python packages for things like machine learning, scientific computing etc. and distinguishing between the two at the start of the video would be helpful for people from non web based backgrounds.
Actually that’s a good point, an oversight from me, thanks for the feedback!
i was about to say the same. The video is great but not usefull for all purposes
Yeah, more like "REST API" 🙂
I was wondering the same thing… the notion of an API in computer science predates the internet by many, many years. All that low level stuff the browser is doing so users can run web apps? Yeah, generally exposed through platform API. 😊
I want to know Api for machine learning. Does anyone have good resources for it
Great presenter for every level learner! Your kind of tech people are rare. You are not only a outstanding performer in your profession but also a great presenter well organized and 100% clarity.
Appreciate that so much!
True
just love that you get to point fast and cover just enough details to get people going! Bravo!
Thanks for featuring DreamFactory in this video! Keep up the great work! 👍😊
Nice video, as always, though I'd just suggest making a virtual environment (I know you know this, but the people watching/following the tutorial might not), especially since you're using python, so it's super easy :)
Read my mind
Hi
Ohhhh Iwatched it already, I'm giving a rewatch to it and look for a flask course. I can think of making my python scripts accessible from the web. Thats a super power.
This was such a great explanation of an API. Great editing too! Well done
Very great start to building APIs with Python. Thanks Tim!
Nice, simple, and right-to-the-point tutorial.
At 8:33, I'm getting a 404 error. My url stops at :5000 and doesn't list 'get-user' etc. I went through the code letter by letter and can't find what I might be missing. Anyone have any ideas?
I think you have to put in /get-user/123?extra="hello" in the url manually and then it works. I had the same issue.
@@awesomegirl5315 I'll give that a try, but doesn't that defeat the purpose of the code? Shouldn't it do that for you? Sorry if I sound ignorant. I am
Same problem...
@@awesomegirl5315 Yes, you have to type it in manually. I just tried it. Thank you!
Thanks!
6 Years experience in every aspect computing and technology but somehow I never came across API development, very interesting. I've just been calling and calling them but never writing them
sweet video dude,, you've honestly been helping me for like 4 years at least now with Python tutorials and school. I want to start getting into the field now but I dont know how to start. Thank you for your guides
GET routes part is wrong. I get 404 error despite seemingly having identical code. What is unsaid in this part is that you need to type this address. It is quite confusing at first where in the code this get-user 123?extra="hello" is referenced and why base link which your server gives you suddenly stops working.
I have the exact same problem, I'm scrolling through the comments for awnsers.
same here. Did you happen to get a solution? I cannot fathom, for the love of all that is holy, where 123 is coming from. Now I am debugging my first API.
nvm. got it to work. I missed the @ before app.route
No idea what you did there, since it's my first time using Flask, but it works. Thank you
Thank you so much for this amazing video! Very clear and easy to follow. Keep up the great work!
Best explanation I've seen yet. Everywhere else they speak of waiters and what not... This is it simple and to the point...
The delivery of the information was very clear, but I had difficulty understanding the "why" behind a lot of things you did in the video.
Exactly
Hey Tim, in this video you looked at creating APIs with Flask and the way it is done is mostly with functions and decorators but at the end of the video there was a recommendation to your full Flask API video. When I watched the full Flask API video it seemed to be using class based views, or just a completely different style to what is showed in the video. So could you make a new updated longer form tutorial on using Flask for creating APIs and in it could you discuss about whether to use classes or functions with annotations and if we should use one when we should. Thanks for this vid because I was really happy to learn how to get a simple API up and running with Python.
I watched that video first and I was so confused before coming here
Simple and easy video. The video helped me debug my code! Thanks a lot!
Great introduction! I really appreciate it!
Bro really taught web development in python in 12 minutes
I was just thinking i will be need like this content .....and at same time you posted what a great time thanks for this tim very helpful .....i am working on projects flask
Fantastic tutorial! Concise yet comprehensive. Appreciate the step-by-step approach. Simplifies Python API creation. Thank you for sharing your expertise!
Great video like always Tim 👍🏽🍷
Thank you so much Tim for your lessons! You helped me a lot to know more about Python amenities
Can you show post request with connecting with database, It will help full? Thank you
i tried the get part and got an error :
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Same error for me!
Thanks, its a really good Video for starting with API 👍👍👍👍
Simple and to the point
Thank you very much for sharing, very interesting topic! Keep it up 🔥
Great vid thanks. I think you might have missed some info if you can confirm. When you demo the GET request you're using the id:123, however we don't set that up so we can't repeat the steps as you have as you have presumably already created a user in this scenario?
I have this problem too
Very timely video! Thank you!
Great tutorial, followed along and it was easy to understand. I guess a great follow up would be a video explaining how to use this with a real example.
Why not use FastAPI?
Nice one Tim.. Thanks for sharing this great and wonderful content.. Hoping to see more beneficial videos on flask.
Awesome Explanation❤
just a note: when you call the api in the url, you do not need to put "extra" between quotes. ;)
why dont you use , pipenv? how can you push this to docker image?
Which video editor do you use
great video! I repeated all your steps and it worked very well! thanks!
Can you create api using python without framework like flask , diango
Thank you so much. I like yours tutorials
Would to do a REST API for python too?
thx a lot for the great tutorial!
I needed this vid, Thank you
Brother Tim, do you have this course with Django please???
Great information. Thanks for sharing . How can we increase timeout for the api here as the default timeout is 1 minute ?
Great video, just the right amount of information at the right pace, and the name should be changed to say "in 10 Minutes".
So clear.. thanks
Someone would tell me the configuration of the font?? I loved it
How do you install libraries without needing a venv
Damn i remember when u had 20k. Time flies
What keyboard do you have?
Is there any way to change the name of C:\Users\Tim to C:\Users\Prateek, I have this problem in my laptop where it's name is 91700 and I wanna change it to prateek(my actual name)
not able to install flask tried changing the virtual environment as well
someone if faced the same issue please help
Anyone know what terminal he is using? I am on Windows and my Cmd Prompt does not look like his. I am very new to coding so any advice would be appreciated.
Vscode
Great video!
You are a very good teacher I learn better from your ch.thanks🤞🏽
Hi, Can requests be used to test and not postman??
Thank you so much for this video
Cam someone explain m3 why do we do that?
so helpful!
mine has error flask_app can you guys help me to setup my flask
Can you make a playlist in depth for beginners to advance
Thank you sir!
vary good video... Thanks
This is cool, what's the price?
Another great video :)
how to open dream factory admin page?
And why dont you implement rest into it?
Hi, I need to create an api with python to modify the banner of different servers and host, does someone have an idea about how to develop this api for a practice?
This is new for me
i've recently watched your RUclips video on why random generated numbers are not really random. I have a case that i've been working on figuring out. There is a Game that produces decimal generated numbers randomly and the play is for you to predict the next number that it will generate like it gives out 2.92, 1.65, 1.04, 3.75, 6.73, 1.53 ...... it may even reach 10000.0 some times. Is there a way that i can use those previous generated numbers to predict the next numbers that it will generate?
I like all of Tech's videos.... However,
I think the main take away from the comments is that the information is dijointed and confused. First, we have to accept that this is a advertisement for paid content and that this is a sponsored video. This is all very acceptable.
The takeaway is that the content is created to give the viewer the vocabulary around Web-AP. This is not meant to be a roadmap to creating a web-api within an application. The only criticism is that the producers and writers used advanced coding techniques that do not make it easy for the intended audience to follow the workflow. This is not saying that a viewer should be able to code an web-api, its meant that the user can not follow the code workflow.
In short, the writers could give a "what to expect" section on the front and make this video accessible.
Hi @TechWithTim Please recommend a SAST & DAST tool specifically for Python based web application. I am aware that for web application we can use any available tool, however I am curious for only Flask and Django based web application.
Thanks man
do I need to pay before using it
Thank you
Thanks so much
PLEASE SOMEONE HELP WHAT iS HE USNG iS THAT REPLiT? AND iF SO HOW DO i PULL UP THAT TERMiNAL ALL i HAVE iS SHELL AND SHELL DOESNT LET ME PASTE ANTHiNG
Спасибо за понятное изложение материала
thanks so much. brilliat
nice video and the beard suits you well.
I love flask
wow, this is way easier than nodejs with expressjs.
Im not sure if thats a "my-perspective"-problem, because with Python API i actually thought u re going to teach how to write an API and not a REST APi :S
if its not a "my-perspective"-problem, could u change the title to Rest API?
Mi o afonso já está a responder as perguntas, estou com dificuldades
instead of saying "underscore underscore" you can say "dunder" which is double underscore
problem with that is most people dont know what a dunder member is, so if you dont want to confuse the average learner then it’s better to use terms that theyll understand in the meantime
Should’ve made this video with FastAPI it’s much better and easier
Your amazing - But why do you need to have som much speed in your tutorials ? I might be the only one thinking it would be nicer to have a slower rytm...
youre not alone, i had to reduce the playback speed and he was STILL moving lightning fast lol
great vid
Make a tutorial on Falcon microframework
great video but i had to slow it down to .75 playback to keep up with what you were saying/doing, could you please slow it down for us beginners, as the info is valuable but i have to playback every 10 seconds
Whats next, show your skills? New ground level project
1. CodeCraft Duel: Super Agent Showdown
2. Pixel Pioneers: Super Agent AI Clash
3. Digital Duel: LLM Super Agents Battle
4. Byte Battle Royale: Dueling LLM Agents
5. AI Code Clash: Super Agent Showdown
6. CodeCraft Combat: Super Agent Edition
7. Digital Duel: Super Agent AI Battle
8. Pixel Pioneers: LLM Super Agent Showdown
9. Byte Battle Royale: Super Agent AI Combat
10. AI Code Clash: Dueling Super Agents Edition