Blog / Development

What is an API? A plain-English guide for app owners

What is an API? A plain-English guide for app owners

Short answer

  • An API (application programming interface) is a set of rules that lets one piece of software ask another for data or an action, such as a price, a map or a card payment.
  • Most apps lean on several third-party APIs: maps, payments, logins, push notifications, email, SMS and, more and more, AI models.
  • Many APIs start free. Google Maps Platform gives 10,000 free map loads a month, then charges $7 per 1,000 (checked 6 December 2026).
  • An API key identifies your app to the provider. Some keys are safe inside an app (Stripe’s publishable key); secret keys belong on a server only.
  • Rate limits cap how many requests you can send. Go over and you get an HTTP 429 “Too Many Requests” error.

Open a food delivery app and it shows a map, a list of restaurants, a card form and a little “your rider is 4 minutes away” note. The app’s own team probably built very little of that from scratch. They rented it, piece by piece, through APIs.

If you’re planning an app, paying for one, or trying to understand what your developer keeps talking about, APIs are the one technical idea worth getting your head round. They decide what your app can do, what it costs to run each month and a good share of what can go wrong.

This is part of our guide to how apps are built, which covers the front end, back end, database and hosting. Here I go deeper on APIs alone: what they are, how apps use them, keys and limits, what they cost, and REST versus GraphQL in plain English. All prices below were checked on each provider’s own page on 6 December 2026.

What is an API in simple terms?

An API is a menu of requests one piece of software will accept from another, plus the rules for asking and the shape of the answer.

Mozilla’s developer docs describe it as a contract between the application offering it and other software, rather than through a screen a person taps. Your app sends a request in the agreed format. The other system does the work and sends back a reply.

The waiter comparison is overused for a reason. You (the app) give your order to the waiter (the API), who knows exactly which orders the kitchen (the other company’s servers) accepts, and brings back the plate.

Three words you’ll hear a lot:

  • Endpoint: the web address a request goes to, such as one address for “create a payment” and another for “refund a payment”.
  • Request and response: the message your app sends and the answer it gets back. On the web, the answer often comes as JSON, a plain text format of labels and values.
  • Third-party API: one run by another company (Stripe, Google, Twilio). A first-party API is your own app’s back end, which your phone app talks to in exactly the same way.

That last point matters. Even an app with zero outside services still uses an API: the one between the app on the phone and your own server.

How do apps use APIs? Real examples

Apps use APIs to borrow abilities they’d never build themselves: showing maps, taking money, sending messages, logging people in and answering questions with AI.

Here’s what’s going on behind the screens of a typical booking or shop app:

  • The map on the “find us” screen comes from a maps API such as Google Maps Platform or Mapbox. Your app asks for a map centred on a postcode and gets back map tiles to draw.
  • The card form at checkout talks to a payments API such as Stripe. Card details go straight to Stripe, and your app only hears back “paid” or “declined”.
  • “Sign in with Google” is an authentication API. Google confirms who the person is and hands your app a token that proves it.
  • The push notification that says your table is ready goes out through a push service such as Firebase Cloud Messaging or OneSignal.
  • The receipt email and the SMS reminder go out through email and SMS APIs such as Resend or Twilio.
  • The chat assistant sends the customer’s question to an AI model API (OpenAI, Anthropic and others) and shows the reply.
  • The weather on a golf club app is one request to a weather API like OpenWeather.

Phones have their own built-in APIs too. Mozilla’s example is the browser’s Geolocation API, which reads the device’s location so an app can pair it with a maps API and plot nearby places. iOS and Android have the same kind of thing for the camera, contacts and Bluetooth.

Your app’s own data works the same way. Every time the app loads a menu, saves a booking or checks stock, it’s calling your back end’s API, which reads or writes your database.

The matrix below lists 13 APIs that small and mid-sized apps use most, with what each charges and where it sits in our directory. Tick what you need.

App API matrix

13 APIs apps use most: what they do and what they cost

Tick what matters to you and pick a kind of API. Prices come from each provider's own page, checked 6 December 2026. The last column tells you which App Tools category lists alternatives.

For more options in each group, our App Tools directory has full listings: payments and subscriptions, maps and location, back ends and databases and AI APIs.

What is an API key?

An API key is a long code your app sends with each request so the provider knows which account is calling, what it’s allowed to do and who to bill.

Think of it as a membership card for a project or an app. The provider uses it to apply your limits, count your usage and charge your card.

The single most useful thing to know: some keys are safe to ship inside an app and some never are.

