You may hear developers say "we will connect it through the API" and nod along without being sure what it means. The idea is simple, and understanding it helps you ask better questions and avoid paying for the wrong thing. This guide explains APIs in plain language, with business examples.

The short answer

An API (application programming interface) is a set of rules that lets one piece of software ask another for data or ask it to do something. It is like a waiter in a restaurant: you tell the waiter what you want, the waiter takes the request to the kitchen and brings back the result, and you never need to see how the kitchen works.

Everyday examples

  • A weather widget on a website asks a weather service for today's forecast.
  • An online shop sends a payment request to a payment provider and receives a yes or no.
  • A booking form creates a customer record in your CRM without anyone retyping it.
  • A mobile app loads your account details from your company's server.

Why businesses need APIs

  • To stop copying data by hand between tools, which saves time and reduces mistakes.
  • To power a mobile app or website from the same back end.
  • To let partners or customers connect their own systems to yours.
  • To add services you do not want to build yourself, such as payments or maps.

Using an API and building an API

Using an existing APIBuilding your own API
What it meansConnect to a service others already runCreate a way for others to connect to your data
Typical exampleAdd card payments or send an SMSLet a partner read your stock levels
Main workIntegration and testingDesign, security, documentation and testing
Who does itYour developer or agencyA back-end team, with clear planning

What a good API has

  • Clear design: it is obvious what each request does.
  • Security: only the right people can read or change the right data.
  • Rate limits and monitoring, so one user cannot overload it and you can see problems early.
  • Good documentation, so other developers can use it without asking you.
  • Versioning, so improvements do not break people who already depend on it.

REST and GraphQL in one minute

REST is the most common style: simple, widely understood and a good fit for most projects. GraphQL lets each screen or client ask for exactly the slice of data it needs, which helps when many different clients use the same data. Neither is better in every case, and a good developer will recommend one after learning how the API will be used.

Signs you may need API work

  • Staff retype the same data into several systems.
  • You want a mobile app and a website to share the same data.
  • A partner or customer has asked to connect to your system.
  • You have an existing API that is slow, undocumented or hard to change.

2nd Hub Solutions designs, builds, secures and documents REST and GraphQL APIs, and connects existing tools through integrations, for clients in the UK and worldwide. The first 30-minute discovery call is free.