Search⌘ K
AI Features

What are APIs?

Explore the concept of APIs and their role in connecting the frontend and backend of applications. Learn how web APIs use HTTP protocols to deliver specific data like JSON or images, and understand how to make requests with query strings. This lesson equips you to integrate external data sources into React Native apps, handle asynchronous requests, and anticipate possible errors.

We'll cover the following...

What is an API?

In most applications, we’ll see that there are two parts:

  • Frontend
  • Backend

The frontend often handles the UI and how the application looks. The backend handles the database and other logic.

We need to establish a link between the backend and the frontend.

Web APIs

The term web APIs is frequently used when discussing APIs in relation to web development. A web API is an API that can be accessed using the HTTP protocol.

Typically, when we request a webpage, we get all sorts of data, like HTML, CSS, and ...