mdn.go-v.org

API

An API (Application Programming Interface) is a set of features and rules that exist inside a software program (the application) enabling interaction with it through software - as opposed to a human user interface. The API can be seen as a simple contract (the interface) between the application offering it and other items, such as third-party software or hardware.

source: MDN Web Docslicence: CC BY-SA 2.5+ (MDN)database: /home/dbs/mdn.dbmode: tablerecords: 14753 (max_rowid)citation: https://developer.mozilla.org/

An API (Application Programming Interface) is a set of features and rules that exist inside a software program (the application) enabling interaction with it through software - as opposed to a human user interface. The API can be seen as a simple contract (the interface) between the application offering it and other items, such as third-party software or hardware.

Full text

An **API** (Application Programming Interface) is a set of features and rules that exist inside a software program (the application) enabling interaction with it through software - as opposed to a human user interface. The API can be seen as a simple contract (the interface) between the application offering it and other items, such as third-party software or hardware.

In Web development, an API is generally a set of code features (e.g., methods, properties, events, and URLs) that a developer can use in their apps for interacting with components of a user's web browser, other software/hardware on the user's computer, or third-party websites and services.

For example:

- The [getUserMedia](/docs/Web/API/MediaDevices/getUserMedia) API can be used to grab audio and video from a user's webcam, which is then available to the developer, for example, recording video and audio, broadcasting it to another user in a conference call, or capturing image stills from the video.
- The [Geolocation API](/docs/Web/API/Geolocation) can be used to retrieve location information from services the user has available on their device (e.g., GPS), which can then be used in conjunction with other services, such as the [Google Maps APIs](https://developers.google.com/maps/), to plot the user's location on a custom map and show them what tourist attractions are in their area.
- The [Web Animations API](/docs/Web/API/Web_Animations_API) can be used to animate parts of a web page — for example, to programmatically move or rotate images.

## See also

- [Web API reference](/docs/Web/API)
- [API](https://en.wikipedia.org/wiki/API) on Wikipedia

Fields

page_typeglossary-definition
tags

Cite this record

MLA
"API." MDN Web Docs, n.d., https://mdn.go-v.org/record/Glossary%2FAPI.

Chicago
"API." MDN Web Docs. n.d.. https://mdn.go-v.org/record/Glossary%2FAPI.

APA
MDN Web Docs. (n.d.). API. https://mdn.go-v.org/record/Glossary%2FAPI

Share card · JSON record

source: MDN Web Docslicence: CC BY-SA 2.5+ (MDN)year: —id: Glossary/APIcitation: https://developer.mozilla.org/en-US/docs/Glossary/API

JSON · full text · full-text JSON ·

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.