Parameters
| Name | Type | Req | Description |
|---|---|---|---|
| ticker | path | yes | Ticker symbol. |
Example
curl -H "X-API-Key: rk_YOUR_KEY" \
https://api.rockmoon.ai/v1/segments/AAPL/balance-sheet
r = requests.get(
"https://api.rockmoon.ai/v1/segments/AAPL/balance-sheet",
headers={"X-API-Key": "rk_YOUR_KEY"},
)
for period in r.json()["segmented_financials"]:
print(period["report_period"], period["balance_sheet"])
const r = await fetch(
"https://api.rockmoon.ai/v1/segments/AAPL/balance-sheet",
{ headers: { "X-API-Key": "rk_YOUR_KEY" } },
);
const { segmented_financials } = await r.json();
Response 200
{
"ticker": "AAPL",
"market": "US",
"currency": "USD",
"count": 6,
"segmented_financials": [
{
"report_period": "2014-09-27",
"period_type": "instant",
"balance_sheet": {
"assets": {
"segment": [
{ "label": "Americas", "value": 9352000000 },
{ "label": "Europe", "value": 4631000000 },
{ "label": "Greater China", "value": 3172000000 },
{ "label": "Japan", "value": 3106000000 },
{ "label": "Rest Of Asia Pacific", "value": 908000000 },
{ "label": "Retail", "value": 3626000000 }
]
}
}
},
{
"report_period": "2013-09-28",
"period_type": "instant",
"balance_sheet": {
"assets": {
"segment": [
{ "label": "Americas", "value": 5653000000 },
{ "label": "Europe", "value": 3134000000 },
{ "label": "Greater China", "value": 2943000000 },
{ "label": "Japan", "value": 2932000000 },
{ "label": "Asia Pacific", "value": 923000000 },
{ "label": "Rest Of Asia Pacific", "value": 923000000 },
{ "label": "Retail", "value": 3329000000 },
{ "label": "Corporate", "value": 188086000000 }
]
}
}
}
],
"trace_id": "56b1f7c1eb2c4d8a8b1b6c1d4e5f6a7b"
}
Errors
| HTTP | Code | Cause |
|---|---|---|
| 403 | upgrade_required | Segments are a Basic+ feature. |
| 404 | ticker_not_found | Unknown ticker. |
| 429 | rate_limit_exceeded | Rate limit hit. Honor Retry-After. |
Notes
- Coverage varies. Most filers stopped disclosing segment-level assets after the 2015–2018 ASC 280 simplification — historical periods are denser than recent ones.
- Period type is
instant(balance-sheet date) rather than a duration.