TradingView API: What Exists and What Doesn’t

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.

Public data API
No
TradingView doesn’t sell market data access
Widgets
Free
charts, tickers, calendar, heatmaps
Lightweight Charts
Open source
Apache 2.0, bring your own data
Alerts out
Webhooks
POST your alert to any URL
Is there a data API?WidgetsCharting librariesBroker APIWebhooksPine ScriptWhich to use

Does TradingView have an API?

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:

1. Free widgets

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.

2. Charting libraries

LibraryWho it’s forData
Lightweight ChartsAnyone. 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 PlatformBrokers and companies adding trading: Advanced Charts plus order entry, account manager and depth of market, connected to the broker’s back end.Not included.

3. REST API for brokers

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.

4. Alert webhooks: TradingView → your code

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.

5. Pine Script

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.

Which one do you need?

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.

FAQ

Does TradingView have an API?
TradingView has no public API for market data; its developer FAQ says it doesn't have an API that gives access to data. It offers free widgets, charting libraries, a REST API for brokers and alert webhooks.
Can I get data from TradingView with an API?
No. TradingView doesn't provide data access through an API. For prices in your own code, use a broker, exchange or market-data provider's API.
Are TradingView widgets free?
Yes, with TradingView branding. They show TradingView's data; stock data in widgets is delayed, while forex and crypto are real-time.
Is TradingView Lightweight Charts free?
Yes. It is open source under the Apache 2.0 licence. You supply your own data.
How do I connect TradingView to a trading bot?
Use alert webhooks: when an alert fires, TradingView sends your alert message as an HTTP POST to your bot's URL. Two-factor authentication is required.

More free TradingView tools

TradingView — the fastest way to follow markets
Watchlist BuilderAll GuidesWatchlist GuideTradingView PlansIndicatorsShortcutsBar ReplayAlert BuilderPine ColorsWatchlist CleanerCalculatorsWorld Market HoursForex HoursStock Market HoursMarket HolidaysPosition Size CalculatorChart ColorsSymbol FormatPrivacyTermsContact

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.