Call it
curl https://api.peume.com/v1/call/yahoo-historical-prices \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"keyword": "your keyword"
}
}'const res = await fetch("https://api.peume.com/v1/call/yahoo-historical-prices", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"keyword": "your keyword"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/yahoo-historical-prices",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"keyword": "your keyword"
}
},
)
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: yahoo-historical-prices.
Parameters
periodstringSets the historical lookback duration for the history action, defaulting to 1mo. Supported values include days (1d, 5d), months (1mo, 3mo, 6mo), years (1y, 2y, 5y, 10y), year-to-date (ytd), and maximum available history (max). Selecting max does not guarantee a complete dataset dating back to an asset's initial public offering.
intervalstringDefines the candlestick time step for the history action, defaulting to 1d. Allowed values include minute intervals (1m, 2m, 5m, 15m, 30m, 60m, 90m), hourly (1h), daily (1d, 5d), weekly (1wk), and monthly (1mo, 3mo). Note that 1m represents one minute, not one month, and sub-daily intervals paired with long periods may be subject to historical lookback limits.
keywordRequiredstringSpecifies a single ticker symbol (e.g., AAPL) with required exchange suffixes retained. It does not perform full-text company name searches. The history, financials, news, analyst, and options actions process one ticker per request to retrieve historical market data, financial statements, news items, analyst coverage, or options chains.
