Everything you need to integrate FinEdge Labs segment data into your applications.
pip install requests
import requests
headers = {"X-API-Key": "fel_your_key_here"}
response = requests.get(
"https://api.finedgelabs.com/v1/companies/AAPL/segments",
headers=headers,
)
for segment in response.json()["segments"]:
print(f"{segment['segment_name']}: {segment['metrics']}")/api/v1/companies/searchSearch companies by ticker or name
Params: q (required), limit
/api/v1/companies/{cik}Get company details by CIK
Params: cik (path)
/api/v1/companies/{cik}/segmentsGet segment financials for a company
Params: cik (path), segment_type, years
/api/v1/companies/{cik}/geographicGet geographic revenue breakdown
Params: cik (path)
/api/v1/companies/{cik}/filingsGet filing history
Params: cik (path), form_type
/api/v1/compare/segmentsCompare segment data across companies
Params: ciks (required), metric, normalize
/api/v1/export/excelGenerate Excel workbook
Params: cik, periods, years, include_segments
/api/v1/export/csvExport as CSV
Params: cik, periods, years
All API requests require an API key passed in the X-API-Key header.
curl -H "X-API-Key: fel_your_key_here" \ https://api.finedgelabs.com/v1/companies/search?q=AAPL
Get your API key from the API Keys page in your dashboard.