API
What is an API?
Technical definition
API stands for Application Programming Interface. An API is a set of protocols, routines and tools for building applications. It defines how different software components should interact with each other. This way, developers can create applications that are able to interact with other applications, services or platforms through a standardized interface.
Non-technical definition
Say developers of a new weather app want to populate their app with weather data. They obviously cannot get and process weather data, because they are not meteorologists. Therefore meterologists devs create an API to provide weather information for everyone who wants to embed their weather data. By using the weather API, developers are able to create a new weather app.
How to interact with an API?
As prerequisits:
- Find the documentation of the API
- Find a language supporting HTTP protocol
Then:
- Request information to the API using (or not) an access token
- Let the API process the request and send back the response
- Process the response in the application (can be JSON, XML for REST APIs for instance)