Catalog

X / Twitter API

X / Twitter data through one normalized API - per-request USD pricing, no subscriptions, and automatic failover on redundant endpoints.

Endpoints16Providers11From · search$0.47/1k req · GiraffeFull breakdownRead docs
Uptime
99.94%
30d · 6,604,186 calls
Requests
6.6M
30d · weekly, last 12 wks
Response
1.5s
median · 30d
POST

Search

Most used
/v1/run/twitter.searchtwitter.search
Search X (Twitter) with full advanced-search syntax (operators like from:, since:, until:, min_faves: work inline in the query) and get structured tweets with text, author, engagement, and cursor pagination. Limit is a per-page maximum; native pages contain approximately 20 tweets unless requireSinglePage selects a bulk lane.
3.9M /mo
â–²145.3%
99.99%
1500ms p50
6
from$0.47/1k req
Giraffe
POST

Tweet

/v1/run/twitter.tweettwitter.tweet
Fetch a single Twitter/X tweet by URL with its full text and engagement counts (likes, retweets, replies, quotes, bookmarks, views).
563,305 /mo
â–²442.4%
100.00%
1302ms p50
4
from$0.22/1k req
Lynx
POST

Profile

/v1/run/twitter.profiletwitter.profile
Fetch a Twitter/X account's public profile (followers, tweets, bio, verification) by handle.
542,235 /mo
â–¼17.5%
100.00%
866ms p50
8
from$0.20/1k req
Giraffe
POST

User tweets

/v1/run/twitter.user_tweetstwitter.user_tweets
Get up to the requested limit of tweets and replies authored by an X (Twitter) account, with engagement, views, language, and cursor pagination where available.
472,023 /mo
â–²137.1%
99.99%
1488ms p50
4
from$0.44/1k req
Giraffe
POST

User posts

/v1/run/twitter.user_poststwitter.user_posts
Get an X (Twitter) account's profile Posts-tab timeline by handle. Results follow profile order: a pinned post may appear first, followed by otherwise reverse-chronological authored posts, reposts, quotes, and self-thread continuations.
412,856 /mo
â–²341.2%
99.99%
1623ms p50
5
from$0.44/1k req
Giraffe
POST

Replies

/v1/run/twitter.repliestwitter.replies
Fetch the replies to any X (Twitter) post URL as structured records: author, text, and engagement. An empty result is valid and does not assert whether the target post exists.
300,479 /mo
â–²815.7%
99.37%
1465ms p50
6
from$0.44/1k req
Giraffe
POST

Followers

/v1/run/twitter.followerstwitter.followers
Fetch the follower list of any public X (Twitter) account by username with cursor pagination. Limit is a per-page maximum and a native page holds up to 200 accounts; follow the response's nextCursor for more.
167,502 /mo
â–²111.9%
100.00%
2218ms p50
2
from$0.45/1k req
Lynx
POST

Following

/v1/run/twitter.followingtwitter.following
List the accounts a public X (Twitter) account follows by username with cursor pagination. Limit is a per-page maximum; follow the response's nextCursor for more.
162,350 /mo
â–²555.7%
99.97%
1578ms p50
2
from$0.45/1k req
Lynx
POST

Search users

/v1/run/twitter.search_userstwitter.search_users
Search X (Twitter) accounts by keyword - the People tab of X search. Matches handles, display names, and profile bios, and returns normalized profile records with follower, following, and post counts plus cursor pagination. Use twitter.search for posts.
114,980 /mo
â–²165.3%
98.37%
1230ms p50
3
from$0.49/1k req
Lynx
POST

Article

/v1/run/twitter.articletwitter.article
Get a public X long-form article from its wrapper post URL, including its author, engagement, cover image, and structured content blocks.
10,281 /mo
â–²480.3%
99.92%
1208ms p50
1
price$0.49/1k req
Capybara
POST

Thread

