unsupervised = 3347051173, connectioins, terraiste, gratuluję, apapaia, ожиріння, schnittschutzhandschuhe, effettuare, 08016006384, التقنية, jammen, noden, 5073892550, openyy, zvikov, binhome, fercho, optipac, bambooz, 4270468, 168222, naparstnice, 0925179774, нексіум, rogoz, fricska, jsmart, 8102094847, замкнені, tomax, rindo, leanbeefpatty, vivatsreet, 08004643139, moscardón, 0409210838, mervedes, doppelbelichtung, vieraslajit, 89784934, nakrcnik, tojásfasírt, offsumaiko, лізгард, screwfux, itrio, швидко, muéganos, fügedarázs, androscoggin, шабер, sasshole, herenow, hydroxocobalamin, smartes, mecki, 3294011026, hőhullám, 322722, золоте, 3888727620, flicorno, прапори, κατακουζηνος, burnasores, alltech, 05030968099, 6513325111, 8557876725, talár, pocxta, barnedåp, rabarbrakompott, 8445626480, المداعبه, 114200, haircut, dufaximin, fleetmatics, lahjaverolaskuri, nákrčník, zimtblüte, 08020591305, intergenerational, ecoclean, extemporaneidad, anradus, talajtakaró, талапія, kergemarhakór, eclinic, drogon, ровеньки, мединский, топливо, 5133950258, 8662312988, 3442975146, chattpt, cyklady, magnomint, laituri, 7501109902866, 0120975564, йеннефер, rytterlys, gameplanet, finderei, погони, ddtickets, virguilla, 0363865320, aircort, smartroom, 3384390, трафік, deficiência, хуарачи, corai, milchersatz, egernsund, фингеринг, allergológia, 18779001237, koncentrisk, 18887519000, urban, convertion, jesica, 0120955101, 3204474254, alkonyat, 0120080828, simposium, murerfirma, skinfix, huntingdon, novahus, talong, 09611680016, 0528191832, lactevenor, medipolis, vaginalete, amaterky, digitals, wireguard, whatagame, 05031026931, 3456307189, تسلخات, ماليفسنت, sulasoltv, escaudoeuvres, doorduyn, солод, 7026860670, cranhill, versawhip, 18002095527, adeiu, 3516366672, vérmesék, flirturilocale, paypo, shapex, pancerota, emsad, animeidhe, гормони, rootlearning, soutwe, بينوكس, asvela, clearoneadvantage, 0980000162, 0120828840, refinería, الدوخه, ωρωπός, quietly, 4028155060, dermatocosmiatria, 08016051647, 08086589620, awrusa, preliminari, 0277301000, 8666205376, okfish, snifes, 8665544357, kaymito, julvört, qorpak, freetax, hanan, shadertoy, pomegrant, 08000000420, 025802054, 17655199710974672878, ograda, tangermedpcs, syroco, παθολογος, insektbid, 21095555555, 0648055911, tokar, mangoldsalat, myaccesflorida, tinfozol, infertilidad, глечики, spørsmålstegn, complementario, barnstol, 126500, bildæk, camellito, efellows, 2000000, szortimenter, pinaattipannukakku, båtlappen, 4183586038881915665, tinko, tarkó, tiout, colinergicos, shellout, zitronendünger, piecemealing, jacal, dorina, midtnett, šavarma, rinaexclusive, theboxnyc, mcenter, канабидиол, saturacija, гипотермия, orabase, النرويج, företagsresor, ademicon, pestan, relab, 08016006458, koncern, bookmobile, funus, liljekonvalj, світлодіод, 0676326945, payjp, dromader, wooster, deportado, maslove, difallia, carvers, 222464000, restituzione, thienhatruyen, elitegoltv, tereske, люменис, ureaderm, apologeet, förvaltning, kattoluukku, docfinder, remised, lofou, ramsta, excle, 8888018190, prosenio, фунгокап, tyent, fejőgép, aaltonen, komentari, likemychoice, labouest, 0367582180, rieden, maestroqa, moschettieri, mitelmex, 0366881791, еліксир, білок, 03303335512, pravastin, panomax, انجلندر, وثيقة, αρμονία, limfoma, claropay, brevik, 30574876474, vincitore, 18005282122, kamboo, roccavivara, tagliarini, politiforbundet, conspicuous, 4845383, візаллергол, omark, imunoglucan, fläsklägg, 6997201786, janol, tiyanak, eponner, lfpiorpi, žilinak, bouble, 3807936118, bencatel, abvie, 08016006529, niggor, plazzo, strategypage, auxinas, суперкрила, kakkupohja, delorian, lecoindupro, caminadora, yazidis, 3511667677, 30678561165, порнокіно, nmhibid, carwatch, косиолот, тортури, mászóalagút, fixkraft, ahvenamaa, pelecanimimus, appendicitus, smoth, sexlyb, onappafa, 7809570102, zackavelli, 0120773192, kikasstorrent, autokarhu, براهات, tedata, 07026558873, trillionen, googlemeat, bønnegryde, 6955956672, donedone, yuzuka, affondamento, 8663998973, керування, 0120995242, goodnote, vintd, xhtotal, subotari, άντρας, jokihelmisimpukka, animismo, nexplaon, webbinarium, 2985751, herriot, 05031272435, 8337270998, semattor, cantidad, accélérateur, luther, 08086589598, sommario, infingardo, zalsndo, fickhub, дурра, sackriss, fukien, unigermana, 08007733141, trabas, happyfappy, yalex, prscx, prosimians, 01615202722, svantek, acuagyr, siderurgica, lupex, etsan, jollyntr, маринетрафик, affection, pojarel, aivokuume, setetrekk, 4827199, foist, baesy, 5208291167, скијање, chileexpres, porekadla, 07026560644, langmatz, wickliffe, megasteel, 0120988411, 08007004757, новаринг, nightbirde, onestream, rawel, yzico, elleboro, igeriv, برينوريلاكس, ulfåsa, 0223887771, кукли, partycypować, sauyo, kwickfit, ryter, 3761752716, лэндмен, kodning, turbinoplastia, multpoen, monilog, kolíkovačka, nyomtávszélesítő, tagadás, fitjeans, meditatii, familienfoto, opticris, koppenhaga, 7863224746, ganaderos, ampligo

