RapidAPI logo

Twitter API

Use the Twitter APIs in this collection to integrate Twitter into your app.
Supercharge your AppSupercharge your AppDiscover and connect to thousands of APIs in the world's largest API Hub
Twitter API

Browse this collection of Twitter-related APIs to integrate Twitter into your application or website. Whether it's retweeting content, checking if a Twitter user is a bot, or finding trending Twitter hashtags, this API collection has you covered. Dive deeper into any API to find more about their Twitter API documentation and endpoints.

Install SDK for NodeJS


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

.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication