We are on a mission to make financial data delightful for developers.Our API is designed for AI financial agents, portfolio management tools,
stock analysis platforms, quantitative trading algorithms, and more.We provide a simple REST API, which delivers premium stock market data, including:
Please create an account and grab your API key at financialdatasets.ai.You will use the API key to authenticate your requests.There are only 3 steps for making a successful API call:
Add your API key to the header of the request as X-API-KEY.
Add query params like ticker, period and limit to filter the data.
import requests# add your API key to the headersheaders = { "X-API-KEY": "your_api_key_here"}# set your query paramsticker = 'NVDA' # stock tickerperiod = 'ttm' # possible values are 'annual', 'quarterly', or 'ttm'limit = 30 # number of statements to return# create the URLurl = ( f'https://api.financialdatasets.ai/financials/income-statements' f'?ticker={ticker}' f'&period={period}' f'&limit={limit}')# make API requestresponse = requests.get(url, headers=headers)# parse income_statements from the responseincome_statements = response.json().get('income_statements')