# Get price history (v1)

Returns open, high, low, close, adjusted close and volume bars for a range and bar size, with the dividends and splits inside the range. `data` is null for an unknown ticker.

- Platform: Yahoo Finance
- Request: `GET https://api.toolzerhub.com/v1/yahoo-finance/chart`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/yahoo-finance/chart/get-yahoo-finance-chart

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `symbol` | query | yes | string | A Yahoo Finance ticker such as AAPL, BRK-B, RELIANCE.NS, ^GSPC, BTC-USD or EURUSD=X, or its finance.yahoo.com quote link. Find a ticker by company name with Search. |
| `range` | query | no | enum: 1d, 5d, 1mo, 3mo, 6mo, ytd, 1y, 2y, 5y, 10y, max | How far back the bars reach, ending now. ytd starts on 1 January; max reaches the first trading day. Default: 1mo. |
| `interval` | query | no | enum: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo | Bar size. 1m works with range up to 5d; 2m to 90m up to 1mo; 60m and 1h up to 2y. Longer combinations are rejected. Default: 1d. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/yahoo-finance/chart?symbol=<symbol>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