Stripe spells this out better than anyone. Its API keys page lists a publishable key (starting “pk_”) that is safe in front-end code and mobile apps, because it can’t create charges or read account data. Secret keys (“sk_”) have unrestricted permissions on all of Stripe’s APIs, and Stripe says only publishable keys are safe to expose outside your back end. It now recommends restricted keys (“rk_”) with only the permissions you need, kept in a secrets vault or environment variables and kept out of any code checked into version control.

Stripe also gives you separate sandbox and live keys. Sandbox keys (“pk_test_”, “sk_test_”) return simulated objects and only work with test cards. Live keys move real money.

Google takes the same line for Maps. Its API security guide says to restrict every key: lock it to your Android package name and signing certificate, your iOS bundle ID or your website address, and to only the Maps APIs you use. And this bit should make any founder sit up: “You are financially responsible for charges caused by abuse of unrestricted API keys.” Google also warns that a budget alert tells you about costs and doesn’t cap usage. For a key that’s being misused, its advice includes lowering daily quotas to limit how many billable requests your project can make.

Why leaked keys keep happening

Anything inside an app or a web page can be read by someone determined enough. If a secret key is in there, it’s public.

It’s an easy mistake when an AI tool is building fast: a payment or AI key pasted straight into front-end code because it made the demo work. The fix is a small server function that holds the key and makes the call on the app’s behalf. Our app security guide covers secrets handling in full, and is vibe coding safe? covers the AI-specific version.

What are API rate limits?

A rate limit is a cap on how many requests your app can send in a set time, such as per second, per minute or per day.

Providers set them to stop abuse and share capacity fairly. When you go over, the standard reply is HTTP status 429, “Too Many Requests”. Mozilla’s reference for 429 notes the reply may carry a “Retry-After” header saying how long to wait. Good apps read it and back off. Bad apps hammer the server again straight away and stay blocked.

Limits differ a lot by provider and plan:

That last kind of limit catches people out. Spend caps and quotas are working as designed when they kick in. If your app has no plan for them, the AI chat simply stops answering on a busy day.

Two questions to ask before launch: what happens to the user when an API says “slow down”? And who gets told?

Are APIs free, and what do they cost?

Many APIs are free to start and then charge by use: per request, per message, per transaction or per user.

There are four common pricing shapes:

  • Free allowance, then pay per use. Google Maps Platform gives 10,000 free calls a month per Essentials product, then charges per 1,000.
  • Percentage of money moved. Payments APIs take a cut of each transaction: Stripe’s UK price for a standard UK card is 1.5% + 20p. RevenueCat (for in-app subscriptions) is free until $2,500 of monthly tracked revenue, then charges 1%.
  • Per unit sent. Twilio’s US SMS is priced per message segment, AI models per million tokens (a token is a chunk of a word).
  • Monthly plans. Resend and Supabase have a free tier and then monthly plans. OneSignal is free for mobile push up to 1,000 monthly active users, then $19 a month plus a charge per user.

Here’s what that looks like in practice. The usage figures are examples I picked; the rates come from each provider’s page.

Example monthly usage Provider rate (checked 6 Dec 2026) Monthly cost
5,000 map loads Google Maps: 10,000 free, then $7 per 1,000 $0
20,000 map loads Same $70 (10,000 free + 10,000 at $7 per 1,000)
8,000 address lookups (geocoding) Google Maps: 10,000 free, then $5 per 1,000 $0
1,000 SMS reminders to AT&T numbers in the US Twilio: $0.0083 per segment + $0.0035 carrier fee $11.80
2,000 receipt emails Resend free plan: 3,000 a month, 100 a day $0 (if under 100 a day)
10,000 AI chat replies, about 1,000 tokens in and 300 out each Claude Haiku 5.5: $0.10 per million input, $0.50 per million output $2.50
Push to 800 monthly active users OneSignal free plan: unlimited mobile push up to 1,000 users $0
One £50 card payment from a standard UK card Stripe UK: 1.5% + 20p 95p per payment

Two things jump out. Most small apps run their third-party APIs for very little in the first months. And the costs scale with success, so a busy month costs more. Plan for that before a feature goes viral.

AI is the one to watch. Prices between models vary hugely: on Anthropic’s own list, Claude Haiku 5.5 is $0.10 per million input tokens and Claude Opus 5.5 is $4. OpenAI’s list runs from $0.05 (gpt-5-nano) to $30 per million input tokens for its priciest pro models. Anthropic’s API has no free tier; the minimum credit purchase is $5. Pick the cheapest model that does the job well enough, and test it.

API fees sit inside your running costs alongside hosting, store fees and updates. Our breakdown of what it costs to maintain an app puts them in context.

What is the difference between REST and GraphQL?

REST and GraphQL are two styles of designing an API. With REST you call a set address for each kind of thing; with GraphQL you write one query that names exactly the fields you want back.

