Skip to main content
This documentation covers Sectors API v2.If you are currently using Sectors API v1, see the documentation here.
Sectors Financial Data API

Overview

Sectors has been used as an equity research tool by Indonesia’s top financial institutions, and has also been used as a data source for academic research. The depth of our data puts it head and shoulders above any comparable market intelligence tool, and is readily available through a simple developer experience with Sectors Financial API. Beginners can start with the Get your API Key guide, while more experienced developers can dive into our API Reference for a comprehensive list of endpoints and examples. We also have longer-form tutorial series and recipes for those looking to build financial analysis workflows and automations by example.

Get Started

Get your API Key

1

⏫ Upgrade to Sectors Insider

Through the Sectors Financial API, you are two lines of code away from Indonesia’s most comprehensive financial market data and stock research tools. Sectors Financial API is available to our Insider plan subscribers.
API Pricing
2

🗝️ Obtain Sectors Financial API Key

Once logged in with your Sectors account (Insider plan), navigate to the API Keys section in the API page to generate a new API key. Include this API key in the header of your requests to authenticate and access the API (code snippets provided in the next step).
API Keys
3

📊 Retrieve Data from the API

Use one of the documented API endpoints along with your Sectors Financial API Key to access data from Sectors. Explore the API References to discover the available endpoints and sample responses.
import requests

# Replace the URL with a URL from the API References
url = "https://api.sectors.app/v2/.../"
api_key = "API key acquired from the previous step"
headers = {"Authorization": api_key}

try:
    response = requests.get(url, headers=headers)
    response.raise_for_status()
    data = response.json()
except requests.exceptions.HTTPError as err:
    raise SystemExit(err)