You've learned about APIs and how they differ from regular websites. Now let's practice identifying when to use each approach and what makes them different.
Understanding this distinction is key to how modern web applications work.
Engagement Message
Ready to explore the differences between APIs and websites?
Type
Sort Into Boxes
Practice Question
Let's identify whether each scenario would use a regular website or an API. Sort these examples:
Labels
- First Box Label: Regular Website
- Second Box Label: API
First Box Items
- Reading blog posts
- Shopping catalog
- News article page
Second Box Items
- Weather app data
- Mobile app content
- Restaurant locations
Type
Multiple Choice
Practice Question
You're a developer choosing between building a website or an API. Which would be better for each scenario?
A. Displaying company information to website visitors - Regular website
B. Feeding data to a mobile app - API
C. Providing current stock prices to multiple apps - API
D. All of the above choices are correct
Suggested Answers
- A
- B
- C
- D - Correct
Type
Fill In The Blanks
Markdown With Blanks
Fill in the blanks about the key differences:
A regular website sends [[blank:formatted]] web pages designed for humans to read. An API sends [[blank:raw]] data that applications can use however they want.
