Call it
curl https://api.peume.com/v1/call/etf-and-index-fund-holdings \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"ticker": "SPY"
}
}'const res = await fetch("https://api.peume.com/v1/call/etf-and-index-fund-holdings", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"ticker": "SPY"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/etf-and-index-fund-holdings",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"ticker": "SPY"
}
},
)
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: etf-and-index-fund-holdings.
Parameters
tickerstringETF or index-fund ticker; supply exactly one of ticker or holding. If availability is uncertain, call.index-funds.tickers first
Example: SPY
holdingstringUS security ticker; supply exactly one of ticker or holding to find funds whose latest filing holds the security
as_ofstringYYYY-MM-DD; valid only with ticker; returns the fund composition in effect on or before this date
asset_classstringequity | bond; valid only with ticker; omit for all holdings
limitintegertotal rows across all pages; default 50; each response page contains up to 10 rows
offsetintegerrows to skip; default 0
cursorstringopaque cursor from the response next_page_url; when supplied, omit the original filters because the cursor preserves them
