# xdataapi.io

> Read-only third-party API for public X data: profiles, posts, threads, replies, followers and search, paid in credits per item returned.

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

- **Inputs:** Username, Name
- **Category:** Social media intelligence
- **Pricing:** Paid (1,000 credits once without a card; then prepaid credit packs that do not expire, one credit per post or profile returned)
- **Footprint:** passive (does not contact the target)
- **Account required:** yes, for full results
- **API:** yes
- **Platforms:** API · MCP server
- **MCP endpoint:** https://api.xdataapi.io/mcp
- **MCP server:** from the team that runs the service; hosted
- **Website:** https://xdataapi.io/
- **Docs:** https://xdataapi.io/docs
- **Listed:** Nov 29
- **Last verified by an editor:** Nov 29, 2026

## What it does

xdataapi.io is a third-party, read-only HTTP API for public data on X (Twitter): profiles, posts, timelines, threads, replies, quotes, retweeters, followers, following and search. It is not X's own API and says it is not affiliated with X Corp. The site says each request goes to X unless the same object was read moments earlier, and that protected accounts, deleted posts, posting and direct messages are not available. The site does not name the operating company; its terms say it is the company named on the customer's invoice.

An investigator sends a key in the x-api-key header to api.xdataapi.io and gets JSON back, with batch endpoints for up to 100 profiles or posts in one request. Search takes the same operators as the x.com search box. A new account gets 1,000 credits once without a card; one credit buys one post or profile, follower lists cost less per profile, and a result served from the short cache costs half. A hosted MCP server, an OpenAPI 3.1 file and TypeScript and Python SDKs are published.

Footprint is passive: it reads its own index or third-party records and does not contact the target. An account is needed for full results. There is an API.

## Features

- Profile lookup by handle or numeric user ID
- A user's latest posts
- Thread, replies, quotes and retweeters of a post
- Followers, follower IDs and following
- Search for posts or people with x.com operators
- Batch reads of up to 100 profiles or posts
- Hosted MCP server at api.xdataapi.io/mcp

## Pros

- No X developer account or X credentials needed
- Empty results and failed requests are not charged
- Credits do not expire, and there is no subscription
- Public status page with per-endpoint history

## Cons

- Not X's own API: the terms say X can change or block access at any time, and X's terms may not allow this kind of access
- Protected accounts and deleted posts are not available
- The site does not name the operating company

## When to use it

- Use it when you need public X profiles, timelines or follower lists as JSON without an X developer account.
- Use it when you want to look up many handles or post IDs in one batch request.
- Use it when an AI agent should read public X posts through an MCP server.

## Set up xdataapi.io

- Hosted by the maker: nothing to install.
- Sign in with your account (OAuth) when the client first connects.
- Its tools only read; it cannot change anything in your account.
- The maker's service sees every request your assistant sends.

Values you supply (replace each <NAME> in the snippets):

- `x-api-key`: header (hosted), optional. API key (xd_live_...), for clients that cannot open a browser for OAuth sign-in

**Claude Code** (hosted). Run in a terminal. Then run /mcp in Claude Code to sign in.

```shell
claude mcp add --transport http xdataapi https://api.xdataapi.io/mcp
```

**Claude (web and desktop)** (hosted). Settings → Connectors → Add custom connector. The client opens the sign-in page the first time it connects.

```
Name: xdataapi
URL:  https://api.xdataapi.io/mcp
```

**Cursor** (hosted). ~/.cursor/mcp.json, or .cursor/mcp.json in a project. The client opens the sign-in page the first time it connects.

```json
{
  "mcpServers": {
    "xdataapi": {
      "url": "https://api.xdataapi.io/mcp"
    }
  }
}
```

**VS Code** (hosted). .vscode/mcp.json in a workspace. The client opens the sign-in page the first time it connects.

```json
{
  "servers": {
    "xdataapi": {
      "type": "http",
      "url": "https://api.xdataapi.io/mcp"
    }
  }
}
```

**Codex** (hosted). ~/.codex/config.toml. Then run codex mcp login xdataapi to sign in.

