Your First Request!
Overview
The “Sectors Financial API Recipes” provides a comprehensive overview and practical guidance for utilizing the Sectors Financial API. This resource serves as a valuable reference for developers, offering insights into the various sectors covered by the API, along with detailed instructions on how to integrate and leverage its functionalities within software applications. This cookbook equips developers with the necessary knowledge and tools to effectively harness the power of the Sectors Financial API in their projects.
Objective
- Install required library
- Configure the sample
- Run the sample
- Get Started
Prerequisite
To follow this recipe, you need the following prerequisites:
Install required libraries
-
Install the requests library to make HTTP Requests
-
Install pandas to do some data exploratory
-
In this cookbook we will use altair to do the data visualization
Configure the sample
In this example we will examine how to make your first request to the Sectors Financial API
-
Find the API Keys Section and click the Create API Key button to generate the key
-
Save the API Key because we will use that to access Sectors Financial API
-
In your working directory, create this file named
first_request.py
-
Include the following code in
first_request.py
Run your sample
-
In your working directory, build and run the sample:
-
You should see the list of all subsectors!
Get Started
On the next chapter we will examine every API that Sectors provide and do some magical ✨ visualization using altair, heads up to the next section.