Straight answer

What is an API?

An API is a defined way for software systems or components to request data or actions from one another.
Advertisement · in-content leaderboard

How it works

A web API might accept a structured request and return information in JSON, while an operating-system API exposes device or application functions. Documentation defines the allowed operations and formats.


What people often miss

An API is an interface, not necessarily a database or public website. Access may require authentication, usage limits, and payment.

Why this question comes up

Weather apps, payment buttons, and connected services often rely on APIs behind the scenes.

Key points

  • An API is a defined way for software systems or components to request data or actions from one another.
  • A web API might accept a structured request and return information in JSON, while an operating-system API exposes device or application functions. Documentation defines the allowed operations and formats.
  • An API is an interface, not necessarily a database or public website. Access may require authentication, usage limits, and payment.

Bottom line

An API is a defined way for software systems or components to request data or actions from one another.

Source and verification

This Answer was checked against National Institute of Standards and Technology. Follow the source for the full official explanation and any later updates.

Why people are asking now

Weather apps, payment buttons, and connected services often rely on APIs behind the scenes.

Advertisement · mobile anchor