Skip to content
OSINTtools.io

SocialData API

Third-party API for public X data: send a username, post ID or search query, get profiles, posts and followers as JSON, billed per result.

Base URL
https://api.socialdata.tools
Sign-in
Bearer token
Free tier
Free tier
Pricing
Pay per request
Format
REST
Endpoints
4

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

Introduction

SocialData is a REST API for public Twitter/X data: user profiles, followers and followings, tweets, search results, threads, lists and communities, plus a monitoring API that sends webhooks. This reference covers the main lookup endpoints; the docs list more (spaces, lists, communities, social actions, monitors, an MCP server).

All requests go to https://api.socialdata.tools with an Authorization: Bearer API key. Paging uses a cursor value taken from next_cursor. Errors come back as {"status": "error", "message": "..."}.

Pricing is usage based. The pricing page says most endpoints cost $0.0002 per returned item, some cost per request, and requests fail with 402 when the balance is not positive. The rate limit is 120 requests per minute shared across endpoints. IDs can exceed JavaScript's integer range, so use the id_str fields.

Quick start

  1. Get a key

    Create an account with SocialData and copy your bearer token (free tier). Where to get it

  2. Make your first request

    Get a user profile by username.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.socialdata.tools/twitter/user/example_user' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "id_str": "1000000000",
      "name": "Example User",
      "screen_name": "example_user",
      "location": "Example City",
      "description": "Example bio",
      "protected": false,
      "verified": false,
      "followers_count": 120,
      "friends_count": 80,
      "statuses_count": 450,
      "created_at": "2015-06-02T20:12:29.000000Z",
      "can_dm": false
    }

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

API key from the SocialData dashboard, sent as a Bearer token.

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

Rate limits and pricing

120 requests per minute per user, shared across all endpoints

Free tier. Pricing: pay per request.

Errors

StatusMeaning
402Insufficient balance
403Tweet unavailable because of the author's privacy settings
404User or tweet not found
422Validation failed, such as a missing required parameter
500SocialData failed to fetch the data; retry later

Users

Get a user profile by username.

GET/twitter/user/{username}

  • Takes: Username
  • Passive: the target is not contacted
  • Cost: $0.0002 per request

Returns profile fields. The docs' curl example also calls this path with a numeric ID.

Path parameters

usernamestringrequiredtakes your username

Username without the @ symbol

Example: example_user
Response fields · 12Show

id_strstring

User ID

namestring

Display name

screen_namestring

Username

locationstring

Location text

descriptionstring

Bio

protectedboolean

Whether the account is protected

verifiedboolean

Whether the account is verified

followers_countinteger

Follower count

friends_countinteger

Following count

statuses_countinteger

Post count

created_atstring

Account creation timestamp

can_dmboolean

Whether direct messages are allowed

curl 'https://api.socialdata.tools/twitter/user/example_user' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "id_str": "1000000000",
  "name": "Example User",
  "screen_name": "example_user",
  "location": "Example City",
  "description": "Example bio",
  "protected": false,
  "verified": false,
  "followers_count": 120,
  "friends_count": 80,
  "statuses_count": 450,
  "created_at": "2015-06-02T20:12:29.000000Z",
  "can_dm": false
}

List a user's followers.

GET/twitter/user/{user_id}/followers

  • Passive: the target is not contacted
  • Cost: $0.0002 per returned item

Takes the numeric user ID. Page with the cursor from next_cursor.

Path parameters

user_idintegerrequired

Numeric user ID

Example: 1000000000

Query parameters

cursorstring

Value of next_cursor; omit for the first page

Response fields · 5Show

next_cursorstring

Cursor for the next page

id_strstring

User ID

screen_namestring

Username

namestring

Display name

followers_countinteger

Follower count

curl 'https://api.socialdata.tools/twitter/user/1000000000/followers' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "next_cursor": "EXAMPLE_CURSOR",
  "users": [
    {
      "id_str": "1000000001",
      "screen_name": "example_follower",
      "name": "Example Follower",
      "followers_count": 10
    }
  ]
}

Tweets

Get one tweet by ID.

GET/twitter/tweets/{id}

  • Passive: the target is not contacted
  • Cost: $0.0002 per request

Returns the tweet with its author, engagement counts and entities.

Path parameters

idintegerrequired

Numeric tweet ID

Example: 2000000000000000001
Response fields · 10Show

id_strstring

Tweet ID

full_textstring

Tweet text

tweet_created_atstring

Creation time

langstring

Language code

quote_countinteger

Quotes

reply_countinteger

Replies

retweet_countinteger

Retweets

favorite_countinteger

Likes

bookmark_countinteger

Bookmarks

screen_namestring

Author username

curl 'https://api.socialdata.tools/twitter/tweets/2000000000000000001' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "id_str": "2000000000000000001",
  "full_text": "Hello from an example account",
  "tweet_created_at": "2024-01-02T03:04:05.000000Z",
  "lang": "en",
  "quote_count": 0,
  "reply_count": 1,
  "retweet_count": 2,
  "favorite_count": 3,
  "bookmark_count": 0,
  "user": {
    "screen_name": "example_user"
  }
}