Company facts includes data like name, CIK, market cap, total employees, website URL, and more.The company facts API provides a simple way to access the most important high-level information about a company.Please note: This API is experimental and free to use.To get started, please create an account and grab your API key at financialdatasets.ai.You will use the API key to authenticate your API requests.
import requests# add your API key to the headersheaders = { "X-API-KEY": "your_api_key_here"}# set your query paramscik = '0000320193'# create the URLurl = ( f'https://api.financialdatasets.ai/company/facts' f'?cik={cik}')# make API requestresponse = requests.get(url, headers=headers)# parse company_facts from the responsecompany_facts = response.json().get('company_facts')