What Is an API? A Plain-English Explanation for Web Beginners

what is an api

Wondering what is an API and why every tutorial mentions it? It’s a set of rules that lets one piece of software ask another for data or actions. Think of it as a waiter between you and the kitchen.

This explainer belongs to the series on web development for beginners, and it assumes only a little HTML and JavaScript curiosity.

Key fact Value
Web APIs tracked by ProgrammableWeb in 2022 over 24000 web APIs
Web APIs tracked by ProgrammableWeb in 2005 105 web APIs
Netflix API requests in 2014 around 5 billion API requests
Share of new APIs that are REST APIs over 90%

The figures come from Wikipedia’s Web API entry and UKG’s introduction to REST APIs. They can change, so check the sources before you rely on them.

The restaurant analogy: how an API works

An API is a middleman that lets two programs talk to each other. Oracle’s API guide describes it as a set of rules that lets applications exchange data and perform actions in a well-documented way.

The same guide splits every exchange into three parties:

  • Client: the program that makes the request, such as your web page.
  • Server: the program that fulfills the request and holds the data.
  • API: the go-between that connects the two in a predictable way.

Picture a restaurant. Customers don’t wander into the kitchen to cook their own meals, so the menu lists what the kitchen can make, what you must tell it and how to phrase your order, according to Oracle. The waiter then carries orders and dishes back and forth in a standard way.

MDN offers a household version: a plug socket. You plug in an appliance and it works, because you never have to wire it into the power supply yourself, which would be difficult and dangerous without an electrician.

Without APIs, someone would have to export data from one application, reshape it and import it into another by hand, again and again. That is the manual work APIs remove, as Oracle explains.

What does an API request look like?

Oracle lists four building blocks that an API defines. Each one maps to something you will type or read when you make your first call.

  • Endpoints: specific URLs that say where to send requests.
  • Methods: instructions such as GET to retrieve data or POST to send it.
  • Parameters: extra details the request needs, such as a location for weather data.
  • Responses: the data sent back, usually JSON or XML.

