# StockTwits Scraper — Cashtag Sentiment & Streams (`brick_joey_yto/stocktwits-scraper`) Actor

Scrape StockTwits — cashtag streams with bullish/bearish labels, aggregated sentiment ratios, trending symbols, trader post history, incremental watch monitors. No API key. From $1/1,000 results.

- **URL**: https://apify.com/brick_joey_yto/stocktwits-scraper.md
- **Developed by:** [William Billings](https://apify.com/brick_joey_yto) (community)
- **Categories:** Automation, Lead generation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## StockTwits Scraper — Cashtag Sentiment, Streams & Trending

Extract **bullish/bearish investor sentiment**, cashtag message streams, and trending symbols from StockTwits — the social network for stock and crypto traders. **No API key, no login, no account needed** — the public API does all the work.

Whether you searched for a StockTwits scraper, stock sentiment data, cashtag monitoring, or a StockTwits alternative for sentiment feeds — this covers it in one actor.

### What you get

| Mode        | What it returns                                                                                                                                                       |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `stream`    | Messages per cashtag ($BTC.X, $SPY, $NVDA…) — author, body, **Bullish/Bearish label**, likes, replies, embedded price snapshot, timestamp                             |
| `sentiment` | **Aggregated sentiment** per symbol — bull/bear counts and percentages over a configurable window (30–1,000 messages). The analytics layer raw scrapes don't give you |
| `trending`  | What's hot right now — trending symbols (all or equities-only), titles, watchlist counts                                                                              |
| `watch`     | **Incremental monitor** — new messages per symbol since your last run's `sinceId` cursor, optional keyword filter. Built for schedules                                |
| `user`      | Any trader's public post history                                                                                                                                      |
| `suggested` | The platform-curated firehose — what StockTwits itself is amplifying                                                                                                  |

### Why not the official API?

StockTwits' official API requires an app registration, OAuth token exchange, and enforces tight rate limits. This actor uses the **same public endpoints the stocktwits.com frontend calls** — no key, no OAuth dance, 30 messages per request with cursor pagination.

### Input

| Field                | Type   | Default                   | Description                                                                                     |
| -------------------- | ------ | ------------------------- | ----------------------------------------------------------------------------------------------- |
| `mode`               | string | `trending`                | `stream` / `sentiment` / `trending` / `watch` / `user` / `suggested`                            |
| `symbols`            | array  | `["BTC.X","ETH.X","SPY"]` | Cashtags — crypto uses `.X` suffix (`BTC.X`, `SOL.X`), equities use the ticker (`AAPL`, `NVDA`) |
| `usernames`          | array  | —                         | Trader usernames for `user` mode                                                                |
| `keywords`           | array  | —                         | Only emit messages matching at least one keyword (stream/watch)                                 |
| `sinceId`            | int    | —                         | Watch cursor — emit only messages newer than this ID                                            |
| `trendingCategory`   | string | `all`                     | `all` or `equities`                                                                             |
| `sentimentWindow`    | int    | `100`                     | Messages aggregated per symbol in `sentiment` mode (30–1,000)                                   |
| `maxResults`         | int    | `100`                     | Max rows per source (up to 5,000)                                                               |
| `proxyConfiguration` | object | —                         | Optional — the API is permissive                                                                |

#### Example inputs

Trending crypto + equities right now:

```json
{ "mode": "trending" }
```

Sentiment ratio for a crypto watchlist:

```json
{
  "mode": "sentiment",
  "symbols": ["BTC.X", "ETH.X", "SOL.X"],
  "sentimentWindow": 200
}
```

Monitor mentions of a catalyst across your positions (schedule hourly):

```json
{
  "mode": "watch",
  "symbols": ["NVDA", "TSLA", "SPY"],
  "keywords": ["earnings", "guidance", "downgrade"],
  "sinceId": 666240000
}
```

### Example output

```json
{
  "recordType": "sentiment",
  "symbol": "BTC.X",
  "windowMessages": 60,
  "bullish": 37,
  "bearish": 6,
  "unlabeled": 17,
  "labeledPct": 71.7,
  "bullPct": 86.0,
  "oldestMessageAt": "2026-10-10T14:22:11Z",
  "url": "https://stocktwits.com/symbol/BTC.X"
}
```

```json
{
  "recordType": "message",
  "messageId": 666240934,
  "symbol": "BTC.X",
  "body": "$ETH.X $BTC.X $SOL.X Crypto group trending $RUM pending...",
  "sentiment": "Bullish",
  "date": "2026-10-10T14:31:02Z",
  "authorUsername": "cryptotrader42",
  "likes": 12,
  "prices": { "BTC.X": "83768.00" },
  "url": "https://stocktwits.com/cryptotrader42/message/666240934"
}
```

### Use cases

- **Sentiment-driven trading signals** — schedule `sentiment` mode daily; a bullPct swing is a real signal
- **Crypto intel pipelines** — pair with our Bitcointalk Scraper (forum alpha) and DexScreener Scraper (token data) for full retail-sentiment coverage
- **Event monitoring** — `watch` + keywords catches catalyst chatter (earnings, FDA, mergers) as it breaks
- **Quant/algo data feed** — labeled bullish/bearish messages are ready-made training data
- **Lead research** — find active traders by niche via `trending` + `user` modes

### Pricing

**$1.00 per 1,000 results** (pay-per-event). A 200-message sentiment window per symbol costs $0.20. Trending pulls are ~$0.03.

### FAQ

**Do I need a StockTwits account or API key?** No — every mode works anonymously through the public API the site's own frontend uses.

**How does `watch` mode work?** Pass `sinceId` = the highest `messageId` from your previous run's output. The actor emits only newer messages, so a scheduled run gives you a clean incremental feed. Store the new max ID each run.

**What does `.X` mean on crypto symbols?** StockTwits names crypto cashtags `BTC.X`, `ETH.X`, etc. Equities are plain tickers (`AAPL`, `SPY`).

**Is every message sentiment-labeled?** No — only messages where the author explicitly picked Bullish/Bearish carry a label (~35–70% depending on the symbol). The `sentiment` mode reports `labeledPct` so you know the coverage.

**Rate limits?** The public endpoints tolerate parallel and repeated scheduled runs well. A 429 surfaces as an error row — retry with a delay or proxy.

**Is it legal to scrape this data?** The actor only accesses publicly available data — the same pages/APIs a browser sees. Scraping public data for research, monitoring, and analysis is common practice, but platform Terms of Service and the rules in your jurisdiction still apply to how you use it. Consult legal counsel for your specific case.

### More from this developer

**Monitors & business intel:** [ATS Jobs Monitor](https://apify.com/brick_joey_yto/ats-jobs-monitor) · [Sports Scores & Odds Monitor](https://apify.com/brick_joey_yto/sports-scores-odds-monitor) · [Prediction Markets Monitor](https://apify.com/brick_joey_yto/prediction-markets-monitor) · [DexScreener Scraper — Crypto Token Monitor](https://apify.com/brick_joey_yto/crypto-token-monitor) · [Crypto Derivatives Monitor](https://apify.com/brick_joey_yto/crypto-derivatives-monitor) · [Google News Monitor](https://apify.com/brick_joey_yto/google-news-monitor) · [App Store Monitor](https://apify.com/brick_joey_yto/app-store-monitor) · [Walmart Product Monitor](https://apify.com/brick_joey_yto/walmart-product-monitor) · [Pump.fun Monitor](https://apify.com/brick_joey_yto/memecoin-launch-monitor) · [Yahoo Finance Scraper](https://apify.com/brick_joey_yto/yahoo-finance-scraper) · [Product Hunt Monitor](https://apify.com/brick_joey_yto/product-hunt-monitor) · [Hacker News Monitor](https://apify.com/brick_joey_yto/hackernews-monitor) · [AI Visibility Tracker](https://apify.com/brick_joey_yto/ai-brand-monitor)

**Alt-social & OSINT:** [Gab Scraper](https://apify.com/brick_joey_yto/gab-search-scraper) · [BitChute Scraper](https://apify.com/brick_joey_yto/bitchute-search-scraper) · [Truth Social Scraper](https://apify.com/brick_joey_yto/truth-social-scraper) · [Telegram Scraper](https://apify.com/brick_joey_yto/telegram-scraper) · [Discord Scraper](https://apify.com/brick_joey_yto/discord-scraper) · [Rumble Video Scraper](https://apify.com/brick_joey_yto/rumble-video-scraper) · [Odysee Scraper](https://apify.com/brick_joey_yto/odysee-scraper) · [Kick Scraper](https://apify.com/brick_joey_yto/kick-scraper) · [4chan Scraper](https://apify.com/brick_joey_yto/4chan-scraper) · [Bitcointalk Scraper](https://apify.com/brick_joey_yto/bitcointalk-scraper) · [Xiaohongshu / RedNote Scraper](https://apify.com/brick_joey_yto/xiaohongshu-scraper)

**Creator platforms:** [Bluesky Scraper](https://apify.com/brick_joey_yto/bluesky-search-scraper) · [Threads Scraper](https://apify.com/brick_joey_yto/threads-profile-scraper) · [Farcaster Scraper](https://apify.com/brick_joey_yto/farcaster-scraper) · [Spoutible Scraper](https://apify.com/brick_joey_yto/spoutible-scraper) · [Pixelfed Scraper](https://apify.com/brick_joey_yto/pixelfed-scraper) · [Substack Notes Scraper](https://apify.com/brick_joey_yto/substack-notes-scraper) · [Dailymotion Scraper](https://apify.com/brick_joey_yto/dailymotion-scraper) · [Roblox Scraper](https://apify.com/brick_joey_yto/roblox-scraper)

**Gov & regulatory:** [Federal Register Monitor](https://apify.com/brick_joey_yto/federal-register-monitor) · [Federal Court Monitor](https://apify.com/brick_joey_yto/federal-court-monitor) · [FDA Compliance Monitor](https://apify.com/brick_joey_yto/fda-compliance-monitor) · [Clinical Trials Monitor](https://apify.com/brick_joey_yto/clinical-trials-monitor) · [Lobbying Monitor](https://apify.com/brick_joey_yto/lobbying-monitor)

***

*Not affiliated with StockTwits, Inc. Uses publicly accessible endpoints — respect their Terms of Service.*

# Actor input Schema

## `mode` (type: `string`):

What to scrape: stream (cashtag messages + sentiment labels), sentiment (aggregated bull/bear ratio per symbol), trending (hot symbols right now), watch (incremental multi-symbol monitor with sinceId cursor), user (a trader's public posts), suggested (platform-curated firehose).

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

StockTwits symbols for stream/sentiment/watch — e.g. \["BTC.X", "ETH.X", "SPY", "AAPL", "TSLA"]. Crypto uses the .X suffix. Demo default: BTC.X, ETH.X, SPY.

## `usernames` (type: `array`):

StockTwits usernames for user mode — e.g. \["StockTwits"].

## `keywords` (type: `array`):

Only emit messages containing at least one keyword (case-insensitive). Works in stream and watch modes.

## `sinceId` (type: `integer`):

Watch mode: only emit messages newer than this message ID. Store the highest messageId from the last run to get purely-incremental monitoring.

## `trendingCategory` (type: `string`):

Which trending list to pull: all (stocks + crypto) or equities (stocks only).

## `sentimentWindow` (type: `integer`):

Sentiment mode: how many recent messages per symbol to aggregate — 30 to 1000, default 100.

## `maxResults` (type: `integer`):

Maximum rows per symbol/source. 1–5000, default 100.

## `proxyConfiguration` (type: `object`):

Optional Apify proxy. Not needed normally — the public API is permissive.

## Actor input object example

```json
{
  "mode": "stream",
  "symbols": [
    "BTC.X",
    "ETH.X",
    "SPY"
  ],
  "usernames": [
    "StockTwits"
  ],
  "trendingCategory": "all",
  "sentimentWindow": 100,
  "maxResults": 100
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing message, sentiment, or trending-symbol records

# 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 = {
    "mode": "stream",
    "symbols": [
        "BTC.X",
        "ETH.X",
        "SPY"
    ],
    "usernames": [
        "StockTwits"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("brick_joey_yto/stocktwits-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 = {
    "mode": "stream",
    "symbols": [
        "BTC.X",
        "ETH.X",
        "SPY",
    ],
    "usernames": ["StockTwits"],
}

# Run the Actor and wait for it to finish
run = client.actor("brick_joey_yto/stocktwits-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 '{
  "mode": "stream",
  "symbols": [
    "BTC.X",
    "ETH.X",
    "SPY"
  ],
  "usernames": [
    "StockTwits"
  ]
}' |
apify call brick_joey_yto/stocktwits-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,brick_joey_yto/stocktwits-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/I3hn3hb2ojgD92Y8j/builds/Qtb0LR9kqErQt1ZVM/openapi.json
