canonical: https://jentic.com/apis/stocktwits.com/stocktwits

# StockTwits API

The StockTwits API provides access to the StockTwits social network for investors and traders. It allows developers to access streams of messages (twits), user profiles, trending symbols, and more. StockTwits is a social media platform designed for sharing ideas between investors, traders, and entrepreneurs. The API exposes 31 endpoints secured with apiKey, oauth2 authentication.

## For AI agents

Programmatically symbol stream, user stream. Covers 31 operations with apiKey, oauth2 authentication.

## Scope

Does not handle payments, communications, or crm - use for social media only.

## Capabilities

- Symbol Stream
- User Stream
- Home Stream
- Friends Stream
- Trending Stream
- All Stream
- Watchlist Stream

## Use cases

### Social Media Operations

Use the StockTwits API to perform social media operations programmatically. The API provides 31 endpoints covering core functionality including symbol stream, user stream, home stream.

Example prompt: Call GET `/streams/symbol/{symbol}.json` to symbol stream

### Automated Streams Management

Automate streams operations by combining multiple StockTwits API endpoints. Agents can user stream and then home stream in a single workflow.

Example prompt: Call GET `/streams/user/{user_id}.json` to user stream, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call StockTwits API endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle apiKey, oauth2 tokens manually.

Example prompt: Search Jentic for 'symbol stream', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/streams/symbol/{symbol}.json` | Symbol Stream |
| GET | `/streams/user/{user_id}.json` | User Stream |
| GET | `/streams/home.json` | Home Stream |
| GET | `/streams/friends.json` | Friends Stream |
| GET | `/streams/trending.json` | Trending Stream |
| GET | `/streams/all.json` | All Stream |
| GET | `/streams/watchlist/{watchlist_id}.json` | Watchlist Stream |
| GET | `/messages/show/{message_id}.json` | Show Message |

## Key resources

- **Streams** — Stream endpoints return collections of messages (twits). Streams can be filtered by symbol, user, tr
- **Messages** — Message endpoints for creating, viewing, liking, and managing individual messages (twits).
- **Search** — Search endpoints for finding symbols and users on StockTwits.
- **Trending** — Trending endpoints return currently popular symbols based on message volume.
- **Graph (Social)** — Social graph endpoints for viewing followers and following lists.

## Why Jentic

- **Setup:** Wiring the StockTwits API by hand means choosing between its OAuth2 flow and an access-token query parameter, sending credentials on every call to api.stocktwits.com, and paging message streams yourself. Through Jentic you install once, import the StockTwits API from the API Directory, store the credential once, and your agent calls it.
- **Permission scoping:** StockTwits puts the stream subject in the URL path (`/streams/symbol/{symbol}.json` and `/streams/user/{user_id}.json`), so a rule can pin your agent to reading one symbol or one user's stream. You choose the operations it may call, so posting or deleting messages is not included unless you add it.
- **Credential handling:** Your StockTwits credential is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'read a symbol's message stream' or 'get trending stocks', and Jentic returns the matching StockTwits API operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Facebook** — Alternative social media API
- **Twitter** — Alternative social media API
- **Linkedin** — Complementary social media API

## FAQ

### What authentication does the StockTwits API use?

The StockTwits API uses apiKey, oauth2 authentication. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I symbol stream with the StockTwits API?

Yes. Use the GET `/streams/symbol/{symbol}.json` endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the StockTwits API?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I symbol stream through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'symbol stream'. Jentic returns the matching StockTwits API operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the StockTwits API have?

The StockTwits API exposes 31 endpoints covering streams, messages, search operations.

### Can I limit what my agent is allowed to do with the StockTwits API?

Yes. Because Jentic One is self-hosted, your own rules decide which StockTwits operations and credentials the agent may use. Since StockTwits puts the stream subject in the URL path, such as GET `/streams/symbol/{symbol}.json` and GET `/streams/user/{user_id}.json`, you can pin the agent to reading a single symbol or one user's stream. You also choose the operations it may call, so posting or deleting messages stays off limits unless you explicitly grant it.
