Docs /
Segments /
Cash flow
Cash-flow segments
Capex and other cash-flow lines, broken out per segment.
GET
/v1/segments/{ticker}/cash-flow
basic+
Parameters
Name Type Req Description
ticker path yes Ticker symbol.
Example
curl
Python
JavaScript
Copy
curl -H "X-API-Key: rk_YOUR_KEY " \
https://api.rockmoon.ai/v1/segments/AAPL/cash-flow
r = requests.get(
"https://api.rockmoon.ai/v1/segments/AAPL/cash-flow",
headers={"X-API-Key": "rk_YOUR_KEY"},
)
for period in r.json()["segmented_financials"]:
print(period["report_period"], period["cash_flow_statement"])
const r = await fetch(
"https://api.rockmoon.ai/v1/segments/AAPL/cash-flow",
{ headers: { "X-API-Key": "rk_YOUR_KEY" } },
);
const { segmented_financials } = await r.json();
Response 200
Copy
{
"ticker": "AAPL",
"market": "US",
"currency": "USD",
"count": 9,
"segmented_financials": [
{
"report_period": "2014-09-27",
"period_type": "annual",
"cash_flow_statement": {
"capex": {
"segment": [
{ "label": "Retail", "value": 484000000 }
]
}
}
},
{
"report_period": "2013-09-28",
"period_type": "annual",
"cash_flow_statement": {
"capex": {
"segment": [
{ "label": "Retail", "value": 495000000 }
]
}
}
},
{
"report_period": "2012-09-29",
"period_type": "annual",
"cash_flow_statement": {
"capex": {
"segment": [
{ "label": "Retail", "value": 865000000 }
]
}
}
}
],
"trace_id": "dd979e85f76248f297a59d4a6d9ee2ec"
}
Errors
HTTP Code Cause
403 upgrade_requiredSegments are a Basic+ feature.
404 ticker_not_foundUnknown ticker.
429 rate_limit_exceededRate limit hit. Honor Retry-After.
Notes
Coverage is sparse — most filers don't disclose CF lines at the segment level. Expect capex only for some periods and historical filings.