शब्दकोश · प्रोग्रामिंग

API (Application Programming Interface)

An API is a defined set of rules and endpoints that lets one piece of software request data or actions from another without knowing its internals.

अपडेट: अक्टूबर 6, 2026

An API (Application Programming Interface) is a contract that describes how one program can ask another program to do something, including which requests are allowed and what the responses look like. The caller needs to know only the contract, not how the other side is built.

Why it matters

APIs let teams and companies connect systems: a shop talks to a payment provider, a mobile app talks to its server, a monitoring tool talks to your alerting channel. A stable API lets either side change its internals without breaking the other. When an API is down or slow, everything built on top of it fails too, which is why API endpoints are worth monitoring separately from your website.

Example

GET /v1/users/42 HTTP/1.1
Host: api.example.com
Accept: application/json

HTTP/1.1 200 OK
{"id": 42, "name": "Asha"}

The client asks for user 42 and the server answers with JSON. Web APIs like this one usually run over HTTP, but libraries and operating systems expose APIs too.

Common mistakes

  • Treating a 200 response as proof the API works; the body can still contain an error message.
  • Changing a response field name without versioning, which breaks existing clients.
  • Skipping authentication and rate limiting on public endpoints.

Get notified when this term updates

Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.

यह पेज सामान्य जानकारी है, जिसे हमारी संपादकीय टीम ने लिखा है और दस्तावेज़ीकरण बदलने पर अपडेट किया जाता है। सर्वर और प्रदाता अलग-अलग होते हैं, इसलिए बदलाव पहले सुरक्षित तरीके से जाँचें। देखें: संपादकीय नीति और अस्वीकरण.