Programming and data

Learn APIs: what to know and where to start

An API is a defined way for one piece of software to ask another for data or an action, usually over the web. Developers, analysts and anyone connecting tools together use them.

Outcomes

What you will be able to do with APIs

  • Read API documentation and make a first request
  • Interpret status codes and JSON responses
  • Call an API from code and handle errors
  • Keep keys and tokens secure
  • Design and document a simple API

Learning path

How to learn APIs, in order

  1. Beginner

    Understand requests and responses

    Learn what an API is, how HTTP methods, status codes and JSON work, and how to call a public API with a tool such as a browser or Postman. You are ready when you can fetch data and read the response.

  2. Intermediate

    Call and secure APIs from code

    Write code that calls APIs, handles errors, paging and rate limits, and uses keys or tokens safely. You are ready when you can build a small script that depends on a third-party API and fails gracefully.

  3. Advanced

    Design and document your own API

    Learn resource design, versioning, authentication and clear documentation such as OpenAPI. You are ready when another developer can use your API from the documentation alone.

Keep going

Where to go next

The first is the natural next step from this page. The rest follow what you have been reading.