Start the free course

Building and integrating

Which API is best for Python?

The best API for Python is one that gives your program the information it needs. If you want to display tomorrow’s weather, look for a weather API. If you want to show books, look for a book API. Python can use many APIs; they do not have to be written in Python themselves.

For a first exercise, choose an API with clear instructions and a small answer you can understand. For example, ask for one book and find its title in the answer. Leave complicated sign-in steps and large amounts of data for later.

You may also see Python tools mentioned alongside APIs. Requests helps your program send a request. FastAPI helps you build your own API. Those are tools for working with APIs, rather than sources of weather or book information.

Further reading

Browse all API questions