Mozilla’s glossary says beginners can safely think of a REST API as a web service called with standard web tools. You fetch “/orders/123” to get an order and “/customers/45” to get the customer. Each address returns a fixed bundle of data.

GraphQL lets the app ask for precisely the data it needs in one request. GitHub, which offers both, explains on its GraphQL API page that it gives integrators more flexibility: you request only the fields you need, and one GraphQL call can replace several REST calls.

REST GraphQL
How you ask One address per kind of thing (orders, customers) One query listing the fields you want
What comes back The fixed bundle that address returns Exactly the fields you asked for
Several related items Often several calls Often one call
Where you’ll meet it Web services called with standard web tools (Mozilla’s description) Providers that choose it, such as GitHub (which offers both)

Does it matter to you as a founder or business owner? Barely. Your developer picks whichever the provider offers or whichever suits your back end. If someone proposes rebuilding a working REST back end in GraphQL, ask what problem it solves for your users. Often the honest answer is “none yet”.

Can a no-code or AI-built app use APIs?

Yes. No-code builders use APIs for you behind the scenes, and AI coding tools write the code that calls them.

When you add bookings, a loyalty card, payments or push notifications in our app builder, the builder handles the APIs underneath. You never see a key or an endpoint, and push notifications come built in. That’s the right answer for most small businesses: if a feature exists ready-made, renting it beats building it.

AI app builders like Lovable, Bolt and Replit will happily wire in Stripe, Supabase or an AI model when you ask. They’re quick at it. The risks are the ones above: secret keys in front-end code, no handling for rate limits or failed requests, and no plan for what a busy month costs. Our guide to what vibe coding is covers where these tools are strong and where they need a developer’s eye.

The hard case is connecting to a system that’s yours: a stock system, a booking platform, a CRM, a membership database. That often means reading its API documentation, mapping its data to your app and handling its quirks. In our cost calculator’s custom model, “connect to an existing website or system” is priced at $3,000 for one platform or $4,500 for both. You can run your own numbers in the app cost calculator.

What should you ask a developer about the APIs in your app?

Ask which outside APIs the app depends on, what each costs at 10 times today’s usage, where every secret key lives and what the user sees when one fails.

Here’s the list I’d use, in plain English:

  1. Which third-party APIs does the app call? Get a written list with the account owner for each. The accounts should be in your company’s name.
  2. What does each cost at 10 times our current users? Ask for the provider’s pricing page, not a guess.
  3. Where are the secret keys stored? The right answer is on the server, in a secrets store or environment variables. “In the app” is the wrong answer for anything except a key the provider says is safe to expose, such as Stripe’s publishable key.
  4. Are the keys restricted? To our app, our domain and only the APIs we use.
  5. What happens on a 429 or a timeout? The app should retry sensibly and show a clear message.
  6. Are there spending caps or quotas set? Google points out that budget alerts don’t cap usage, so ask what actually stops a runaway bill.
  7. What if a provider changes its prices or shuts an API? Which ones could we swap out, and how long would it take?

Most of these take a good developer 10 minutes to answer. If they can’t, that tells you something. Our guide on how to hire an app developer has more questions for the vetting stage.

APIs are one layer of the whole build. For how they fit with the front end, back end, database and hosting, go back to our full guide to how apps are built.

FAQ

What does API stand for?

API stands for application programming interface. It’s the set of rules that lets one piece of software request data or actions from another.

What is an example of an API in an app?

A map on a “find us” screen is a good example: the app sends a location to a maps API such as Google Maps Platform and gets back a map to display. Card payments through Stripe and “Sign in with Google” work the same way.

Are APIs free to use?

Many have a free allowance and then charge by use. Google Maps Platform gives 10,000 free map loads a month before charging $7 per 1,000, while Anthropic’s Claude API has no free tier (checked 6 December 2026).

Is it safe to put an API key in my app?

Only if the provider says that type of key is safe to expose, like Stripe’s publishable key. Secret keys belong on a server, because anything inside an app can be read by a determined person.

What happens when an app hits an API rate limit?

The API replies with HTTP 429, “Too Many Requests”, sometimes with a Retry-After header saying how long to wait. A well-built app waits and retries, and tells the user if something is delayed.

Is REST or GraphQL better?

Neither is better in general. REST gives each kind of thing its own address; GraphQL lets an app fetch exactly the fields it needs in one request, which helps when a screen pulls data from many places.

Do I need to know how to code to use APIs?

Not if you use a no-code app builder, which handles common APIs such as payments and push notifications for you. Connecting to your own business systems usually needs a developer.

Last Updated on December 6, 2026 by Ian Naylor

Your app, live today

Build a native iOS and Android app, or a web app, for your business. Free to start, no code, no developers.