Call it
curl https://api.peume.com/v1/call/us-company-income-statement-segments \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"ticker": "AAPL",
"period": "annual"
}
}'const res = await fetch("https://api.peume.com/v1/call/us-company-income-statement-segments", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"ticker": "AAPL",
"period": "annual"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/us-company-income-statement-segments",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"ticker": "AAPL",
"period": "annual"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: us-company-income-statement-segments.
Parameters
tickerstringUS stock ticker; supply ticker or cik
Example: AAPL
cikstringSEC Central Index Key; supply ticker or cik
periodRequiredstringannual | quarterly
Example: annual
limitintegerreport_periodstringexact report date, YYYY-MM-DD
report_period_gtestringreport date on or after YYYY-MM-DD
report_period_ltestringreport date on or before YYYY-MM-DD
report_period_gtstringreport date after YYYY-MM-DD
report_period_ltstringreport date before YYYY-MM-DD
cursorstringopaque cursor from the response next_page_url; when supplied, omit the original filters because the cursor preserves them
