We have explored how we can get data out of APIs in the previous lesson. Today, we will dive deep on collecting data from APIs, and how we can get value out of it.
It is a lot more practice today with real-world data and APIs.
Objectives For Today
- Working with Weather and City APIs
- In this lesson today, we will be practicing more on how we can collect data from APIs.
Students Do: JSON Traversal
Let’s open up the file(s) in the 01-Stu_JSONTraversalReview
folder to get started.
Students Do: Requests Review
Let’s open up the file(s) in the 02-Stu_SpaceX-Request
folder to get started.
OpenWeatherMap API
Let’s open up the file in the 03-Ins_OpenWeatherRequest
folder to get started.
Students Do: Weather in Burundi
Let’s open up the file(s) in the 04-Stu_BurundiWeatherApp
folder to get started.
OpenWeatherMap DataFrame
Let’s open up the file(s) in the 05-Ins_OpenWeatherDataFrame
folder to get started.
Students Do: TV Ratings DataFrame
Let’s open up the file(s) in the 06-Stu_TVRatingsDataFrame
folder to get started.
Students Do: Weather Statistics
Let’s open up the file(s) in the 07-Stu_Weather_Stats
to get started.
Exception Handling
Look at the file(s) in the 08-Ins_ExceptionHandling
folder.
Students Do: Making Exceptions
Let’s open up the file(s) in the 09-Stu_MakingExceptions
to get started.
Student Do: API Call Exceptions
Let’s open up the file(s) in the 10-Stu_API_Exceptions
to get started.
World Bank API
Let’s open up the file(s) in the 11-Ins_WorldBankAPI
to get started.
We are going to explore the world bank website here: https://datahelpdesk.worldbank.org/knowledgebase/topics/125589-developer-information
- By opening the API basic call structure link, we can see how we can extract data with different formats.
Students Do: Two Calls
Let’s open up the file(s) in the 12-Stu_TwoCalls
to get started.