RapidAPI logo

StockTwits

FREE
By stocktwits
Updated 5 months ago
Finance
-/10
Popularity Score
-
Latency
-
Success Rate

StockTwits API Documentation

StockTwits provides a social communications platform and social graph for anyone interested in the markets and investing.

View API Details
GETwatchlists/index
GETwatchlists/show
Blocks
POSTblocks/create
POSTblocks/destroy
Messages
POSTmessages/create
GETmessages/like
GETmessages/show
GETmessages/unlike
Streams
GETstreams/direct
GETstreams/friends
GETstreams/home
GETstreams/investor_relations
GETstreams/symbol
GETstreams/mentions
GETstreams/user
GETstreams/watchlist
Account
GETaccount/update
GETaccount/verify
GETwatchlists/index

Returns a list of private watch lists for the authenticating user.

Authorization:

You will want to choose a response type. Please read authentication documentation here http://stocktwits.com/developers/docs/authentication

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
AuthorizationOAUTH2
REQUIREDYou will want to choose a response type. Please read authentication documentation here http://stocktwits.com/developers/docs/authentication
Optional Parameters
callbackSTRING
OPTIONALDefine your own callback function name, add this parameter as the value.
Code Snippet
unirest.get("https://stocktwits.p.rapidapi.com/watchlists.json")
.header("X-RapidAPI-Host", "stocktwits.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Authorization", "")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://stocktwits.p.rapidapi.com/watchlists.json
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://stocktwits.p.rapidapi.com/watchlists.json")
.header("X-RapidAPI-Host", "stocktwits.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Authorization", "")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication