Looking for the TradingView API? TradingView doesn’t offer a public market data API, but it does have free widgets, open-source Lightweight Charts, licensed charting libraries, a broker API and alert webhooks. Here’s what each does and which you need.
Not in the way most people mean. TradingView’s own developer FAQ says: “We don’t have an API that gives access to data.” You can’t pull TradingView’s prices, indicators or account data into your own program through an official API. What TradingView does offer developers is a set of tools for showing charts, connecting brokers and sending alerts out:
Copy-and-paste embeds for your website: charts, tickers and tapes, watchlists, symbol info, technical analysis, fundamentals, news, heatmaps, a screener and the economic calendar. They’re free with TradingView branding.
| Library | Who it’s for | Data |
|---|---|---|
| Lightweight Charts | Anyone. Free and open source (Apache 2.0), about 35 KB, on GitHub. | You supply it, including streaming updates. |
| Advanced Charts (Charting Library) | Companies building public web projects; free with TradingView attribution. Not for personal or private use, and no source code is provided. | Not included: you connect your own feed through its Datafeed API. |
| Trading Platform | Brokers and companies adding trading: Advanced Charts plus order entry, account manager and depth of market, connected to the broker’s back end. | Not included. |
This lets a broker connect its systems to TradingView so its clients can trade from TradingView charts. The broker builds the endpoints for orders, positions and its own price data. It isn’t a way for individuals to get data; TradingView’s advice to users who want a broker added is to ask that broker to integrate.
The closest thing to an API most traders need. When an alert fires, TradingView can send an HTTP POST with your alert message to any URL, so your bot, spreadsheet or chat channel can act on it.
application/json; otherwise as text.TradingView’s own language for indicators and strategies runs on TradingView’s servers. It can request other symbols and timeframes, financial and economic data inside TradingView, and even data from a GitHub repository you maintain (request.seed()), but it isn’t a general-purpose API for getting data out. Colour codes for your scripts: Pine Script colors.
ChartWatch is independent and not affiliated with TradingView. Facts on this page come from TradingView’s help center, product pages and documentation (October 2026) and may change. Some links are affiliate links: if you sign up through them, ChartWatch may earn a commission at no extra cost to you.
ChartWatch is an independent tool and is not affiliated with, endorsed by, or officially connected to TradingView, Inc. “TradingView” is a trademark of its respective owner. Exchange, broker and platform names are trademarks of their respective owners.