# TradingView News Scraper (`mscraper/tradingview-news-scraper`) Actor

TradingView News Scraper is a specialized web scraping tool designed to extract news from the charting platform TradingView. The scraper exports the accumulated data to various formats like JSON, XML, CSV, or Excel.

- **URL**: https://apify.com/mscraper/tradingview-news-scraper.md
- **Developed by:** [mscraper](https://apify.com/mscraper) (community)
- **Categories:** News
- **Stats:** 174 total users, 0 monthly users, 100.0% runs succeeded, 6 bookmarks
- **User rating**: No ratings yet

## Pricing

$25.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## TradingView News Scraper

### What does TradingView News Scraper do?

TradingView News Scraper is a specialized web scraping tool designed to extract news from the charting platform [TradingView News](https://www.tradingview.com/news/).The scraper exports the accumulated data to various formats like JSON, XML, CSV, or Excel.

### Why scrape TradingView News?

TradingView News has a wealth of data on financial news and events from around the world. This data can be used for a variety of purposes, including:

- Analyzing market trends and sentiment
- Identifying investment opportunities
- Monitoring news related to specific companies or industries
- Conducting research on financial news and events

If you're looking to gain insights from financial news, TradingView News Scraper is the tool for you.

### How to scrape TradingView News?

Using TradingView News Scraper is a breeze. Just add your proxy configuration options in the input field, and click start. The scraper will do the rest, pulling all the relevant data from the platform.

### How much will it cost to scrape TradingView?

Apify gives you $5 free usage credits every month on the [Apify Free plan](https://apify.com/pricing). You can get up to 10,000 results per month from TradingView Scraper for that, so those 10,000 results will be completely free.

But if you need to get more data regularly from TradingView, you should grab an Apify subscription. We recommend our [$49/month Starter plan](https://apify.com/pricing) - you can get up to 100,000 every month with the $49 monthly plan!

Or get 1,000,000 results for $499 with the [Scale plan](https://apify.com/pricing) - wow!

### Input

TradingView News Scraper has the following input options. Click on the [input tab](https://apify.com/mscraper/tradingview-stock-scraper/input-schema) for more information.

### Results

```json
{
 "id": "DJN_SN20230605009214:0",
 "title": "Snap scoops up Google veteran for senior role",
 "provider": "market-watch",
 "sourceLogoId": "marketwatch",
 "sourceLogoUrl": "https://s3.tradingview.com/news/logo/marketwatch--theme-light.svg",
 "published": 1685998140,
 "source": "MarketWatch",
 "urgency": 2,
 "permission": "provider",
 "relatedSymbols": [
  {
   "symbol": "NASDAQ:GOOG",
   "logoid": "alphabet",
   "logourl": "https://s3-symbol-logo.tradingview.com/alphabet.svg"
  },
  {
   "symbol": "NASDAQ:AMZN",
   "logoid": "amazon",
   "logourl": "https://s3-symbol-logo.tradingview.com/amazon.svg"
  },
  {
   "symbol": "NYSE:SNAP",
   "logoid": "snap",
   "logourl": "https://s3-symbol-logo.tradingview.com/snap.svg"
  }
 ],
 "storyPath": "https://www.tradingview.com/news/DJN_SN20230605009214:0/",
 "astDescription": {
  "type": "root",
  "children": [
   {
    "type": "p",
    "children": [
     "Snap Inc. (SNAP) has hired Eric Young, a veteran of Alphabet Inc.'s (GOOGL)(GOOGL) Google, to serve as its senior vice president of engineering. Young will make a $1 million annual salary and get a $500,000 signing bonus, according to a filing with the Securities and Exchange Commission put out Monday. He'll also be awarded restricted stock units with an aggregate value of at least $40 million, which will be subject to time-based vesting. He previously was vice president of engineering at Google, and before his work in various roles there, he spent time at Amazon.com Inc. (AMZN)"
    ]
   },
   {
    "type": "p",
    "children": [
     "-Emily Bary"
    ]
   },
   {
    "type": "p",
    "children": [
     "This content was created by MarketWatch, which is operated by Dow Jones & Co. MarketWatch is published independently from Dow Jones Newswires and The Wall Street Journal."
    ]
   }
  ]
 },
 "descriptionText": "Snap Inc. (SNAP) has hired Eric Young, a veteran of Alphabet Inc.'s (GOOGL)(GOOGL) Google, to serve as its senior vice president of engineering. Young will make a $1 million annual salary and get a $500,000 signing bonus, according to a filing with the Securities and Exchange Commission put out Monday. He'll also be awarded restricted stock units with an aggregate value of at least $40 million, which will be subject to time-based vesting. He previously was vice president of engineering at Google, and before his work in various roles there, he spent time at Amazon.com Inc. (AMZN)-Emily BaryThis content was created by MarketWatch, which is operated by Dow Jones & Co. MarketWatch is published independently from Dow Jones Newswires and The Wall Street Journal.",
 "shortDescription": "Snap Inc. (SNAP) has hired Eric Young, a veteran of Alphabet Inc.'s (GOOGL)(GOOGL) Google, to serve as its senior vice president of engineering. Young will make a $1 million annual salary and get a $500,000 signing bonus, according to a filing with the Securities and Exchange Commission put out Mon…",
}
```

### Is it legal to scrape TradingView?

Note that personal data is protected by GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. We also recommend that you read our blog post: [is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

### Contact

Please feel free to browse through the diverse array of web scrapers available on [my Apify profile](https://apify.com/mscraper). If a custom solution or extra options are what you're seeking, don't hesitate to get in touch with me directly at <contact@mscraper.com>.

# Actor input Schema

## `symbols` (type: `array`):

Symbols to scrape. Max 80 symbols.

## `exchange` (type: `string`):

Select the default exchange to use for symbols that don't have one specified. All symbols must be in the same exchange if using this field.

## `proxy` (type: `object`):

Select proxies to be used by your crawler.

## `scrapeOnlyHeadlines` (type: `boolean`):

If checked then actor will scrape only news headlines for each symbol.

## `resultsLimit` (type: `integer`):

Maximum number of results. Leave blank to scrape all.

## Actor input object example

```json
{
  "symbols": [
    "NASDAQ:GOOGL"
  ],
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  },
  "scrapeOnlyHeadlines": false,
  "resultsLimit": 3
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "symbols": [
        "NASDAQ:GOOGL"
    ],
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyCountry": "US"
    },
    "resultsLimit": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("mscraper/tradingview-news-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "symbols": ["NASDAQ:GOOGL"],
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyCountry": "US",
    },
    "resultsLimit": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("mscraper/tradingview-news-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "symbols": [
    "NASDAQ:GOOGL"
  ],
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyCountry": "US"
  },
  "resultsLimit": 3
}' |
apify call mscraper/tradingview-news-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mscraper/tradingview-news-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Ez7zP5o4LNzUvspzy/builds/SaTEm5zqvu2v9sBCV/openapi.json
