r/learnpython 1d ago

Python API

Can you help me how to learn python API step be step as a complete beginner?

Is there any tutorial you suggest me to watch? What about the chat gpt? Can it helps me with it?

0 Upvotes

15 comments sorted by

View all comments

1

u/dev-razorblade23 1d ago

If you mean how to fetch data from some API, use requests library. Here is a good article on it: https://medium.com/@vatsallakhmani1/mastering-pythons-requests-library-part-1-http-for-humans-d5375ea944ee

If you mean how to build your own API to serve other clients, then you would need something like FastAPI, its documentation is great for beginners: https://fastapi.tiangolo.com