ActorStack.dev

TradingView API: what TradingView offers developers, and what to read instead

TradingView has no public market data API. What it does offer — broker integration, charting libraries, webhooks and a paid MCP server — and what its public screener holds, measured, for anyone who needs the data in bulk.

By Oswaldo Carabano11 min read

Short answer

TradingView does not offer a public market data API. Its help centre says "We don't have an API that gives access to data", its REST API is for brokers integrating with its trading platform, and its charting libraries contain no market data at all. The nearest official route is the TradingView MCP server, which lets an AI assistant read candles, screener columns and news for a logged-in user on a paid plan, at 10 to 500 calls a day, for personal non-commercial use only. For bulk or scheduled data, what remains is TradingView's public screener: the TradingView Data API Actor reads it without an account and returns up to 1,000+ columns per symbol across 74 markets, with a mean of 745.7 filled columns per US stock over 1,500 symbols measured on 18 November 2026, for $1 per 1,000 rows. TradingView's Terms of Use prohibit automated extraction outside its official interfaces, which anyone running it has to weigh.

Key points

  • TradingView's help centre states that TradingView does not have an API that gives access to data, and that its REST API is meant for brokers.
  • TradingView's Advanced Charts and Trading Platform libraries contain no market data, so a developer using them must supply prices from another source.
  • TradingView's MCP server returns OHLCV history, screener columns and news to a paid account, from 10 calls a day on Essential to 500 on Ultimate.
  • TradingView's Terms of Use restrict MCP server data to personal, non-commercial use and forbid building a database or dataset from it.
  • The TradingView Data API Actor returned a mean of 745.7 filled columns out of 964 per US stock, measured over 1,500 symbols on 18 November 2026.
  • TradingView's Terms of Use prohibit scrapers and querying undocumented endpoints without written consent, and scanner.tradingview.com's robots.txt allows only `/global/scan`.
On this page8 sections

“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:

ProductWhat it isGives you TradingView data?
Broker REST API (brokerage integration)An API a broker implements so TradingView users can trade through itNo — data flows from the broker to TradingView
Advanced Charts, Trading PlatformCharting libraries to embed in your own siteNo — “neither Advanced Charts nor Trading Platform contains any market data”
WidgetsEmbeddable charts, tickers, screeners and calendarsDisplayed on your page only; no API behind them
Webhook alertsAn HTTP POST to your URL when an alert you set firesOnly the alert message you wrote; needs two-factor authentication
MCP serverAn official server an AI client connects to with your accountYes, 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:

python — run the Actor and read its dataset
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 classRowsColumns per rowFilled per row (mean)
US stocks and ETFs1,500964745.7
Crypto coins300366333.6
Crypto pairs300374285.2
Forex300310294.8
Government bonds300115104.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.

Frequently asked questions

Is the TradingView API free?
There is no public TradingView data API to be free or paid. The MCP server needs a paid TradingView plan, and the broker REST API is for brokerages. The TradingView Data API Actor is priced per row on Apify, $1 per 1,000 screener rows.
Where do I get a TradingView API key?
TradingView issues no data API keys. The MCP server authenticates with OAuth against your TradingView account rather than a key, webhooks need two-factor authentication enabled, and the TradingView Data API Actor uses only your Apify token.
Can I get historical candles from TradingView with Python?
Officially, only through the MCP server's OHLCV tool, from an AI client connected to a paid account, for personal use. The TradingView Data API Actor does not return candles; it returns a screener snapshot plus up to 20 years of annual and quarterly fundamentals.
Is the data from TradingView's screener real-time?
Crypto and forex are real-time in the public screener. Stocks carry the exchange's standard delay, often 15 minutes, and pre- and post-market fields are filled only while those sessions are running.

Sources

Every URL below was requested and returned a page on the date shown.

  1. Platform docschecked 21 Nov 2026
    I need access to your API in order to get data or indicator values — TradingView Help CenterTradingView
  2. Platform docschecked 21 Nov 2026
    Data questions — TradingView widget documentation FAQTradingView
  3. Platform docschecked 21 Nov 2026
    Datafeed API — Advanced Charts documentationTradingView
  4. Platform docschecked 21 Nov 2026
    How to configure webhook alerts — TradingView Help CenterTradingView
  5. Platform docschecked 21 Nov 2026
    TradingView MCP Server — usage limits, clients and tools referenceTradingView
  6. Operator claimchecked 21 Nov 2026
    Terms of Use, Policies, and DisclaimersTradingView
  7. Site declarationchecked 21 Nov 2026
    scanner.tradingview.com/robots.txtTradingView
  8. Operator claimchecked 21 Nov 2026
    TradingView Data API — Actor README and input schemaActorStack / Apify Store
  9. Platform docschecked 21 Nov 2026
    Apify API client for PythonApify
A laptop screen showing a plain text-mode terminal with a command prompt.
MarketsGuide

TradingView screener data

What a TradingView screener row actually contains per asset class, measured on real rows, and the three ways the screener fails silently — random pages, ignored sorts and empty columns — that decide whether a scrape is complete.

9 min
A laptop screen showing a plain text-mode terminal with a command prompt.
MarketsGuide

Earnings calendar API

What a public earnings calendar actually holds — EPS and revenue estimates, actuals and surprises — measured on TradingView's US and global calendars, why it is not a history, and how dividend and IPO calendars sit beside it.

8 min
A laptop screen showing a plain text-mode terminal with a command prompt.
MarketsGuide

Economic calendar API

A macro calendar row has three numbers, and the one most people want is the one most often missing. Coverage measured on 2,423 events across 55+ countries, the 2,000-event request cap, importance levels and history back to 2015.

8 min