Get Yahoo Finance chart
Get Yahoo Finance chart bars, dividends, splits and capital gains.
Headers
Get your API keyAPI key (`sfk_...`)
Ticker symbol, case-insensitive, e.g. `AAPL`, `^GSPC`, `EURUSD=X`, `BTC-USD`, `7203.T`.
min 1 chars · max 40 chars · pattern: ^[A-Za-z0-9^=.-]+$
Bar size. Default: `1d`. `1m` bars cover the last 30 days, at most 8 days per request. `2m`, `5m`, `15m`, `30m` and `90m` cover at most 60 days; `60m`, `1h` and `4h` at most 730 days.
one of: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 4h, 1d, 5d, 1wk, 1mo, 3mo
A named window such as `1y`, `5y` or `max`. Ignored when `start` or `end` is sent; those define the window. Default: `1y` when neither is sent.
one of: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max
Window start, as an ISO 8601 date or time (such as `2026-01-31`) or epoch seconds. A time with no zone is UTC. It takes precedence over `range`.
Window end, as an ISO 8601 date or time or epoch seconds. It is exclusive: bars before it are returned. It takes precedence over `range`.
Corporate events to include: `div`, `split`, `capitalGain`, comma-separated. Default: `div,split`.
any of: div, split, capitalGain (comma-separated)
Include pre-market and post-market bars. Default: false.
Endpoint-specific response payload.
Whether the entity was found. HTTP 200 for both outcomes; branch on this field.
one of: found, not_found
Ticker symbol the chart is for.
Bar size that was asked for.
Named window, or null when explicit `start`/`end` were sent.
Number of bars returned.
≥ 0
True when the response was cut at the bar cap; narrow the window to get the rest.
The chart result: `meta`, `timestamp`, `indicators` and `events`, normalised. Epoch times are ISO 8601 UTC.
Metadata describing the request and billing outcome.
Unique request identifier for tracing this API call.
min 1 chars
Credits charged for this request.
≥ 0
Public API version that served the response.
one of: v1
Code example
curl "https://api.socialfetch.dev/v1/yahoo-finance/instruments/AAPL/chart?interval=1d&range=1y" \
-H "x-api-key: YOUR_API_KEY"Responses
A Yahoo Finance chart.