Yahoo Finance

Get Yahoo Finance chart

Get Yahoo Finance chart bars, dividends, splits and capital gains.

GET/v1/yahoo-finance/instruments/{symbol}/chart
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
7
symbolstringrequiredpath

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^=.-]+$

intervalstringoptionalquery

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

rangestringoptionalquery

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

startstringoptionalquery

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`.

endstringoptionalquery

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`.

eventsarrayoptionalquery

Corporate events to include: `div`, `split`, `capitalGain`, comma-separated. Default: `div,split`.

any of: div, split, capitalGain (comma-separated)

includeExtendedHoursbooleanoptionalquery

Include pre-market and post-market bars. Default: false.

Response fields
12

Endpoint-specific response payload.

datalookupStatus
string

Whether the entity was found. HTTP 200 for both outcomes; branch on this field.

one of: found, not_found

datasymbol
string

Ticker symbol the chart is for.

datainterval
string

Bar size that was asked for.

datarange
stringnullable

Named window, or null when explicit `start`/`end` were sent.

databars
integer

Number of bars returned.

≥ 0

datatruncated
boolean

True when the response was cut at the bar cap; narrow the window to get the rest.

datachart
objectnullable

The chart result: `meta`, `timestamp`, `indicators` and `events`, normalised. Epoch times are ISO 8601 UTC.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

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.