“TradingView API” is searched far more often than any other phrase this site documents, and most of what ranks for it answers a different question — how to send alerts out of TradingView, or how to plug a broker into it. This page answers the one people actually ask: can a program get market data from TradingView, and if not, what can it read instead.
The short answer
No public data API exists. TradingView's own help centre is explicit: “We don’t have an API that gives access to data as of now, but we are planning to add it in the future. Our REST API is meant for brokers who want to be supported on our trading platform.” The widget documentation gives the same answer without the sentence about the future, and adds that “it is not possible to download or export data from TradingView at this time.”
Two things have changed the shape of that answer, though. TradingView now runs an official MCP server, which hands market data to an AI assistant acting for a paying user. And its public screener — the page anyone can open without an account — answers in JSON, which is what the TradingView Data API Actor reads. Neither is a data API in the usual sense, and each comes with conditions worth knowing before choosing.
What TradingView does offer developers
Every developer product TradingView lists, and whether it gives you data:
| Product | What it is | Gives you TradingView data? |
|---|---|---|
| Broker REST API (brokerage integration) | An API a broker implements so TradingView users can trade through it | No — data flows from the broker to TradingView |
| Advanced Charts, Trading Platform | Charting libraries to embed in your own site | No — “neither Advanced Charts nor Trading Platform contains any market data” |
| Widgets | Embeddable charts, tickers, screeners and calendars | Displayed on your page only; no API behind them |
| Webhook alerts | An HTTP POST to your URL when an alert you set fires | Only the alert message you wrote; needs two-factor authentication |
| MCP server | An official server an AI client connects to with your account | Yes, to you, on a paid plan, for personal non-commercial use |
The charting libraries are the most common source of confusion. Their documentation has a page called “Datafeed API”, which sounds like the thing people are looking for and is its opposite: it is the interface you implement to feed your prices into TradingView's chart. The library's own note says to use “data from your own source or third-party providers.”
Webhooks are the second. A webhook carries out of TradingView whatever message you typed into the alert — a symbol and a price if you put them there — at the moment the alert fires. It is a notification channel, not a way to query anything, and the help centre says webhook alerts are allowed only with two-factor authentication enabled.
The MCP server: the closest thing to a data API
TradingView's MCP server is the one official route by which software reads TradingView market data. An AI client — Claude, ChatGPT, Cursor and others — connects to it with OAuth on your TradingView account, and calls tools. Its documentation lists 38 tools in 9 categories, and the market-data ones are substantial: get_ohlcv returns historical bars at intervals from one minute to one month, up to 5,000 bars as rows per call and paged further back, with daily and weekly history to the listing date; run_screener runs the screener with filters and up to 1,000 rows; get_news and get_news_story return headlines and text; get_economic_data returns indicator series.
The conditions are what make it something other than a data API:
- Paid plans only, with daily quotas. The documentation lists 10 calls a day on Essential, 20 on Plus, 50 on Premium and 500 on Ultimate; an AI subscription raises any plan to 500 a day and 50 a minute.
- Personal, non-commercial use. Section 27 of the Terms of Use rules out use “for or on behalf of any company”, including internal research, and connecting it to any agent or application other people can use.
- No datasets. The same section forbids using it to “build, supplement or maintain any database, dataset, archive or data feed”, and any automated trading or other non-display use.
- Your plan's data. Delay and history depth follow your own plan and exchange subscriptions.
So the MCP server answers “tradingview api for claude” and “tradingview api to chatgpt” precisely: if you want an assistant to look at charts and screens for you, it is the sanctioned way, and the only official way to candles. It does not answer “how do I load TradingView data into my database every morning”.
Free, key, Python, historical data
Is it free? There is no data API to price. The MCP server needs a paid plan, widgets display data on your page without giving you any to read, and the broker REST API is for brokerages.
Where is the API key? TradingView issues none for data. The MCP server uses OAuth against your TradingView login — “no API keys to manage”, in its own words.
Python? With no public endpoint to call, any Python library that reads TradingView data outside the MCP server is reading the internal endpoints the website uses, which is exactly what TradingView's Terms address (below). Run through Apify instead, the call looks like this with Apify's official Python client — the token is your Apify token, not a TradingView one:
from apify_client import ApifyClient
apify_client = ApifyClient("MY-APIFY-TOKEN")
call_result = apify_client.actor("oswaldocarabano/tradingview-data-api").call(
run_input={"market": "america", "primaryListingOnly": True, "maxItems": 500}
)
rows = apify_client.dataset(call_result.default_dataset_id).list_items()Historical data and candles? Officially, only through the MCP server, under its conditions. The TradingView Data API does not return price bars: it returns the screener as it stands at run time, plus up to 20 years of annual and quarterly fundamentals as arrays when the financial-history group is switched on. A daily schedule of screener snapshots builds a history of its own from the day it starts, not backwards.
What the public screener holds
TradingView's stock screener, crypto screener and forex screener are the same service underneath: one request per market with a list of columns, filters and a sort. It covers 74 markets — stocks and ETFs of 68 countries, crypto coins, crypto pairs, forex, futures, government bonds and indices with commodities — and on 18 November 2026 the US market alone held 20,317 symbols. The TradingView Data API reads it without an account and returns one row per symbol with the columns you choose.
What makes the screener useful is the width of a row. Fundamentals from the income statement, balance sheet and cash flow; valuation ratios; dividends with ex-dates; analyst ratings and price targets; the next earnings date; and TradingView's technical rating with RSI, MACD, stochastics and moving averages — on the daily chart and, if you ask, on any of nine more timeframes from one minute to one month. The same Actor returns TradingView news, with the article text where the provider publishes it, and community trading ideas.
What the screener does not have is depth in time. Every row is “now”: the last price, the trailing-twelve-month figures, the current rating. How the screener pages, and the three ways it fails without an error, are in TradingView screener data.
What a row holds, measured
Measured on real runs of the Actor on 18 November 2026, with the default column groups:
| Asset class | Rows | Columns per row | Filled per row (mean) |
|---|---|---|---|
| US stocks and ETFs | 1,500 | 964 | 745.7 |
| Crypto coins | 300 | 366 | 333.6 |
| Crypto pairs | 300 | 374 | 285.2 |
| Forex | 300 | 310 | 294.8 |
| Government bonds | 300 | 115 | 104.1 |
Over the 1,500 largest US symbols, price, volume, market cap, sector, industry and ISIN were filled on 100% of rows, the technical rating and RSI on 99.6%, P/E on 94.8%, the next earnings date on 91.0% and the analyst price target on 79.7%. Those are large companies; the full field list with every rate is on the Actor page, and the reason a rate is printed with its sample is in measured fill rates, not promises.
Freshness follows the screener: crypto and forex real-time, stocks at the exchange's standard delay, often 15 minutes. Speed on Apify was 100 rows in 4 seconds and 3,000 rows in 121 seconds. The price is $0.001 per row however many columns it carries — $3.00 for the 3,000 largest US stocks — under the pay-per-event model.
What TradingView's terms and robots.txt say
TradingView's Terms of Use are direct about automated access. Section 12 says the licence does not include, without prior written consent, using “any robot, spider, scraper, crawler, data mining tool, or other automated means … to access, monitor, copy, collect, or extract any content, data, or market data from TradingView or our services, including by accessing or querying internal or undocumented endpoints.” The exceptions are search engines following robots.txt and “official TradingView APIs or other interfaces that we expressly make available for that purpose.” Section 3 separately licenses content and market data for display only and prohibits non-display use such as automated trading.
The screener host's robots.txt says the same thing in machine form: it disallows every path for every agent and allows only /global/scan. The TradingView Data API queries the per-market scan paths, which that file disallows. That is stated here rather than left to be discovered, and it is the opposite of the approach described in robots.txt-compliant scraping.
What the Actor does not do: it never logs in, never uses an account or token, never solves a challenge and never reads a paywalled article past the preview TradingView itself publishes. It is not affiliated with TradingView. Anyone running it should read those terms and decide whether their use is one they are comfortable with.
Which route fits which job
You want an assistant to look at markets for you. The MCP server, on a paid plan, within its quotas. It is the only official route and the only one to candle history.
You want to chart your own data. Advanced Charts or Lightweight Charts, with a data provider you license separately.
You want a scheduled table of a whole market — fundamentals, technicals and earnings dates for thousands of symbols, every day. No official TradingView product offers that. The TradingView Data API does, under the terms above. For the calendars on their own — macro releases, earnings, dividends, IPOs — see the earnings calendar API and economic calendar API guides; for retail sentiment, the Stocktwits API.