A concrete case helps. Wikipedia uses the Astronomy Picture of the Day API from NASA as its example: a server-side API with one endpoint that accepts GET requests and requires an API key, plus some optional parameters.

The endpoint and its query string together form a URL, and that URL is called an API call. Open it in a browser and you get back JSON, a data format made for computers that is still fairly readable to people, according to the same Wikipedia page.

A person in a suit holds a pen beside an overlay of connected rectangular outlines.

Browser APIs and third-party APIs

On the front end, MDN defines APIs as constructs that let developers build complex functionality more easily. They hide harder code behind simpler syntax, and in client-side JavaScript they fall into two groups.

  • Browser APIs are built into the browser and expose data and features from it and from the surrounding computer. The Web Audio API, for instance, lets you change the volume of an audio track.
  • Third-party APIs are not built in, so you retrieve their code and information from somewhere on the Web. The Google Maps API, for example, lets you show an interactive map on your site.

Two browser APIs come up constantly for beginners. The DOM API lets you create, remove and change HTML and apply new styles, while the Fetch API pulls data from a server to update part of a page without reloading it, per MDN’s introduction.

What are web APIs and REST?

A web API exposes part of an application’s functionality to other programs over the internet, as UKG’s guide puts it. Most communicate over HTTP, the client-server, request-response protocol behind the World Wide Web.

REST is the most common style. Product Talk notes that REST APIs let programmers send and request data using the same protocol your browser uses to request web pages, and UKG reports that over 90% of new APIs are REST APIs.

A request carries a method, a URL, headers and an optional body. The method tells the server what to do, and Oracle’s guide gives four common ones:

  • GET retrieves data.
  • POST sends new data.
  • PUT updates existing data.
  • DELETE removes data.

UKG separates these into safe methods, which retrieve information without changing the server, and unsafe ones, which can change data. As a beginner, stick to GET while you learn.

The server answers with a status code. Product Talk names three you will meet: 200 OK for success, 404 Not Found for a missing resource and 500 Internal Server Error when the server itself fails. It also likens headers to an envelope that says who is sending the message and what kind of message is inside.

Why APIs matter when you build websites

Take a hair salon site. When a customer books a time, your server can send the details to the Google Calendar API and ask it to create an event on the stylist’s calendar, as Product Talk’s example shows. No staff member has to retype the booking.

Payments work the same way. A merchant site calls the Stripe API to process a payment, and Oracle adds that PayPal and Stripe gateways let retailers handle transactions securely. In short, reusing services beats rebuilding them.

Scale shows how central this is. Wikipedia reports that Netflix received around 5 billion API requests in 2014, most of them inside its private API.

APIs are not the same as libraries or frameworks. If you are curious about frameworks, the guide to bootstrap vs tailwind covers two popular CSS options.

How to start using APIs as a beginner

You can practise without building anything big. Follow these steps with any public API that has good documentation.

  1. Read the API’s documentation to find its endpoints, methods and parameters.
  2. Check whether you need a key. Wikipedia notes that private web APIs require an access token, and NASA’s example needs an API key.
  3. Build the request URL from the endpoint plus a query string of parameters.
  4. Open that URL in your browser to send a GET request and read the JSON that comes back.
  5. Repeat the call from JavaScript with the Fetch API and show the result on your page.

Once that works, the guide on how to learn web development can help you plan what to study next. Keep your first project small, such as showing one photo or one weather reading.

Frequently asked questions

What does API stand for?

Show answer

It stands for application programming interface. Product Talk sums it up as a way for code to interact with other code.

Is an API the same thing as a website?

Show answer

No. A website is made for people to read, whereas an API returns data for programs to use, often as JSON, which Wikipedia describes as a format intended to be understood by computers.

Do I need JavaScript to use an API?

Show answer

Not to try a simple GET request, since a browser can send one for you. For MDN’s client-side API lessons, though, the stated prerequisite is familiarity with HTML, CSS and JavaScript, per MDN.

Are all APIs free and open to everyone?

Show answer

No. Some are public and some are private, and Wikipedia says the private kind requires an access token. Always read the provider’s terms and limits before building on an API.