Sources › Finance › TradingView › Chart

TradingView Chart API
OHLCV candles at 13 resolutions for any symbol the platform carries.
Request
https://api.zapi.ink/v1/finance:tradingview/chartSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 5 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| symbol | string | query | Yes | Exchange-qualified symbol. A bare ticker uses the market's default exchange Example: IDX:BBCA |
| market | enum: indonesia | america | crypto | forex | malaysia | singapore | thailand | japan | hongkong | india | uk | germany | australia | futures | cfd | bond | query | No | Market used to resolve a bare ticker. Default indonesia Example: indonesia |
| resolution | enum: 1 | 3 | 5 | 15 | 30 | 45 | 60 | 120 | 180 | 240 | 1D | 1W | 1M | 3M | 6M | 12M | query | No | Candle size in minutes, or 1D / 1W / 1M / 3M / 6M / 12M. Default 1D Example: 1D |
| count | number | query | No | Number of candles. Default 200, max 20000. The real bound is the instrument's own history: asking for more than it has returns everything it has Example: 200 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:tradingview/chart?symbol=IDX%3ABBCA&market=indonesia&resolution=1D&count=200" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:tradingview/chart?symbol=IDX%3ABBCA&market=indonesia&resolution=1D&count=200", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/finance:tradingview/chart", params={"symbol":"IDX:BBCA","market":"indonesia","resolution":"1D","count":"200"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:tradingview", "data": { "name": "PT Bank Central Asia Tbk", "count": 30, "market": "indonesia", "symbol": "IDX:BBCA", "candles": [ { "low": 6125, "date": "2026-06-22T02:00:00.000Z", "high": 6400, "open": 6400, "close": 6225, "volume": 193401600, "timestamp": 1782093600 }, { "low": 6075, "date": "2026-06-23T02:00:00.000Z", "high": 6200, "open": 6150, "close": 6125, "volume": 144561900, "timestamp": 1782180000 }, { "low": 5925, "date": "2026-06-24T02:00:00.000Z", "high": 6200, "open": 6125, "close": 5925, "volume": 144928800, "timestamp": 1782266400 }, { "low": 5900, "date": "2026-06-25T02:00:00.000Z", "high": 6175, "open": 5900, "close": 6025, "volume": 197935000, "timestamp": 1782352800 }, { "low": 6025, "date": "2026-06-26T02:00:00.000Z", "high": 6175, "open": 6050, "close": 6175, "volume": 163378700, "timestamp": 1782439200 }, { "low": 5925, "date": "2026-06-29T02:00:00.000Z", "high": 6200, "open": 6175, "close": 5925, "volume": 189886600, "timestamp": 1782698400 }, { "low": 5550, "date": "2026-06-30T02:00:00.000Z", "high": 5825, "open": 5775, "close": 5550, "volume": 440738300, "timestamp": 1782784800 }, { "low": 5550, "date": "2026-07-01T02:00:00.000Z", "high": 5750, "open": 5550, "close": 5600, "volume": 124123800, "timestamp": 1782871200 } ], "currency": "IDR", "exchange": "IDX", "provider": "tradingview", "timezone": "Asia/Bangkok", "resolution": "1D" }, "timestamp": "2026-08-02T04:21:07Z" }
Frequently asked questions
How do I call the TradingView Chart API?
Send a GET request to https://api.zapi.ink/v1/finance:tradingview/chart?symbol=IDX%3ABBCA with your Zapi key in the x-api-key header. Parameters — required: symbol; optional: market, resolution, count. The response is JSON in the { project, data, timestamp } envelope.
What does the TradingView Chart API return?
OHLCV candles at 13 resolutions for any symbol the platform carries. The example response has the fields name, count, market, symbol, candles, currency, exchange, provider. Each item in candles has fields such as low, date, high, open, close, volume, timestamp.
Is the TradingView Chart API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the TradingView Chart API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "tradingview" and endpoint "chart".
What other TradingView API endpoints are there?
It has 12 endpoints. Besides Chart: Screener, Symbol, Markets, Technicals, Performance, Financials, and 5 more.