---
title: "Stocktwits API: symbol search as JSON | Perceptlayer"
description: "Stocktwits API for symbol search, a ticker's message stream and trending symbols as JSON, with users, prices and watchlist counts. 1 credit per successful call."
url: https://perceptlayer.com/apis/stocktwits
---

[APIs](https://perceptlayer.com/apis) / [Finance](https://perceptlayer.com/verticals/finance) / Stocktwits

1 credit per call 3 endpoints 8 datapoints 

# Stocktwits API

Stocktwits API for symbol search, a ticker's message stream and trending symbols as JSON, with users, prices and watchlist counts. 1 credit per successful call.

[Get a free API key](https://perceptlayer.com/signup) Run it below

Stocktwits

GET /v1/stocktwits/symbols-search?q=apple 

```
{
  "data": {
    "results": [
      {
        "type": "symbol",
        "title": "Apple Inc",
        "symbol": "AAPL",
        "exchange": "NASDAQ",
        "weight_offset": 10,
        "watchlist_count": 1002132,
        "country": "US",
        "id": 686
      },
      {
        "type": "symbol",
        "title": "dog with apple in mouth",
        "symbol": "APPLE.X",
        "exchange": "CRYPTO",
        "weight_offset": 2,
        "watchlist_count": 24,
        "country": "",
        "id": 38860
      },
      {
        "type": "symbol",
        "title": "Apple Hospitality REIT Inc",
        "symbol": "APLE",
        "exchange": "NYSE",
        "weight_offset": 6,
        "watchlist_count": 3844,
        "country": "US",
        "id": 12660
      }
    ],
    "count": 12
  },
  "success": true,
  "meta": {
    "duration_ms": 556,
    "endpoint_family": "stocktwits_symbols_search",
    "request_id": "req_58cb194396df447fb6841e8404d8e028",
    "credits_charged": 1,
    "credits_remaining": 995
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `symbols-search`: the fields and shapes you will get, shortened to 3 items.

| # | type string | title string | symbol string | exchange string | weight\_offset integer | watchlist\_count integer | country string | id integer |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | symbol | Apple Inc | AAPL | NASDAQ | 10 | 1002132 | US | 686 |
| 2 | symbol | dog with apple in mouth | APPLE.X | CRYPTO | 2 | 24 |  | 38860 |
| 3 | symbol | Apple Hospitality REIT Inc | APLE | NYSE | 6 | 3844 | US | 12660 |

Recorded from our API · 3 items shown · 8 datapoints per item GET /v1/stocktwits/symbols-search?q=apple

8 datapoints

### Identity

-   type string
-   title string
-   id integer

### Location

-   country string

### Other

-   symbol string
-   exchange string
-   weight\_offset integer
-   watchlist\_count integer

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/stocktwits/symbols-search?q=apple" \
  -H "X-API-Key: $API_KEY"
```

Stocktwits · 3 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/stocktwits/stream-symbol`](https://perceptlayer.com/apis/stocktwits/stream-symbol) | `symbol` +3 optional | `messages` `symbol` `request` | 1 credit |
| [GET `/v1/stocktwits/symbols-search`](https://perceptlayer.com/apis/stocktwits/symbols-search) | `q` | `type` `title` `symbol` `exchange` `weight_offset` `watchlist_count` +2 more | 1 credit |
| [GET `/v1/stocktwits/symbols-trending`](https://perceptlayer.com/apis/stocktwits/symbols-trending) | none | `id` `symbol` `symbol_mic` `symbol_display` `exchange` `region` +21 more | 1 credit |

Overview

## About the Stocktwits API

## What you can get

The Stocktwits API returns Stocktwits symbols and messages as JSON through 3 endpoints.

-   **Symbol search:** `symbols-search` takes a `q`.
-   **Message stream:** `stream-symbol` takes a `symbol`, with `limit`, `max` and `since`.
-   **Trending:** `symbols-trending` takes no parameters.

The recorded `symbols-search` for "apple" returns `results` and a `count` of 12. Each result has `type`, `title`, `symbol`, `exchange`, `watchlist_count`, `country` and `id`. The first is Apple Inc, `symbol` AAPL on NASDAQ, with a `watchlist_count` of 1,002,132. The recorded `stream-symbol` for AAPL with a `limit` of 30 returns 30 `messages`, each with `id`, `body`, `created_at`, `user`, `prices` and `symbols`, plus a `cursor` with `more`, `since` and `max`.

## How a call works

Find the ticker, then read what people post about it: `GET /v1/stocktwits/symbols-search?q=apple`, with your key in the `X-API-Key` header, returns the `symbol` AAPL. Pass it to `GET /v1/stocktwits/stream-symbol?symbol=AAPL&limit=30`. When `cursor.more` is true, send `cursor.max` back as `max` for the next page of older messages. Every successful call costs 1 credit; failed calls cost nothing.

Finance JSON REST MCP

### More finance APIs

[CoinGecko](https://perceptlayer.com/apis/coingecko) [CoinMarketCap](https://perceptlayer.com/apis/coinmarketcap) [TradingView](https://perceptlayer.com/apis/tradingview) [Yahoo Finance](https://perceptlayer.com/apis/yahoo-finance)

Use cases

### Follow the message stream for a watchlist of tickers

`Use the Stocktwits API to follow the message stream for a watchlist of tickers` 

### Collect posts about a symbol for sentiment analysis

`Use the Stocktwits API to collect posts about a symbol for sentiment analysis` 

### Check which symbols are trending, with \`trending\_score\` and \`rank\`

`` Use the Stocktwits API to check which symbols are trending, with `trending_score` and `rank` `` 

### Resolve a company name to its ticker and exchange with \`symbols-search\`

`` Use the Stocktwits API to resolve a company name to its ticker and exchange with `symbols-search` `` 

FAQ

## Questions

**How much does the Stocktwits API cost?**

Each successful call costs one credit, whichever endpoint you call. New accounts get free credits to start, and credit packs bring the price down as you scale.

**How do I get more messages for a symbol?**

Read the \`cursor\` in the \`stream-symbol\` response. If \`more\` is true, pass its \`max\` value as \`max\` to page back through older messages. Pass \`since\` to fetch only messages newer than one you already have.

**What do trending symbols include?**

Each entry in \`symbols\` carries the \`symbol\`, \`title\`, \`exchange\`, \`sector\`, \`industry\`, \`trending\_score\`, \`rank\` and \`watchlist\_count\`. The recorded call returned 30 symbols.

**What format are responses in?**

Every endpoint returns JSON, with no HTML parsing on your side.

**Is this the official Stocktwits API?**

No. Perceptlayer is an independent service and is not affiliated with Stocktwits. It returns Stocktwits data as JSON with a Perceptlayer key, so there is no Stocktwits developer account, app review or partner approval to get first. It only reads data: if Stocktwits has an official API and you need to act on your own Stocktwits account, such as posting, managing orders or reading private data, use that one.

**Should I build a Stocktwits scraper instead?**

You can, but a Stocktwits scraper is code you maintain: page changes break it, requests get blocked, and Stocktwits's terms govern how you collect data. The Stocktwits API gives you 3 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the Stocktwits API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
