Skip to content
OSINTtools.io

TweetAPI MCP API

Read-only MCP server for the TweetAPI service: X profiles, posts, followers, lists, communities, Spaces and trends.

Base URL
https://api.tweetapi.com/tw-v2
Sign-in
API key
Format
REST
Endpoints
3

Compiled by OSINTtools.io editors from tweetapi.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

TweetAPI returns public X (Twitter) data as JSON: user profiles, tweets and their conversations, and search. The listing is its hosted MCP server, which wraps the same read endpoints; this reference covers the plain HTTP API behind it, from the TweetAPI docs.

Calls are GET requests under https://api.tweetapi.com/tw-v2 with the key in the X-API-Key header. Each billable call costs API units; the usage endpoint is free and only counts against the rate limit. The docs say calls should run server-side.

Only three endpoints are described here; the docs list many more (followers, lists, communities, trends, and write actions).

Quick start

  1. Get a key

    Create an account with TweetAPI MCP and copy your api key. Where to get it

  2. Make your first request

    Profile of an X account by username.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.tweetapi.com/tw-v2/user/by-username?username=example_user' \
      -H 'X-API-Key: YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "data": {
        "id": "1000001",
        "username": "example_user",
        "name": "Example User",
        "verified": false,
        "isBlueVerified": true,
        "followerCount": 1200,
        "followingCount": 150,
        "tweetCount": 3400,
        "createdAt": "2015-04-01T12:00:00.000Z"
      }
    }

Authentication

Send your API key in the X-API-Key header of every request.

Get a key from TweetAPI MCP

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Per-minute limit per key; the value is returned by /account/usage (rateLimit.requestsPerMinute)

Users

Returns the public profile with verification flags, counts and creation date.

Query parameters

usernamestringrequiredtakes your username

Username without the @

Example: example_user
Response fields · 11Show

idstring

User ID

usernamestring

Username

namestring

Display name

biostring

Profile bio

locationstring

Profile location

verifiedboolean

Legacy verified status

isBlueVerifiedboolean

Paid verification

followerCountinteger

Followers

followingCountinteger

Accounts followed

tweetCountinteger

Tweets posted

createdAtstring

Account creation time

curl 'https://api.tweetapi.com/tw-v2/user/by-username?username=example_user' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "data": {
    "id": "1000001",
    "username": "example_user",
    "name": "Example User",
    "verified": false,
    "isBlueVerified": true,
    "followerCount": 1200,
    "followingCount": 150,
    "tweetCount": 3400,
    "createdAt": "2015-04-01T12:00:00.000Z"
  }
}

Tweets

  • Passive: the target is not contacted
  • Cost: 1 API unit

Cursor pages return tweet: null and an empty ancestors list. When the tweet carries an X Article, article.text holds its body.

Query parameters

tweetIdstringrequired

Tweet ID

Example: 2000001
cursorstring

Cursor from the previous response, for the next page of replies

Example: NEXT_CURSOR
sortBystring

Reply order

Example: RelevanceDefault: RelevanceOne of: Relevance, Recency, Likes
Response fields · 4Show

tweetobject

The requested tweet with metadata, counts, author and media

ancestors[]object

Parent tweets of a reply, oldest first

replies[]object

A page of replies

nextCursorstring

Pass as cursor for the next page

curl 'https://api.tweetapi.com/tw-v2/tweet/details?tweetId=2000001' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "data": {
    "tweet": {
      "id": "2000001",
      "likeCount": 3
    },
    "ancestors": [],
    "replies": [
      {
        "id": "2000002"
      }
    ],
    "nextCursor": "NEXT_CURSOR"
  }
}

Account

  • Passive: the target is not contacted
  • Cost: Free

Free: does not use API units.

Response fields · 7Show

availableUnitsinteger

Plan units remaining plus spendable pay-as-you-go units

requestLimitinteger

Units included in the current period

usedUnitsinteger

Units used this period

remainingUnitsinteger

Units left this period

periodEndstring

End of the paid period

availableUnitsinteger

Pay-as-you-go units

requestsPerMinuteinteger

Per-minute rate limit for the key

curl 'https://api.tweetapi.com/tw-v2/account/usage' \
  -H 'X-API-Key: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "data": {
    "availableUnits": 108766,
    "plan": {
      "active": true,
      "requestLimit": 100000,
      "usedUnits": 1234,
      "remainingUnits": 98766,
      "periodEnd": "2026-11-20T10:00:00.000Z"
    },
    "payg": {
      "availableUnits": 10000
    },
    "rateLimit": {
      "requestsPerMinute": 1200
    }
  }
}