Question: Web APIs let you request information using an HTTP GET request and return the requested information in some structured format, such as JSON. Use


Web APIs let you request information using an HTTP GET request and return the requested information in some structured format, such as JSON. Use an API that gives us a list of holidays in a country. We'll need to supply a two-letter country code (see the "Alpha 2" column in the table at https://www.nationsonline.org/oneworld/country code list.htm) and a four-digit year. The API URL will use: https://date.nager.at/Api/vi/Get/COUNTRYCODE/YEAR, where you replace COUNTRYCODE with the two-letter country code of the country you are interested in, and YEAR with the four-digit year you are interested in. The API sends you back a JSON response which consists of a list of dictionaries, one dictionary per holiday. Below is an example of a response from the API (only the first two dictionaries of the response are shown):
Step by Step Solution
3.45 Rating (155 Votes )
There are 3 Steps involved in it
The required code for the program is as follows import necessary libraries import argparse import re... View full answer
Get step-by-step solutions from verified subject matter experts
