loading...
Cover image for A Short Introduction to APIs in 6 slides

A Short Introduction to APIs in 6 slides

gaelthomas profile image Gaël Thomas Updated on ・2 min read

You will discover:
➡️ How APIs are working
➡️ How to request an API
➡️ How an API answers
➡️ Why is it interesting to have an API
➡️ The API business

An API (Application Programming Interface) is an interface between multiple applications. It means that it allows two applications to communicate.

An API follows the principle of question and answer, exactly as humans do.

How APIs are working - Non technical

Questions, and answer are the same as humans, but it's written in a technical way.

Request: "Give me all the pictures of Bender's profile"
Answer: "Here're all pictures of Bender's profile

How APIs are working - Technical

Because APIs are not humans, you can't ask questions as you do on Google. To communicate with them, you can use fourth basic requests.

How to request an API

Most of the time, an API is answering your request with a language called JSON.

JSON stands for "JavaScript Object Notation". It's a data representation easy to read by humans and easy to manipulate through code.

How an API answers

When you use an API on your project, you will divide the visual part (front-end) from the server (back-end). It means that your application will be at least divided into two projects.

Why is it interesting to have an API

An API is a valuable part of a project. Some companies build their applications and sell access to their API at the same time.

For example, for a company that makes home deliveries, it's a huge time saver to outsource the geolocation part to Google.

The API business


If you liked this content, you can follow me on Twitter here. I share content about programming, personal development, and my journey as a web developer!

Posted on by:

gaelthomas profile

Gaël Thomas

@gaelthomas

∙ 💻 Full Stack Developer ∙ ✍️ Blogger ∙ 📖 Learn and create content are my hobby ∙ ❤️ {"coding": "enthusiast"}

Discussion

pic
Editor guide
 

Man!I wish this article was longer....thanks though....great content.

 

Thank you! 😊 In the beginning, it was a Twitter post, but I thought it was interesting to share it here (this is why it's short)!