```toml
[mcp_servers.xdataapi]
url = "https://api.xdataapi.io/mcp"
```

**Windsurf** (hosted). ~/.codeium/windsurf/mcp_config.json. The client opens the sign-in page the first time it connects.

```json
{
  "mcpServers": {
    "xdataapi": {
      "serverUrl": "https://api.xdataapi.io/mcp"
    }
  }
}
```

## What it can do (tools from its docs)

- `get_user`: Reads one X (Twitter) profile by handle or ID.
- `get_users`: Reads up to 100 profiles by handles or IDs in one call.
- `get_user_tweets`: Reads a user's tweets, page by page.
- `get_users_tweets`: Reads the newest tweets of up to 50 users by user ID, 1 to 20 each.
- `get_followers`: Lists a user's followers as profiles, page by page.
- `get_follower_ids`: Lists the IDs of a user's followers, page by page.
- `get_following`: Lists the accounts a user follows, page by page.
- `search_tweets`: Searches tweets or profiles with a query, a product and a cursor.
- `get_tweet`: Reads one tweet by ID.
- `get_tweets`: Reads up to 100 tweets by ID in one call.
- `get_thread`: Reads the thread a tweet belongs to.
- `get_replies`: Reads the replies to a tweet.
- `get_quotes`: Reads the tweets that quote a tweet.
- `get_retweeters`: Lists the profiles that retweeted a tweet.
- `get_balance`: Reads the account's remaining credits. Free.

## Try asking

- "Get the X profile of @jdoe_1990 and their 10 newest tweets."
- "Search X for tweets that mention example.com since 2026-09-01."
- "Read the full thread that this tweet ID belongs to, then list its replies."

## Alternatives

- [DiscordLeaks](https://osinttools.io/tools/discordleaks/): Unicorn Riot's searchable archive of leaked chat logs from extremist Discord servers and other chat platforms. (Free · Username, Name · passive)
- [Followerwonk](https://osinttools.io/tools/followerwonk/): Bio search and follower analysis for X and other networks, now run as part of the Fedica platform. (Freemium · Username, Name · passive)
- [Lyzem](https://osinttools.io/tools/lyzem/): Search engine for public Telegram channels, groups, bots and posts, with results labelled by type. (Free · Name, Username · passive)
- [Open Measures](https://osinttools.io/tools/open-measures/): Search and timeline tools over archived posts from fringe and mainstream platforms such as Telegram, 4chan, Gab and VK. (Freemium · Name, Username · passive)
- [Social Searcher](https://osinttools.io/tools/social-searcher/): Free search engine for public social media posts, profiles, hashtags and images across major networks, with no sign-up. (Free · Name, Username · passive)
- [SocialData](https://osinttools.io/tools/socialdata/): 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. (Paid · Username, Name · passive)

All alternatives to xdataapi.io in one table: https://osinttools.io/tools/xdataapi/alternatives/

## More MCP servers

- [last30days](https://osinttools.io/tools/last30days/): Agent skill and MCP bundle that researches a person, company or topic across Reddit, X, YouTube, HN and more for the last 30 days. (Open source · Name · passive · 75,949 GitHub stars)
- [Xquik](https://osinttools.io/tools/xquik/): Paid X (Twitter) data service with a hosted MCP server for searching posts and pulling profiles, followers and replies. (Paid · Username, URL, Name · passive · 229 GitHub stars)
- [Anysite MCP](https://osinttools.io/tools/anysite-mcp/): Hosted MCP server that returns structured data from LinkedIn, Instagram, X, Reddit, YouTube, SEC EDGAR and other sites via generic tools. (Paid · Name, Username, URL, Domain · passive · 65 GitHub stars)

## Change history

- 2026-11-29: Now listed with MCP server setup.
- 2026-11-29: API reference published: 6 endpoints. (api reference: /apis/xdataapi/)
- 2026-11-29: Listed in the directory.

Feed of changes to xdataapi.io: https://osinttools.io/tools/changes/feed.xml?tool=xdataapi

---

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/
