Technology

What Is an API? The Restaurant Waiter Analogy

APIs let apps talk to each other without knowing each other's secrets. Learn what they are with a simple restaurant story, and see how a weather app uses one.

PreMinuteJul 25, 2026 · 3 min read
What Is an API? The Restaurant Waiter Analogy

Every time you check the weather on your phone, pay with UPI, or log in with Google, apps are talking to other apps. The way they do it is called an API, short for Application Programming Interface.

The restaurant story

You sit at a table in a restaurant. The kitchen can cook anything on the menu, but you cannot walk in and cook. Instead, a waiter takes your order to the kitchen and brings the food back.

The menu shows what you can ask for. You do not need to know how the kitchen works, and the kitchen does not need to know who you are or how you eat.

A real example: a weather app

  1. You open the app

    It wants today's temperature.

  2. The app sends a request

    It contacts the weather service's API and says: "Give me the weather for Pune."

  3. The service checks the request

    It might check a secret key, called an API key, to confirm you are allowed.

  4. The service replies

    It sends back data, often in a format called JSON, like `{"city":"Pune","temp":29}`.

  5. The app shows it to you

    It turns the data into a nice screen with icons.

Where you see APIs every day

Why APIs matter to businesses

APIs let companies build on each other's work instead of starting from zero. A small startup can add payments, maps, and messaging in days, because other companies offer those as APIs.

What most people miss

Sources

More in Technology

Digital Arrest Scams: What the Supreme Court Just Ordered
Technology

Digital Arrest Scams: What the Supreme Court Just Ordered

India's Supreme Court has told WhatsApp and banks to detail how they will stop "digital arrest" fraud. Here is how the scam works and how to protect yourself.

PreMinuteNov 14, 2026 · 5 min read
India's CNAP Caller Name Rule: What Changes on Your Phone
Technology

India's CNAP Caller Name Rule: What Changes on Your Phone

From 1 November 2026, calls from unsaved numbers can show the caller's registered name on 4G and 5G networks. Here is what you will see, who is left out, and what to do.

PreMinuteNov 13, 2026 · 5 min read
How Encryption Works: From Plain Text to Secret Code
Technology

How Encryption Works: From Plain Text to Secret Code

Encryption scrambles your data so only the right key can read it. Learn how symmetric and public-key encryption work together, where HTTPS uses them, and what encryption cannot protect you from.

PreMinuteNov 13, 2026 · 5 min read

Keep reading

World Diabetes Day: Why India's 101 Million Cases Need Early Action
Health

World Diabetes Day: Why India's 101 Million Cases Need Early Action

World Diabetes Day falls on 14 November. This year's theme is early action. Here is what diabetes actually is, India's numbers, and the warning signs people miss.

PreMinuteNov 13, 2026 · 6 min read
VISTAR Scheme: India Is Rebuilding How It Counts Its Economy
Money

VISTAR Scheme: India Is Rebuilding How It Counts Its Economy

The Cabinet approved a ₹4,371 crore plan to make India's economic data AI-ready, with a new Economic Census. Here is what it covers and why it matters to you.

PreMinuteNov 12, 2026 · 4 min read
Desk Ergonomics: How to Set Up Your Workspace to Avoid Pain
Health

Desk Ergonomics: How to Set Up Your Workspace to Avoid Pain

A bad desk setup slowly causes neck, back and wrist pain. Learn the official chair, monitor and keyboard rules from OSHA and CCOHS, and how often to take breaks.

PreMinuteNov 12, 2026 · 5 min read