Read a company's key statistics by requesting the statistics module and printing the keys that come back.
The docs describe statistics as key statistics. The published sample for this path is the profile module.
To access this endpoint, you must obtain an API key: Get your API key
Request the statistics module
GET /v1/markets/stock/modules returns one module for one ticker. Send ticker AAPL and module statistics. Timeframe applies to income-statement-v2, balance-sheet-v2, cashflow-statement-v2, and ratios. This request leaves timeframe unset.
Print the keys on the body
When body is a dict, the script prints its keys in sorted order. Any other body is printed as its type name. That print is the statistics list.
import requests
url = "https://api.mboum.com/v1/markets/stock/modules"
headers = {"Authorization": "Bearer YOUR_API_KEY"}
params = {"ticker": "AAPL", "module": "statistics"}
response = requests.get(url, headers=headers, params=params)
response.raise_for_status()
payload = response.json()
body = payload["body"]
if isinstance(body, dict):
print(sorted(body.keys()))
else:
print(type(body).__name__)
One limitation: the published modules sample is the profile module, so the statistics names are the keys this script prints.
Learn more or explore other endpoints: stock modules