Fact of the Day 1

Share this post
November 15: What's an API?
www.factoftheday1.com

November 15: What's an API?

APIs are like drive-thru windows, but in code: they take inputs and give users predictable outputs.

Danny Sheridan
Nov 15, 2021
Comment3
Share

Suggest a topic for a future fact.

Source: Justin Gage
Published: January 2020

What's an API?

Application Programming Interfaces (APIs) are like drive-thru windows, but in code: they take inputs and give users predictable outputs.

API: Google Maps API
Input:
Address
Output:
Latitude and longitude

API: Clearbit Logo API
Input:
Company website
Output:
Company logo

API: Amazon Product Advertising API
Input:
Amazon Standard Identification Number (ASIN)
Output:
A product’s description, images, and customer reviews

API: Lyft Find Driver API
Input:
Current and destination addresses
Output:
The best driver to match you with

Leave a comment

Comment3
ShareShare

Create your profile

0 subscriptions will be displayed on your profile (edit)

Skip for now

Only paid subscribers can comment on this post

Already a paid subscriber? Sign in

Check your email

For your security, we need to re-authenticate you.

Click the link we sent to , or click here to sign in.

Kevin
Nov 15, 2021Liked by Danny Sheridan

Great visualization. However, there is another critically important part of what an API is/does. In addition to providing predictable outputs for inputs, an API insulates software applications from each other. As an example... if something were to go wrong with an application addresses to the Google Maps API and suddenly instead of presenting an address every second, 10,000 requests were made per second, without an API that throttles requests, the Google Maps API could crash and become unavailable to everyone trying to use it. Bad. Instead the API limits requests to what the internal program can handle, thereby making the input/output feature more reliable even when the programs providing the input become unreliable... or even hostile. Good. Without this ability to protect software, communication between web applications would be far more risky. APIs provide this critical protection and in so doing, make more functionality reliably available to everyone.

Expand full comment
Reply
1 reply by Danny Sheridan
Viraj Shah
Nov 15, 2021

One of the simplest explanation!

Expand full comment
Reply
1 more comments…
TopNewCommunity

No posts

Ready for more?

© 2022 Fact of the Day 1
Privacy ∙ Terms ∙ Collection notice
Publish on Substack Get the app
Substack is the home for great writing