# SocialData API reference

> 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…

Source: https://osinttools.io/apis/socialdata/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/socialdata/

- Base URL: https://api.socialdata.tools
- Authentication: Bearer token in the `Authorization` header. API key from the SocialData dashboard, sent as a Bearer token.
- Free tier: yes
- Pricing: Pay per request
- Rate limits: 120 requests per minute per user, shared across all endpoints
- Vendor docs: https://docs.socialdata.tools/getting-started/overview

## Overview

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.

## Errors

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

## Users

### Get a user profile by username.

`GET /twitter/user/{username}`

- Takes: Username
- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `username` | path | string | yes | Username without the @ symbol Example: example_user |

Response fields:

- `id_str` (string): User ID
- `name` (string): Display name
- `screen_name` (string): Username
- `location` (string): Location text
- `description` (string): Bio
- `protected` (boolean): Whether the account is protected
- `verified` (boolean): Whether the account is verified
- `followers_count` (integer): Follower count
- `friends_count` (integer): Following count
- `statuses_count` (integer): Post count
- `created_at` (string): Account creation timestamp
- `can_dm` (boolean): Whether direct messages are allowed

```bash
curl 'https://api.socialdata.tools/twitter/user/example_user' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "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`

- Footprint: passive (the target is not contacted)
- Cost: $0.0002 per returned item

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `user_id` | path | integer | yes | Numeric user ID Example: 1000000000 |
| `cursor` | query | string | no | Value of next_cursor; omit for the first page |

Response fields:

- `next_cursor` (string): Cursor for the next page
- `users[].id_str` (string): User ID
- `users[].screen_name` (string): Username
- `users[].name` (string): Display name
- `users[].followers_count` (integer): Follower count

```bash
curl 'https://api.socialdata.tools/twitter/user/1000000000/followers' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "next_cursor": "EXAMPLE_CURSOR",
  "users": [
    {
      "id_str": "1000000001",
      "screen_name": "example_follower",
      "name": "Example Follower",
      "followers_count": 10
    }
  ]
}
```

## Search

### Search tweets with Twitter search operators.

`GET /twitter/search`

- Takes: Username, Name
- Footprint: passive (the target is not contacted)
- Cost: $0.0002 per returned item

Operators go inside the query parameter, not as separate parameters. Page with the cursor from next_cursor.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `query` | query | string | yes | URL-encoded search query with Twitter search operators Example: from:example_user hello |
| `cursor` | query | string | no | Value of next_cursor from a previous response |
| `type` | query | string | no | Result order One of: Latest, Top |

Response fields:

- `next_cursor` (string): Cursor for the next page
- `tweets[].id_str` (string): Tweet ID
- `tweets[].full_text` (string): Tweet text
- `tweets[].tweet_created_at` (string): Creation time
- `tweets[].lang` (string): Language code
- `tweets[].reply_count` (integer): Replies
- `tweets[].retweet_count` (integer): Retweets
- `tweets[].favorite_count` (integer): Likes
- `tweets[].views_count` (integer): Views
- `tweets[].user.screen_name` (string): Author username

```bash
curl 'https://api.socialdata.tools/twitter/search?query=from%3Aexample_user%20hello' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "next_cursor": "EXAMPLE_CURSOR",
  "tweets": [
    {
      "id_str": "2000000000000000001",
      "full_text": "Hello from an example account",
      "tweet_created_at": "2024-01-02T03:04:05.000000Z",
      "lang": "en",
      "reply_count": 1,
      "retweet_count": 2,
      "favorite_count": 3,
      "views_count": 100,
      "user": {
        "screen_name": "example_user"
      }
    }
  ]
}
```

## Tweets

### Get one tweet by ID.

`GET /twitter/tweets/{id}`

- Footprint: passive (the target is not contacted)
- Cost: $0.0002 per request

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | Numeric tweet ID Example: 2000000000000000001 |

Response fields:

- `id_str` (string): Tweet ID
- `full_text` (string): Tweet text
- `tweet_created_at` (string): Creation time
- `lang` (string): Language code
- `quote_count` (integer): Quotes
- `reply_count` (integer): Replies
- `retweet_count` (integer): Retweets
- `favorite_count` (integer): Likes
- `bookmark_count` (integer): Bookmarks
- `user.screen_name` (string): Author username

```bash
curl 'https://api.socialdata.tools/twitter/tweets/2000000000000000001' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "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"
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
