For AI

MCP

X MCP server for AI agents

Give Claude, Cursor or any MCP client X (Twitter) data: 20 endpoints from $0.0001 a call, no X login. Your AI finds the endpoint, says the price and fetches.

Connect your AI in one sentence

Set up okdata for me by following https://okdata.online/agents.md. Here is my okdata API key: okd_…. Keep it safe and use it for all okdata calls.

Paste it into Claude Code, Cursor, Codex or any agent that can open a web page. It connects itself, checks the connection without spending anything, and tells you the balance.

What it can answer about X (Twitter)

Ask forEndpoint it callsPrice
X post detail
One post by ID or link: text, media, views, likes, reposts and replies.
x.posts.get$0.0003 per call
X post search
Posts matching a query (X search operators work), latest or top.
x.posts.search$0.002 per call · about 20 posts per page
X account profile
An account by handle or numeric ID, or up to 100 accounts by ID in one call: followers, following, post count, bio and verification. IDs that find no account are listed under data.missing and not charged.
x.users.get$0.0004 per account · at most $0.04 per call
X account posts
An account's posts, newest first.
x.users.posts.list$0.002 per call · about 20 posts per page
X trending topics
Trending topics worldwide or for one country.
x.trends.list$0.009 per call · about 30 board entries per page
X post replies
The replies under a post, in the order X ranks them, up to about 60 a page. A reply is a post itself, so each comes back as a post: text, author, time posted, views, likes and its own reply count.
x.posts.replies.list$0.002 per call · about 35 posts per page
X post quotes
Posts that quote a post, newest or most popular first, 20 a page: what people added, who they are and how far it went.
x.posts.quotes.list$0.0003 per post · at most $0.006 per call
X post retweeters
The accounts that retweeted a post, about 100 a page: handle, name, bio and follower count.
x.posts.retweeters.list$0.002 per call · about 100 accounts per page
X article
The long-form article attached to a post, by the post ID: title, the whole text, author, time published, views, likes and replies.
x.posts.article.get$0.002 per call
X thread
The posts of a thread, from the ID of any post in it: the post it started from, the author's follow-ups and the replies in between. X sets the page size, up to about 50.
x.threads.posts.list$0.0003 per post · at most $0.015 per call
X account search
Accounts matching keywords, 20 a page: handle, name, bio, followers, following, post count and verification.
x.users.search$0.0004 per account · at most $0.008 per call
X account followers
The accounts following an account, newest followers first, 200 a page: handle, name, bio, followers and post count.
x.users.followers.list$0.0001 per account · at most $0.02 per call
X account following
The accounts an account follows, most recently followed first, 200 a page: handle, name, bio, followers and post count.
x.users.following.list$0.0001 per account · at most $0.02 per call
X account mentions
Posts that mention an account, newest first, 20 a page: text, author, time posted, views, likes and reposts.
x.users.mentions.list$0.0003 per post · at most $0.006 per call
X list posts
The timeline of a list, newest first, about 100 posts a page: text, author, time posted, views, likes and reposts.
x.lists.posts.list$0.002 per call · about 100 posts per page
X list members
The accounts a list is made of, 20 a page: handle, name, bio, followers and verification.
x.lists.members.list$0.0004 per account · at most $0.008 per call
X list followers
Up to 20 accounts that follow a list: handle, name, bio, followers and verification. One page only; there is no next page.
x.lists.followers.list$0.0004 per account · at most $0.008 per call
X community profile
A community by ID: name, description, member count, when it was created, and under ext its moderators, how people join and its topic.
x.communities.get$0.0004 per call
X community posts
Posts in a community, newest first, 20 a page: text, author, time posted, views, likes and reposts.
x.communities.posts.list$0.0003 per post · at most $0.006 per call
X community members
The accounts that have joined a community, 20 a page: handle, name, bio, followers and verification.
x.communities.members.list$0.0004 per account · at most $0.008 per call

Two tool calls, one charge

  1. find {"query":"X post search"}Finds x.posts.search and its price. Free, no key.
  2. call {"capability":"x.posts.search","query":"\"claude code\" lang:zh"}One page of data: $0.002 per call · about 20 posts per page.

Skill package

okdata-x gives an agent every X (Twitter) endpoint with its price and the question it answers.

Task skills that run here: Competitor account monitoring, Brand and keyword mentions, Trends and topic ideas, Account check-up, Breaking down a hit, Finding creators

Set it up in

More

Connect once, then just ask.

Every new key comes with $0.10 to try it. One sentence connects your agent.

Start free
Connect your AI

Paste this into your agent

Read https://okdata.online/agents.md and set up okdata for me; my key is in the OKDATA_API_KEY environment variable.

Claude Code, Cursor, Codex and other agents that can open a link set themselves up from it.

MCP serverhttps://api.okdata.online/mcp