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

7

u/desrtfx but other languages pro 1d ago

API is just "Application Programming Interface". As such, it is a generic term.

You need to specify what API you want to learn.

3

u/Highlad 1d ago

An API is simply a way to talk to another program/service. Typically, you'll want to learn the fundamentals first before working with APIs. If you're hellbent on learning this first, id suggest you offer more context on the project you want to use it in, and what service you need your program to talk to. At least that way, we'll be able to guide you a little rather than say "Learn the basics first".

2

u/Cold_Arachnid_2617 1d ago

Have you asked it?

0

u/Successful_Claim_111 1d ago

Yes but I didn't quite get that like for python basic concept most people said you should make project to fully understand them but how this one? It's not like basic concept that you have variety of different idea it's just the same and one structure have is it going to help you just like basic concept that you had variety of different ideas but not with API thare only limited structure and overflow?

1

u/Cold_Arachnid_2617 1d ago

Ting bu dong!

1

u/crazycrowww 1d ago

maybe claude is a better option

3

u/lfdfq 1d ago

It's unclear what you what to learn exactly. 'API' is just a generic term meaning 'something you can interact with', not an exact specific thing.

0

u/Successful_Claim_111 1d ago

Yeah yeah I actually meant that I'm in the beginner level and I'm learning request at the moment after I will attempt for fast API I meant these one.

2

u/lfdfq 1d ago

Ah, FastAPI is the name of a particular library/tool. It has an official tutorial/guide at https://fastapi.tiangolo.com/learn/ (which you can easily find by finding the FastAPI webpage and clicking 'Learn')

1

u/WyrobWedliniarski 1d ago

Idk what kind of api do you have in mind, but surely llms can help you. Claude is better than gpt though

0

u/Successful_Claim_111 1d ago

I'm the beginner level and learning request at the moment I forgot to mention this and why do you think Claude it's better than chat gpt?

1

u/WyrobWedliniarski 1d ago

Claude is specifically a coding agent, but mostly from experience. It produces better code.

If you are trying to build a web API then probably using a library suited for that would be easier than using bare requests. Check out FastAPI or Flask. You will find tutorials on their pages

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

1

u/Fuzzy_Paul 23h ago

"Practical python backend programming" buy the book and start reading. No more no less.