X (Twitter) API alternative for AI agents

Scrollport is an easier alternative to the official X API for AI agents: no developer app, approval or OAuth app. It gives agents 13 tools to get X (Twitter) posts and profiles, from X and TikHub, through one MCP, CLI or HTTP connection. Prices run from $0.0025 to $0.0500 per request, paid per use.

Updated

What is the best X API for AI agents?

Start with TikHub's user posts to get an X account's latest posts. Use Post Search to find posts about a topic in a date range, or Public Profile for an account's profile details.

Start with

X (Twitter) user's posts by handle or user id

by TikHub$0.0025 per request

Best for: an account's latest posts

You ask your agent

“Show me @elonmusk's latest posts on X.”

You get

Name
Elon Musk
Profile
elonmusk

Also good for

  • Posts about a topic in a date range: Post Search by X$0.0500 per request
  • An account's public profile: Public Profile by X$0.0025 per request

A real run

· run a2c66a69

You asked
The latest English posts on X mentioning Claude Code.
You got
  • 20 posts from the last few minutes with text, link, author profile, follower count and engagement counts.
  • A cursor for the next page, so the agent can keep going without a developer account.
It cost
$0.0500through x.post-search. Failed calls are not charged.

Compare all 13 X API tools

ToolWhat it returnsPrice
Public ProfileXRetrieve one public X profile by username with identity, account status and public metrics.$0.0025/request
Search X (Twitter) posts by keywordTikHubTwitter: fetch search timeline (web)$0.0025/request
X (Twitter) accounts a user follows by handleTikHubTwitter: fetch user followings (web)$0.0025/request
X (Twitter) newest post comments by tweet idTikHubTwitter: fetch latest post comments (web)$0.0025/request
X (Twitter) post comments by tweet idTikHubTwitter: fetch post comments (web)$0.0025/request
X (Twitter) post details by tweet idTikHubTwitter: fetch tweet detail (web)$0.0025/request
X (Twitter) profile by handle or user idTikHubPublic X (Twitter) profile by handle or numeric id$0.0025/request
X (Twitter) trending topics by countryTikHubX (Twitter) trending topics by country.$0.0025/request
X (Twitter) user's followers by handleTikHubTwitter: fetch user followers (web)$0.0025/request
X (Twitter) user's media posts by handleTikHubTwitter: fetch user media (web)$0.0025/request
X (Twitter) user's posts by handle or user idTikHubRecent posts of an X (Twitter) user$0.0025/request
X (Twitter) user's replies by handleTikHubTwitter: fetch user tweet replies (web)$0.0025/request
Post SearchXSearch public X posts with bounded query, mode, time and pagination controls.$0.0500/request

Why use Scrollport instead of the official X API

  • No developer app or approval process to apply for.
  • No OAuth app to build and no tokens to refresh.
  • One Scrollport key and one prepaid wallet for every tool.
  • Pay per call, at the price shown before each run.
  • Use it from your agent over MCP, the Scrollport CLI or the HTTP API, as a Twitter API.

These tools come from X, TikHub; coverage and freshness vary by tool. Scrollport is not affiliated with, endorsed by or sponsored by X.

Use it with your agent

Copy the prompt and paste it into your agent, then tell it what you need.

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Then help me get X (Twitter) posts and profiles with Scrollport's X API tools. Start with X (Twitter) user's posts by handle or user id (tool ID: tikhub.user-posts) unless another Scrollport tool fits my request better. Ask me for the details you need, then show me the result.

Provider access is included. If your agent isn't connected to Scrollport yet, it will help you set that up.

No agent yet? Create your account on the web and connect one from your dashboard later.

Questions about X API

Is the X API free?

X sets the access terms and any charges for its own official API. Through Scrollport you do not need an X developer account: these tools start at $0.0025 per request, paid from a prepaid wallet, and connecting your first agent adds $1 of trial credit.

How do I get Twitter data without an API key?

Connect your agent to Scrollport once. It can then call the Twitter tools on this page through Scrollport, which holds the provider access, so you never create or handle a Twitter or provider API key.

Learn more about the X API

Choose Latest or Top on purpose

Latest is a live feed: the run above returned 20 posts from the previous few minutes, most with no engagement yet. Top returns what has already spread. Use Latest to monitor and Top to research, and say which one you used.

Bound the window and the pages

Give a since and until date no more than 31 days apart and a page limit. Each page is one call at the price shown, and the response carries a cursor, so the agent can stop when it has enough rather than paying for everything.

How much does the X API cost through Scrollport?

Each tool shows its own price on this page before the run. Post search is $0.05 per call of up to 100 posts; a public profile lookup is $0.0025. There is no monthly tier: a month with no searches costs nothing.

Example prompt

The run above monitored a product name; the same request works for a competitor, a hashtag or an author.

Example prompt to give your agent

Use Scrollport's X API tools to find the latest 20 English posts mentioning [KEYWORD OR @HANDLE] since [DATE]. List the author, follower count, text and link, then group the posts by theme and tell me which three authors are worth replying to. Show me the price before the paid run.