FazBrowse Wikipedia Viewer | Main Page |
Search Wikipedia:
|
Viewing: https://en.wikipedia.org/wiki/Web_API

Web API

Screenshot of web API documentation written by NASA

A web API is an application programming interface (API) for either a web server or a web browser. It can refer to a client-side JavaScript API (including any web frameworks being used) or a server-side web API. The latter consists of one or more endpoints to a defined request–response message system, typically expressed in JSON or XML by means of an HTTP-based web server.

A server API (SAPI) is not considered a server-side web API, unless it is publicly accessible by a remote web application.

{ "date":"1996-12-03", "explanation":"Like a butterfly,\r a white dwarf star begins its life\r by casting off a cocoon that enclosed its former self. In this\r analogy, however, the Sun would be\r a caterpillar\r and the ejected shell of gas would become the prettiest of all!\r The above cocoon, the planetary nebula\r designated NGC 2440, contains one of the hottest white dwarf stars known.\r The white dwarf can be seen as the bright dot near the photo's\r center. Our Sun will eventually become a \"white dwarf butterfly\",\r but not for another 5 billion years. The above false color image recently entered the public domain\r and was post-processed by F. Hamilton.\r", "hdurl":"https://apod.nasa.gov/apod/image/9612/ngc2440_hst2_big.jpg", "media_type":"image", "service_version":"v1", "title":"Cocoon of a New White Dwarf\r\nCredit:", "url":"https://apod.nasa.gov/apod/image/9612/ngc2440_hst2.jpg" }

The above API return has been reformatted so that names of JSON data items, known as keys, appear at the start of each line. The last of these keys, named url, indicates a URL which points to a photograph:

https://apod.nasa.gov/apod/image/9612/ngc2440_hst2.jpg

Following the above URL, a web browser user would see this photo:

"Mashup Dashboard". ProgrammableWeb.com. 2009. Archived from the original on May 7, 2021. Retrieved May 29, 2021.

  • ↑ "APIs.json". apisjson.org. Retrieved 2016-03-14.
  • ↑ "Tech Trends 2015, API economy". Deloitte University Press. Archived from the original on 2016-08-15. Retrieved 2015-11-03.
  • ↑ "Web API reference - Web technology reference". Mozilla Developer Network. 20 February 2023.
  • Commons

  • View original on Wikipedia | Back | FazBrowse Home