Yahoo Finance Historical prices API
API health
- 24h health
- Normal
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
Pull price history for one Yahoo Finance ticker: date, open, high, low, close, volume, dividends and stock splits. interval defaults to 1d and period to 1mo. 1m means one minute, and long ranges may not include every data point.
Send POST https://api.everyinfra.com/api/v1/social with platform set to yahoo_finance and action set to history. Price $1.39 per 1,000 requests ($0.001389 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
#Please help me write a data collection script with the EveryInfra Yahoo Finance Historical prices endpoint (yahoo_finance/history).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to yahoo_finance and action to history, and put the parameters inside params.
- Required parameters:
- keyword: Specifies a single Yahoo Finance ticker symbol (e.g., AAPL) with required exchange suffixes retained. It does not perform full-text company name searches.
- Optional parameters:
- interval: Defines the candlestick time step for the Yahoo Finance history action, defaulting to 1d.
- period: Sets the historical lookback duration for the Yahoo Finance history action, defaulting to 1mo.
- limit: The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows.
- Returns a list of records. Main fields of each record: symbol, date, open, high, low, close, volume, dividends, stock_splits.
- Example request body:
{
"platform": "yahoo_finance",
"action": "history",
"params": {
"keyword": "AAPL"
}
}
- Price: $1.39 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | yahoo_finance | Platform identifier, fixed value. |
action | body | string | Yes | history | Capability identifier, fixed value. |
keyword | body.params | string | Yes | - | Specifies a single Yahoo Finance 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. |
interval | body.params | string | No | - | Defines the candlestick time step for the Yahoo Finance 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. |
period | body.params | string | No | - | Sets the historical lookback duration for the Yahoo Finance 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. |
limit | body.params | integer (1–) | No | - | The most rows to return in this call, an integer of 1 or more. The default applies when you leave it out, and a call can return fewer rows. |
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "yahoo_finance",
"action": "history",
"params": {
"keyword": "AAPL"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "req_…", "platform": "yahoo_finance", "action": "history", "results": [ { "symbol": "AAPL", "date": "2026-08-26T00:00:00-04:00", "open": 310.3, "high": 315.43, "low": 308.8, "close": 313.45, "volume": 34024500, "stock_splits": 0, "platform": "yahoo_finance" }, { "symbol": "AAPL", "date": "2026-08-27T00:00:00-04:00", "open": 310.55, "high": 315.4, "low": 309.4, "close": 314.58, "volume": 32419200, "stock_splits": 0, "platform": "yahoo_finance" } ], "count": 22, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.
| Field | Meaning |
|---|---|
symbol | Keeps the platform's own meaning |
date | Keeps the platform's own meaning |
open | Keeps the platform's own meaning |
high | Keeps the platform's own meaning |
low | Keeps the platform's own meaning |
close | Keeps the platform's own meaning |
volume | Keeps the platform's own meaning |
dividends | Keeps the platform's own meaning |
stock_splits | Keeps the platform's own meaning |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.
Official references
#Used only to check objects and terms. They do not imply authorization or endorsement of EveryInfra by the platform.
- Yahoo Finance: Historical Prices, Dividends, Splits, and Frequency Selection ↗
The official historical data page distinguishes time spans, data types, and frequency options, outlining available historical ranges and licensing restrictions. This does not indicate that this endpoint provides CSV downloads or identical complete coverage.
Checked 2026-09-05
- Yahoo Finance: Definition of Adjusted Close ↗
Official documentation defines adjusted close as accounting for stock splits and dividend adjustments. Because the current endpoint returns only close, this documentation cannot be used to claim that response values are adjusted.
Checked 2026-09-05