Sources › Finance › TradingView › Markets

TradingView Markets API

Which markets can be scanned, and how many instruments each holds.

TradingViewGET /marketsAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/finance:tradingview/markets

Send 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

NameTypeInRequiredDescription
searchstringqueryNoFilter markets by id or label Example: indo
scopeenum: default | allqueryNo`default` lists the 16 headline markets (~1s). `all` lists every one of the 76 the screener accepts, and takes ~13s because each market's instrument count is a separate upstream call. Example: all

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/finance:tradingview/markets?search=indo&scope=all" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/finance:tradingview/markets?search=indo&scope=all", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/finance:tradingview/markets",
    params={"search":"indo","scope":"all"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "finance:tradingview",
  "data": {
    "count": 16,
    "items": [
      {
        "id": "indonesia",
        "label": "Indonesia Stock Exchange",
        "instrumentCount": 881
      },
      {
        "id": "america",
        "label": "United States",
        "instrumentCount": 19643
      },
      {
        "id": "crypto",
        "label": "Crypto",
        "instrumentCount": 55807
      },
      {
        "id": "forex",
        "label": "Forex",
        "instrumentCount": 6260
      },
      {
        "id": "malaysia",
        "label": "Malaysia",
        "instrumentCount": 1145
      },
      {
        "id": "singapore",
        "label": "Singapore",
        "instrumentCount": 645
      },
      {
        "id": "thailand",
        "label": "Thailand",
        "instrumentCount": 2248
      },
      {
        "id": "japan",
        "label": "Japan",
        "instrumentCount": 4393
      }
    ],
    "provider": "tradingview"
  },
  "timestamp": "2026-08-02T04:21:07Z"
}

Frequently asked questions

How do I call the TradingView Markets API?

Send a GET request to https://api.zapi.ink/v1/finance:tradingview/markets with your Zapi key in the x-api-key header. Parameters — optional: search, scope. The response is JSON in the { project, data, timestamp } envelope.

What does the TradingView Markets API return?

Which markets can be scanned, and how many instruments each holds. The example response has the fields count, items, provider. Each item in items has fields such as id, label, instrumentCount.

Is the TradingView Markets 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 Markets 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 "markets".

What other TradingView API endpoints are there?

It has 12 endpoints. Besides Markets: Screener, Symbol, Chart, Technicals, Performance, Financials, and 5 more.