Lesson 1 of 8
What is an API?
An API (Application Programming Interface) lets two pieces of software talk to each other. When you use a weather app, it calls a weather API to get data. When you log into a website with Google, it uses Google's API.
REST is the most common API style. It uses URLs and HTTP methods to perform actions on resources.
APIS
# Real-world API examples:
# - Weather data: api.openweathermap.org
# - Maps: maps.googleapis.com
# - Payments: api.stripe.com
# - Social media: api.twitter.com
# REST treats everything as a resource:
# /users = all users
# /users/1 = user with ID 1
# /products = all products