API FUNDAMENTALS / LESSON 01
What is an API?
Understanding application interfaces

Loading the lesson…
Loading activities…
API FUNDAMENTALS / LESSON 01
Understanding application interfaces

Loading the lesson…
Loading activities…
You use APIs every single day and probably have no idea. Checking the weather on your phone, paying for something online, logging in with your Google account... an API is doing the work behind the scenes every time.
API stands for Application Programming Interface. Sounds like something an engineer made up to scare people off (and honestly, maybe). It's actually simple. An API is just a way for two computer programs to talk to each other.
Think about eating at a restaurant. You don't stroll back into the kitchen and cook your own food. Here's how it goes instead.
The menu shows what's available. You pick what you want.
The waiter is the middleman. They carry your request back to the kitchen.
The kitchen does the work. You never see how they make it.
The waiter delivers the result back to your table.
An API works the same way.
Here's what happens when you use an app that calls an API.
Same as the restaurant. You don't see all the steps happening in the kitchen... you just get your result!
Here are a few APIs you're probably using without realizing it.
Your weather app doesn't own weather stations all over the planet. It calls a weather API instead. The app sends your location, and the API sends back the forecast. That's why a bunch of different weather apps can show you the exact same data.
When you buy something online with your credit card, the website calls a payment API (like Stripe or PayPal). The API handles all the complicated money stuff. The website just sends "charge this card $25" and gets back "payment successful."
Ever clicked "Sign in with Google" or "Log in with Facebook"? Yep, that's an API. The website asks Google or Facebook to confirm who you are, and Google sends back your basic info. You get to skip making yet another account.
Tons of apps show maps, and most of them didn't draw their own from scratch. They use the Google Maps API or Apple Maps API. The app asks for a specific location and the API sends back the map data.
APIs are what make modern apps possible. Picture a world without them.
I'm not a developer, by the way. I'm an operator who came up through SEO and local marketing. And APIs are a BIG reason someone like me can build real software at all, because I get to plug into stuff other people already built.
When programs talk to each other they need a shared language. APIs usually send data in a format called JSON. You'll dig into it in a later lesson, but here's a quick taste.
Ask a weather API for the forecast and it might send back something like this.
That's data your app can actually use. It's organized and predictable, and every time you ask for the weather you get the same kind of response back.
APIs come in a few different styles, but the most common one today is called a REST API. REST stands for Representational State Transfer (you can forget that immediately, I won't tell). Just know that when people say "API," they usually mean a REST API.
REST APIs run on the same tech as websites. They work over the internet using web addresses (URLs) and standard web methods (like GET and POST). We'll get into those in the next lessons.
Now that you know what an API is, let's look at HTTP methods. Those are the different ways you can ask an API to do stuff, like grabbing data or saving something new...