/v1/run/twitter.threadtwitter.thread
Resolve the linear self-thread containing an X (Twitter) post, from its root through the author's linked continuations. This excludes replies from other users.
7,911 /mo
â–²1252.5%
99.51%
2377ms p50
3
from$2.40/1k req
Giraffe
POST

Trends

/v1/run/twitter.trendstwitter.trends
Get current X (Twitter) trends for worldwide, a country, or a city in X ranking order, including the resolved location.
5,515 /mo
â–²311.7%
99.89%
1057ms p50
2
from$0.10/1k req
Badger
POST

Tweet transcript

/v1/run/twitter.tweet_transcripttwitter.tweet_transcript
Extract the spoken transcript from a Twitter/X video tweet by URL.
898 /mo
â–²921.7%
99.89%
4556ms p50
2
from$1.20/1k req
Giraffe
POST

Search communities

/v1/run/twitter.search_communitiestwitter.search_communities
Search X (Twitter) communities by keyword and get their id, name, topic, and member count with cursor pagination. This is how you find a community URL to pass to twitter.community or twitter.community_tweets.
374 /mo
â–¼7.9%
96.52%
654ms p50
1
price$0.11/1k resultsup to $0.0011 / request
Badger
POST

Community tweets

/v1/run/twitter.community_tweetstwitter.community_tweets
List tweets posted in a Twitter/X community by URL: top tweets by default, or the newest with sort=latest.
289 /mo
â–²31.9%
100.00%
2329ms p50
4
from$0.45/1k req
Lynx
POST

Community

/v1/run/twitter.communitytwitter.community
Fetch a Twitter/X community's public details (name, description, member count, join policy) by URL.
138 /mo
â–¼11.5%
100.00%
564ms p50
3
from$0.10/1k req
Badger

About the X / Twitter API

Every provider prices each endpoint independently, so the table shows the cheapest per endpoint. Open one to compare all providers.

Call the X / Twitter API

Base URLhttps://api.getanyapi.com
Auth headerAuthorization: Bearer $ANYAPI_KEY
Example request: Search
curl -X POST https://api.getanyapi.com/v1/run/twitter.search \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"openai","limit":20,"queryType":"Latest"}'

Measured performance

What the X / Twitter API actually does

Every call through AnyAPI over the last 30 days, counted here rather than promised.

99.9%
of calls succeeded (6,604,186 calls)
Succeeded on first lane 91.4%Recovered by failover 8.6%Failed 0.1%
Response time estimate (6,599,897 calls across endpoints)
Weighted p50 estimate
1.5s
Request-weighted average of endpoint p50 values, not a combined request percentile
Weighted p99 estimate
5.1s
Request-weighted average of endpoint p99 values, not a combined request percentile

FAQ

About the X / Twitter API

The AnyAPI X / Twitter API returns X / Twitter data as normalized JSON across 16 endpoints: article, community, community tweets, followers, following, profile, replies, search, search communities, search users, thread, trends, tweet, tweet transcript, user posts, and user tweets. You call one endpoint per job with a single key, and AnyAPI routes each request across 11 sources, falling back automatically when one fails. Pricing is in US dollars, from $0.10 per 1,000 requests on the cheapest endpoint, with no subscription and no monthly minimum. Over the last 30 days, 99.9% of X / Twitter calls through AnyAPI succeeded, with a request-weighted median response time of 1.5 seconds across 6,604,186 measured calls.

Pricing is in US dollars, from $0.10 per 1,000 requests on the cheapest endpoint, with no subscription and no monthly minimum. You fund one USD wallet and each call draws it down. Some failed wallet-funded requests incur processing charges that we pass through at cost, with no markup; the error response shows the amount charged.

16 endpoints: article, community, community tweets, followers, following, profile, replies, search, search communities, search users, thread, trends, tweet, tweet transcript, user posts, and user tweets. Every one takes the same authentication and returns the same normalized response shape, so reaching a second X / Twitter endpoint is a change of URL and nothing else.

Over the last 30 days, 99.9% of X / Twitter calls through AnyAPI succeeded, with a request-weighted median response time of 1.5 seconds across 6,604,186 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.