# X (Twitter) data for AI agents

> ToolSocket gives Claude, ChatGPT, Cursor, Codex and any MCP or REST client live access to X (Twitter) — tweets, profiles, followers, search and trends — through 25 ready-made tools. No X (Twitter) account, scraper or API key of your own is needed: connect https://toolsocket.top/mcp once and pay per call (most calls $0.0015).

ToolSocket 让 Claude、ChatGPT、Cursor、Codex 等任何支持 MCP 或 REST 的 AI 智能体，直接读取X (Twitter)的实时数据：推文、用户、粉丝、搜索和趋势数据，共 25 个工具。不用注册X (Twitter)账号、不用写爬虫，接入一个地址即可，按次计费（大多 $0.0015/次）。

## Connect

- MCP (Claude.ai, ChatGPT, Claude Code, Cursor, VS Code, Codex): `https://toolsocket.top/mcp` — OAuth sign-in or `Authorization: Bearer ts_live_…`
- Claude Code: `claude mcp add --transport http toolsocket https://toolsocket.top/mcp`
- Any agent that reads skills: `set up https://toolsocket.top/SKILL.md`
- Setup for every client: https://toolsocket.top/docs.md

## Example

Ask your agent: "What are people on X saying about this launch?" / 「X 上大家怎么评价这次发布？」

```bash
curl -s -X POST https://toolsocket.top/v1/run -H "Authorization: Bearer $TOOLSOCKET_API_KEY" \
  -H "content-type: application/json" -d '{"tool":"twitter#web/fetch_trending","input":{"country":"UnitedStates"},"wait":30}'
```

## Tools (25)

| Tool | ID | Price | What it does |
|---|---|---|---|
| X (Twitter) · Get single tweet data (web) · X（推特） · 获取单个推文数据（web） | `twitter#web/fetch_tweet_detail` | $0.0015 / call | Get single tweet data |
| X (Twitter) · Get user profile (web) · X（推特） · 获取用户资料（web） | `twitter#web/fetch_user_profile` | $0.0015 / call | Get user profile |
| X (Twitter) · Get user post (web) · X（推特） · 获取用户发帖（web） | `twitter#web/fetch_user_post_tweet` | $0.0015 / call | Get user post |
| X (Twitter) · Search (web) · X（推特） · 搜索（web） | `twitter#web/fetch_search_timeline` | $0.0015 / call | Search |
| X (Twitter) · Get comments (web) · X（推特） · 获取评论（web） | `twitter#web/fetch_post_comments` | $0.0015 / call | Get comments under the tweet |
| X (Twitter) · Get the latest tweet comments (web) · X（推特） · 获取最新的推文评论（web） | `twitter#web/fetch_latest_post_comments` | $0.0015 / call | Get the latest tweet comments |
| X (Twitter) · Get user tweet replies (web) · X（推特） · 获取用户推文回复（web） | `twitter#web/fetch_user_tweet_replies` | $0.0015 / call | Get user tweet replies |
| X (Twitter) · Get user media (web) · X（推特） · 获取用户媒体（web） | `twitter#web/fetch_user_media` | $0.0015 / call | Get user media |
| X (Twitter) · ReTweet User list (web) · X（推特） · 转推用户列表（web） | `twitter#web/fetch_retweet_user_list` | $0.0015 / call | Get ReTweet User list |
| X (Twitter) · Trending (web) · X（推特） · 趋势（web） | `twitter#web/fetch_trending` | $0.0015 / call | Get Trending |
| X (Twitter) · User Followings (web) · X（推特） · 用户关注（web） | `twitter#web/fetch_user_followings` | $0.0015 / call | Get User Followings |
| X (Twitter) · User Followers (web) · X（推特） · 用户粉丝（web） | `twitter#web/fetch_user_followers` | $0.0015 / call | Get User Followers |
| X (Twitter) · Get community info (web) · X（推特） · 获取社区详情（web） | `twitter#web/fetch_community_info` | $0.0015 / call | Get community info |
| X (Twitter) · Get community members (no pagination) (web) · X（推特） · 获取社区成员（无分页）（web） | `twitter#web/fetch_community_members` | $0.0015 / call | Get community members |
| X (Twitter) · Get community timeline (web) · X（推特） · 获取社区帖子（web） | `twitter#web/fetch_community_timeline` | $0.0015 / call | Get community timeline |
| X (Twitter) · Search communities (web) · X（推特） · 搜索社区（web） | `twitter#web/fetch_search_communities` | $0.0015 / call | Search communities |
| X (Twitter) · Get user about profile (web) · X（推特） · 获取用户账号档案信息（web） | `twitter#web/fetch_user_about` | $0.0015 / call | Get user about profile |
| X (Twitter) · Get user affiliates (web) · X（推特） · 获取用户关联子账号（web） | `twitter#web/fetch_user_affiliates` | $0.0015 / call | Get user affiliates |
| X (Twitter) · Get profiles by rest ids (web) · X（推特） · 批量根据用户ID获取用户资料（web） | `twitter#web/fetch_user_profiles_by_rest_ids` | $0.0015 / call | Get profiles by rest ids |
| X (Twitter) · Check follow (web) · X（推特） · 检查用户是否关注了另一个用户（web） | `twitter#web/fetch_check_follow` | $0.0015 / call | Check follow |
| X (Twitter) · Check retweet (web) · X（推特） · 检查用户是否转推了某条推文（web） | `twitter#web/fetch_check_retweet` | $0.0015 / call | Check retweet |
| X (Twitter) · Get list timeline (web) · X（推特） · 获取列表帖子（web） | `twitter#web/fetch_list_timeline` | $0.0015 / call | Get list timeline |
| X (Twitter) · Get list members (web) · X（推特） · 获取列表成员（web） | `twitter#web/fetch_list_members` | $0.0015 / call | Get list members |
| X (Twitter) · Get list followers (web) · X（推特） · 获取列表关注者（web） | `twitter#web/fetch_list_followers` | $0.0015 / call | Get list followers |
| X (Twitter) · Check user live status (web) · X（推特） · 检查用户是否正在直播（web） | `twitter#web/fetch_user_live_status` | $0.0015 / call | Check user live status |
