What is an API?

Application Programming Interface
A structured way for software applications to communicate with each other

Why use APIs?

Enhance your projects with services and data provided by other applications

Control and monitor access to your resources

The restaurant metaphor

The waiter (the API) functions as an intermediary between customers like you (the user) and the kitchen (web server).

You don't need to know how the kitchen or the restaurant operates, you just need to know how to order.

Andrew Park, What are APIs and how do they work?

RESTful API: A type of API where the communication happens via HTTP, often using a browser

https://api.nasa.gov/insight_weather/?api_key=DEMO_KEY&feedtype=json&ver=1.0

Authentication

  • Public API key
  • Registered API key