X (Twitter) API

Read X (Twitter) posts, accounts, replies, communities, lists and trends with one EveryInfra API Key. The API returns JSON, from $0.56 per 1,000 calls.

All you need is one API key, no X (Twitter) account or cookie. It also works as an MCP tool in Claude and Cursor. Star our two GitHub repositories to claim $1 in trial credit and try it first. The credit is valid for 24 hours after you claim it.

  • 30 endpoints, one key
  • Failed calls and empty results are not charged.
  • You call with an EveryInfra API Key, not an X access token

Real sample values for one account

POST /api/v1/social params {"username":"nasa"}

Values from real sample calls for the same account, captured September 26, 2026 – November 21, 2026 (UTC); each box links to that endpoint.

Platform availability

24h health
82%
Available

Last 30 days

Available capabilities

Search posts, user profiles, and conversation replies using keywords or handles for discussion observation and content curation.

Get posts by keyword and user profiles by handle. Search returns the Top results of X by default.

Posts and search

  • SearchAvailable · health 72%

    Search tweets by keyword and get them as JSON.

    search$0.79 per 1,000 calls

  • TrendingHealthy · health 100%

    List trending topics on X (Twitter) with rank, discussion volume, time period and the time of collection.

    trending$0.56 per 1,000 calls

  • Post detailsHealthy · health 100%

    Fetch one X (Twitter) post by its numeric ID, with full text, author, publish time and like, repost, reply and view counts.

    post$0.56 per 1,000 calls

  • Look up as many as 20 X (Twitter) posts at once from urls, each a post link or numeric post ID.

    posts_batch$0.56 per 1,000 callsEach element in urls counts as one call

  • ThreadNormal

    Give one X (Twitter) post link and get the whole thread its author posted, from the first post on, up to 100 posts.

    thread$2.15 per 1,000 calls

  • List the posts that quote one X (Twitter) post, from its numeric id or link, newest first, each with text, author and counts.

    quotes$0.56 per 1,000 calls

  • Turn the speech in an X (Twitter) video post into text, from the post link or ID.

    video_transcript$0.96 per 1,000 calls

Replies and reposts

  • CommentsNormal

    Collect the replies under an X (Twitter) post.

    comments$0.56 per 1,000 calls

  • RepostersHealthy · health 100%

    List the accounts that reposted one X (Twitter) post, from its numeric id.

    retweeters$0.81 per 1,000 calls

  • Check whether an X (Twitter) account reposted one post.

    check_retweet$0.81 per 1,000 calls

Accounts

  • ProfilesHealthy · health 96%

    Check an X (Twitter) handle's bio, location, follower, following and post counts, verification and account creation date.

    profile$0.56 per 1,000 calls

  • Look up as many as 20 X (Twitter) accounts at once by numeric user ID in user_ids.

    profiles_by_ids$0.81 per 1,000 callsEvery 20 rows count as one call

  • Read the About this account page of an X (Twitter) user by username: the country the account is based in and whether that is accurate, how it signed up, how many times the username changed and when last, and since when it is verified.

    user_about$0.81 per 1,000 calls

  • Search X (Twitter) accounts by keyword, as in the People tab: it matches usernames, display names and bios.

    search_users$0.56 per 1,000 calls

  • User liveNormal

    Check whether an X (Twitter) account is live right now, in a Space or a video broadcast, from username or user_id.

    user_live$0.56 per 1,000 calls

  • List the accounts shown under Affiliates on an organization's X (Twitter) profile, from username, with counts and the affiliation label.

    user_affiliates$0.56 per 1,000 calls

What an account posts

  • Posts by userHealthy · health 99%

    Pull an X (Twitter) account's posts with likes, reposts, replies and views for each, plus publish time.

    user_posts$0.56 per 1,000 calls

  • List the posts from an X (Twitter) account's Media tab by username: the posts that carry photos or videos, newest first.

    user_media$0.81 per 1,000 calls

  • List the posts from an X (Twitter) account's Replies tab by username, newest first.

    user_replies$0.81 per 1,000 calls

  • List the posts an X (Twitter) account has reposted, from username, newest repost first.

    user_reposts$0.56 per 1,000 calls

Follow relations

  • Map the audience of an X (Twitter) account through its followers.

    followers_list$0.56 per 1,000 callsEvery 200 rows count as one call

  • Get the accounts an X (Twitter) user follows, with each one's bio, location, follower and post counts and verification.

    following_list$0.56 per 1,000 callsEvery 200 rows count as one call

  • Check whether one X (Twitter) account follows another.

    check_follow$0.81 per 1,000 calls

Communities

  • Read one X (Twitter) Community by its numeric community_id: name, description, topic, member count, NSFW flag, banner, creation date and its rules.

    community_info$0.81 per 1,000 calls

  • Search X (Twitter) Communities by keyword.

    search_communities$0.81 per 1,000 calls

  • Read the latest posts in one X (Twitter) Community by its numeric community_id.

    community_posts$0.81 per 1,000 calls

  • Read the first screen of an X (Twitter) Community's Members page by community_id: about 20 accounts, admins and moderators first, each with community_role.

    community_members$0.56 per 1,000 calls

Lists

  • Read the timeline of an X (Twitter) List by list_id: posts from the List's members, newest first, including posts they reposted.

    list_posts$0.56 per 1,000 calls

  • List the accounts in an X (Twitter) List by list_id, with follower, following and post counts, verification and, when the account has one, affiliation.

    list_members$0.56 per 1,000 calls

  • List the accounts that follow an X (Twitter) List by list_id, with follower, following and post counts and verification.

    list_followers$0.56 per 1,000 calls

X (Twitter) API pricing

6 questions to ask before choosing a data API for X (Twitter)

Does X (Twitter) have an official API, and how is it different from this one?

Yes. The X API v2 is open to any developer through the X Developer Console. Since February 2026 it is billed pay-per-use: you buy credits and pay per resource, for example $0.005 per post read and $0.010 per user read, with a cap of 3 million post reads a month before an Enterprise plan is needed (prices as published in October 2026). With one EveryInfra API key, you can read public X (Twitter) data in the same request format as other platforms, without applying for X (Twitter) developer access.

Official sources: X API pricing · X API: getting access · Checked

Do I need to log in to X (Twitter) or provide a cookie to make calls?

No. Send Authorization: Bearer with your API key in the request header, and put platform, action and the capability parameters in the request body. There is no QR-code login, no login state to maintain and no browser to run.

How is it billed? Are failed requests charged? Is there a free trial?

Billing is per request, from $0.56 per 1,000 requests. Failed requests, empty results, invalid parameters and authentication failures are not charged; when urls has several links, each link counts as one request. Star both everyinfra/everyinfra-agent-plugins and everyinfra/seo-skills on GitHub, then claim $1 under Balance & top-ups in the console. It is valid for 24 hours after you claim it, and no credit card is needed.

Can I connect this X (Twitter) API to Claude or Cursor?

Yes. The remote MCP URL is https://api.everyinfra.com/mcp. Add Authorization: Bearer and your API key as a request header; there is no local program to install. Setup for Claude, Cursor, ChatGPT and Claude Code is on https://everyinfra.com/en/mcp-server. An agent can search X (Twitter) content, read comments and look up accounts on its own.

What compliance points apply when using X (Twitter) data?

The EveryInfra Terms of Service require you to make sure your use of the data complies with applicable law and the platform's terms. They prohibit unlawful use, violating privacy or intellectual property, and bulk scraping for harassment, fraud or other malicious purposes. If you use personal information such as nicknames and avatars, keep only the fields your business needs.

What X (Twitter) data can I get?

Available X (Twitter) capabilities (30): Search, Profiles, Posts by user, Post details, Comments, Trending, Follower list, Following list, Media posts, Replies tab, Reposters, Profiles by user ID, About this account, Follow check, Repost check, Community details, Community search, User search, Video transcript, Thread, Community posts, User reposts, List posts, Quote posts, List members, List followers, Affiliated accounts, Community members, User live, Posts in bulk. The parameters and response fields of each capability are in the API reference on this page.

Use cases

X API vs EveryInfra

How the official X API and EveryInfra compare on access, what they read and how they are priced:

ComparedX APIEveryInfra
What the official API needs to read public dataGetting Access: "Use the Bearer Token for simple, read-only access to public data."You call with an EveryInfra API Key in the Authorization: Bearer header, not with an X access token.
What the official API readsAbout the X API: "The X API provides programmatic access to X's public conversation."It reads public posts, accounts, communities and lists. The inputs and returned fields of each endpoint are on its own page.
Pricing modelAbout the X API, Pricing: "Purchase credits, deducted per request"Each endpoint is billed at its own list price. Failed calls and empty results are not charged. The prices are on each endpoint page.

The quotes are from the About the X API and Getting Access pages of the X Developer Platform documentation, which is in English. This section compares only access, scope and pricing model. Official sources: About the X API · Getting Access

What does each X (Twitter) action accept?

Parameter table for all 30 actions

Sync delivery for every action.

ActionRequiredOptionalLimitPer 1,000Response fields
search

Search

Search tweets by keyword and get them as JSON. Each post has text, author, follower count and engagement counts. The query can use operators such as from: or since:. Top results come first by default. Latest posts may not come in strict time order.

keywordsortCatalog values: defaultLimit=25, maxLimit=200. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.$0.79 per 1,000 requestsid · url · text · like_count · retweet_count · reply_count · view_count · posted_at · author_username · author_name · author_url · author_follower_count · quote_count · bookmark_count · language · conversation_id · is_reply · is_quote · is_repost · is_pinned · reply_to_id · reply_to_user_id · reply_to · source · media · hashtags · mentions · links · author_id · author_avatar_url · author_bio · author_is_verified · author_following_count · author_post_count · author_media_count · author_created_at · author_banner_url · platform
profile

Profiles

Check an X (Twitter) handle's bio, location, follower, following and post counts, verification and account creation date. Pass the username with or without @, not a profile URL. The result does not confirm identity, current activity or audience makeup.

username——$0.56 per 1,000 requestsuser_id · username · display_name · bio · url · follower_count · following_count · post_count · is_verified · location · avatar_url · created_at · platform
user_posts

Posts by user

Pull an X (Twitter) account's posts with likes, reposts, replies and views for each, plus publish time. One batch may not hold every post, reply or repost, and private messages are never included.

username—Catalog values: defaultLimit=20, maxLimit=200. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.$0.56 per 1,000 requestsid · url · text · like_count · retweet_count · reply_count · view_count · posted_at · author_username · author_name · author_url · author_follower_count · quote_count · bookmark_count · language · conversation_id · is_reply · is_quote · is_repost · is_pinned · reply_to_id · reply_to_user_id · reply_to · source · media · hashtags · mentions · links · author_id · author_avatar_url · author_bio · author_is_verified · author_following_count · author_post_count · author_media_count · author_created_at · author_banner_url · platform
post

Post details

Fetch one X (Twitter) post by its numeric ID, with full text, author, publish time and like, repost, reply and view counts. Keep the ID as a string to avoid JavaScript rounding, and do not pass the full link.

idtweet_id, limit—$0.56 per 1,000 requestsid · url · text · like_count · retweet_count · reply_count · view_count · posted_at · author_username · author_name · author_url · author_follower_count · quote_count · bookmark_count · language · conversation_id · is_reply · is_quote · is_repost · is_pinned · reply_to_id · reply_to_user_id · reply_to · source · media · hashtags · mentions · links · author_id · author_avatar_url · author_bio · author_is_verified · author_following_count · author_post_count · author_media_count · author_created_at · author_banner_url · platform
comments

Comments

Collect the replies under an X (Twitter) post. Each reply has text, author, the author's follower count and its own engagement numbers. Send the original post's numeric id. The full conversation is not guaranteed.

idpage_token, tweet_idCatalog values: defaultLimit=20, maxLimit=50. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count. For the next page, pass next_page_token back as page_token with the other parameters unchanged; each page is one call.$0.56 per 1,000 requestsid · url · text · like_count · retweet_count · reply_count · view_count · posted_at · author_username · author_name · author_url · author_follower_count · quote_count · bookmark_count · language · conversation_id · is_reply · is_quote · is_repost · is_pinned · reply_to_id · reply_to_user_id · reply_to · source · media · hashtags · mentions · links · author_id · author_avatar_url · author_bio · author_is_verified · author_following_count · author_post_count · author_media_count · author_created_at · author_banner_url · platform
trending

Trending

List trending topics on X (Twitter) with rank, discussion volume, time period and the time of collection. Choose a region with country, world by default. rank and volume describe one observation, not the algorithm or a history.

country, limit—$0.56 per 1,000 requestsid · name · url · rank · volume · period · collected_at · platform
followers_list

Follower list

Map the audience of an X (Twitter) account through its followers. Each follower has bio, location, counts, verification and protected status. The list covers followers that X makes visible and may be partial. The counts on each row belong to that follower.

username—Catalog values: defaultLimit=200, maxLimit=2000. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.$0.56 per 1,000 requestsEvery 200 rows count as one callid · username · url · name · text · location · avatar_url · follower_count · following_count · post_count · is_verified · is_protected · created_at · platform
following_list

Following list

Get the accounts an X (Twitter) user follows, with each one's bio, location, follower and post counts and verification. Following can change at any time and does not prove affinity or interaction.

username—Catalog values: defaultLimit=200, maxLimit=2000. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.$0.56 per 1,000 requestsEvery 200 rows count as one callid · username · url · name · text · location · avatar_url · follower_count · following_count · post_count · is_verified · is_protected · created_at · platform
user_media

Media posts

List the posts from an X (Twitter) account's Media tab by username: the posts that carry photos or videos, newest first. Each post has text, media, like, repost, reply and view counts, post time and author details. About 12 posts per page and the count varies; page on with next_page_token.

usernamepage_tokenEach call returns one page of up to 12 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.81 per 1,000 requestsnext_page_token · id · url · text · like_count · retweet_count · reply_count · view_count · posted_at · author_username · author_name · author_url · author_follower_count · quote_count · bookmark_count · language · conversation_id · is_quote · is_repost · is_pinned · source · media · author_id · author_bio · author_is_verified · author_following_count · author_post_count · author_media_count · author_created_at · author_banner_url · platform
user_replies

Replies tab

List the posts from an X (Twitter) account's Replies tab by username, newest first. Each post has text, is_reply and reply_to_id, engagement counts, hashtags, mentions and links. Only the account's own posts come back, not the posts they answered. About 30 per page and the count varies; page on with next_page_token.

usernamepage_tokenEach call returns one page of up to 30 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.81 per 1,000 requestsnext_page_token · id · url · text · like_count · retweet_count · reply_count · view_count · posted_at · author_username · author_name · author_url · author_follower_count · quote_count · bookmark_count · language · conversation_id · is_reply · is_quote · is_repost · is_pinned · reply_to_id · media · hashtags · mentions · links · author_id · author_avatar_url · author_bio · author_is_verified · author_following_count · author_post_count · author_media_count · author_created_at · author_banner_url · platform
retweeters

Reposters

List the accounts that reposted one X (Twitter) post, from its numeric id. Each account has username, name, follower, following and post counts. About 100 per page; page on with next_page_token. Only the reposts X still shows are listed.

idpage_token, urlEach call returns one page of up to 100 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.81 per 1,000 requestsmedia_count · next_page_token · id · username · url · name · text · follower_count · following_count · post_count · platform
profiles_by_ids

Profiles by user ID

Look up as many as 20 X (Twitter) accounts at once by numeric user ID in user_ids. Each account has username, display name, profile link, location, verification, protected flag, avatar, creation date and account_status. Bio and follower counts are not included; call profile with the returned username for those.

user_ids—Catalog values: defaultLimit=20, maxLimit=20. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.$0.81 per 1,000 requestsEvery 20 rows count as one calluser_id · username · display_name · url · location · is_verified · is_protected · affiliation · avatar_url · created_at · account_status · platform
user_about

About this account

Read the About this account page of an X (Twitter) user by username: the country the account is based in and whether that is accurate, how it signed up, how many times the username changed and when last, and since when it is verified. Country, sign-up source and last change only appear when X shows them.

username——$0.81 per 1,000 requestsuser_id · username · display_name · url · account_based_in · is_location_accurate · signup_source · username_change_count · last_username_change_at · is_verified · verified_since · is_protected · affiliation · avatar_url · account_status · platform
check_follow

Follow check

Check whether one X (Twitter) account follows another. Pass the possible follower in username and the account to check in target_username; is_following comes back true or false. It reflects the relationship at the time of the call.

username, target_username——$0.81 per 1,000 requestsusername · target_username · is_following · platform
check_retweet

Repost check

Check whether an X (Twitter) account reposted one post. Pass the account in username and the post's numeric id; is_retweeted comes back true or false. It reflects the reposts X shows at the time of the call.

username, idurl—$0.81 per 1,000 requestsusername · post_id · is_retweeted · platform
community_info

Community details

Read one X (Twitter) Community by its numeric community_id: name, description, topic, member count, NSFW flag, banner, creation date and its rules.

community_idurl—$0.81 per 1,000 requestsid · url · name · description · topic · member_count · is_nsfw · banner_url · created_at · rules · platform
search_communities

Community search

Search X (Twitter) Communities by keyword. Each Community has its ID, link, name, topic, member count, NSFW flag and banner. Up to 20 per page; page on with next_page_token.

keywordpage_tokenEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.81 per 1,000 requestsid · url · name · topic · member_count · is_nsfw · banner_url · platform · next_page_token
search_users

User search

Search X (Twitter) accounts by keyword, as in the People tab: it matches usernames, display names and bios. Each account has bio, avatar, follower, following and post counts, verification and creation date. About 20 per page; page on with next_page_token. Posts are not returned.

keywordpage_tokenEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.56 per 1,000 requestsnext_page_token · id · username · url · name · text · avatar_url · follower_count · following_count · post_count · is_verified · created_at · platform
video_transcript

Video transcript

Turn the speech in an X (Twitter) video post into text, from the post link or ID. You get the post ID, link, the whole transcript in text and its word_count. There are no per-segment timestamps. A post without a video, or a video where nobody speaks, comes back empty.

urlid—$0.96 per 1,000 requestsid · url · text · word_count
thread

Thread

Give one X (Twitter) post link and get the whole thread its author posted, from the first post on, up to 100 posts. Each post has text, media, engagement counts, post time and author details. Replies from other accounts are not included.

urlidCatalog values: defaultLimit=100, maxLimit=100. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.$2.15 per 1,000 requestsid · url · text · like_count · retweet_count · reply_count · view_count · posted_at · author_username · author_name · author_url · author_follower_count · quote_count · bookmark_count · language · conversation_id · is_reply · reply_to_id · source · media · author_id · author_avatar_url · author_bio · author_is_verified · author_following_count · author_created_at · author_banner_url · platform
community_posts

Community posts

Read the latest posts in one X (Twitter) Community by its numeric community_id. Each post has text, media, engagement counts, post time and the author's username and verification. About 20 per page; page on with next_page_token.

community_idpage_token, urlEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.81 per 1,000 requestsnext_page_token · id · url · text · like_count · retweet_count · reply_count · view_count · posted_at · author_username · author_name · author_url · quote_count · language · is_quote · is_repost · is_pinned · source · media · author_id · author_is_verified · platform
user_reposts

User reposts

List the posts an X (Twitter) account has reposted, from username, newest repost first. Each row is the original post with its text, author and counts, plus reposted_by and reposted_at. Up to 20 per page; page on with next_page_token.

usernamepage_tokenEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.56 per 1,000 requestsid · url · text · like_count · retweet_count · reply_count · view_count · posted_at · author_username · author_name · author_url · author_follower_count · quote_count · bookmark_count · language · conversation_id · is_reply · is_quote · is_repost · reply_to_id · reply_to_user_id · reply_to · source · media · hashtags · mentions · links · author_id · author_avatar_url · author_bio · author_is_verified · author_post_count · author_media_count · author_created_at · author_banner_url · platform · reposted_by · reposted_at
list_posts

List posts

Read the timeline of an X (Twitter) List by list_id: posts from the List's members, newest first, including posts they reposted. Up to 20 per page; page on with next_page_token.

list_idpage_tokenEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.56 per 1,000 requestsid · url · text · like_count · retweet_count · reply_count · view_count · posted_at · author_username · author_name · author_url · author_follower_count · quote_count · bookmark_count · language · conversation_id · is_reply · is_quote · is_repost · reply_to_id · reply_to_user_id · reply_to · source · media · hashtags · mentions · links · author_id · author_avatar_url · author_bio · author_is_verified · author_post_count · author_media_count · author_created_at · author_banner_url · platform · reposted_by · reposted_at
quotes

Quote posts

List the posts that quote one X (Twitter) post, from its numeric id or link, newest first, each with text, author and counts. Up to 20 per page; page on with next_page_token.

idpage_tokenEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.56 per 1,000 requestsid · url · text · like_count · retweet_count · reply_count · view_count · posted_at · author_username · author_name · author_url · author_follower_count · quote_count · bookmark_count · language · conversation_id · is_reply · is_quote · is_repost · reply_to_id · reply_to_user_id · reply_to · source · media · hashtags · mentions · links · author_id · author_avatar_url · author_bio · author_is_verified · author_post_count · author_media_count · author_created_at · author_banner_url · platform
list_members

List members

List the accounts in an X (Twitter) List by list_id, with follower, following and post counts, verification and, when the account has one, affiliation. Up to 20 per page; page on with next_page_token.

list_idpage_tokenEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.56 per 1,000 requestsid · username · url · name · text · location · avatar_url · follower_count · following_count · post_count · is_verified · is_protected · created_at · platform · media_count · affiliation
list_followers

List followers

List the accounts that follow an X (Twitter) List by list_id, with follower, following and post counts and verification. Up to 20 per page; page on with next_page_token.

list_idpage_tokenEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.56 per 1,000 requestsid · username · url · name · text · location · avatar_url · follower_count · following_count · post_count · is_verified · is_protected · created_at · platform · media_count
user_affiliates

Affiliated accounts

List the accounts shown under Affiliates on an organization's X (Twitter) profile, from username, with counts and the affiliation label. Personal accounts have none and return an empty result, not charged. Up to 20 per page; page on with next_page_token.

usernamepage_tokenEach call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.56 per 1,000 requestsid · username · url · name · text · location · avatar_url · follower_count · following_count · post_count · is_verified · is_protected · created_at · platform · media_count · affiliation
community_members

Community members

Read the first screen of an X (Twitter) Community's Members page by community_id: about 20 accounts, admins and moderators first, each with community_role. There is no next page, and no follower counts or bio.

community_id—Each call returns one page of up to 20 rows. The number of rows varies from page to page, so a short page is not the end. For the next page, pass the response's top-level next_page_token as page_token; stop when there is none. limit is accepted and has no effect.$0.56 per 1,000 requestsid · username · url · name · avatar_url · is_verified · is_protected · community_role · platform
user_live

User live

Check whether an X (Twitter) account is live right now, in a Space or a video broadcast, from username or user_id. is_live is true or false; when the account is live, you also get live_type (space or broadcast), live_id, title, started_at and url, plus watching_count for video broadcasts.

user_id, username—$0.56 per 1,000 requestsid · username · is_live · live_type · live_id · title · started_at · watching_count · url · platform
posts_batch

Posts in bulk

Look up as many as 20 X (Twitter) posts at once from urls, each a post link or numeric post ID. Each post found is one row with the same fields as post, plus input, the entry you sent. Billed per post; posts not found are listed in missed and not charged.

urls——$0.56 per 1,000 requestsEach element in urls counts as one callid · url · text · like_count · retweet_count · reply_count · view_count · posted_at · author_username · author_name · author_url · author_follower_count · quote_count · bookmark_count · language · conversation_id · is_reply · is_quote · is_repost · reply_to_id · reply_to_user_id · reply_to · source · media · hashtags · mentions · links · author_id · author_avatar_url · author_bio · author_is_verified · author_post_count · author_media_count · author_created_at · author_banner_url · platform · input
What each action's parameters mean (30 actions)

Each answer below pairs one callable action with its real inputs. Parameter meanings and allowed values are action-specific; a familiar name does not carry the same meaning across every platform.

Official sources are linked only to clarify the platform term beside them. They do not imply platform authorization or endorsement, and features of the official site are not part of the EveryInfra API unless this page lists them.

What do the X (Twitter) search parameters mean?

Search tweets by keyword and get them as JSON. Each post has text, author, follower count and engagement counts. The query can use operators such as from: or since:. Top results come first by default. Latest posts may not come in strict time order.

Full API reference: parameters, code samples, response example and health
keywordRequired
X post query string; it may include platform search operators such as from: or since:. For ordering, see sort.
sortOptional
Ordering preference. latest asks for the newest posts first; X returns Top results by default, and latest does not guarantee strictly chronological results.

What do the X (Twitter) profile parameters mean?

Check an X (Twitter) handle's bio, location, follower, following and post counts, verification and account creation date. Pass the username with or without @, not a profile URL. The result does not confirm identity, current activity or audience makeup.

Full API reference: parameters, code samples, response example and health
usernameRequired
X username, optionally prefixed with @, without entering a full profile URL. profile compiles data from author details within recent posts; followers_list and following_list retrieve visible followers and following accounts respectively.
X: username / handle vs. Display Name — X separates the handle from the display name; the handle forms the @ identifier and profile link, and once changed, the original handle may be claimed by others. When archiving, do not rely solely on display names or mutable handles to verify identity. · Checked

What do the X (Twitter) user_posts parameters mean?

Pull an X (Twitter) account's posts with likes, reposts, replies and views for each, plus publish time. One batch may not hold every post, reply or repost, and private messages are never included.

Full API reference: parameters, code samples, response example and health
usernameRequired
X username, optionally prefixed with @, without entering a full profile URL. profile compiles data from author details within recent posts; followers_list and following_list retrieve visible followers and following accounts respectively.
X: username / handle vs. Display Name — X separates the handle from the display name; the handle forms the @ identifier and profile link, and once changed, the original handle may be claimed by others. When archiving, do not rely solely on display names or mutable handles to verify identity. · Checked

What do the X (Twitter) post parameters mean?

Fetch one X (Twitter) post by its numeric ID, with full text, author, publish time and like, repost, reply and view counts. Keep the ID as a string to avoid JavaScript rounding, and do not pass the full link.

Full API reference: parameters, code samples, response example and health
idRequired
Numeric post ID for post or comments, corresponding to the digits following x.com/username/status/. It is recommended to store this as a string to prevent JavaScript large integer precision loss; do not pass full URLs into id.
X: View Count Does Not Equal Unique Users — X clarifies that multiple views by the same person may count multiple times, and some posts have no view count available. This explains metric definitions and does not mean this endpoint can access protected content or private analytics data. · Checked
tweet_idOptional
Compatibility input for id, with lower precedence than id, which does not replace the required public id field.
limitOptional
Positive integer (≥1): the maximum number of results to return; omit it to get every result from this call. Setting it only trims the response to at most this many and never fetches more; billing is the same with or without limit, whatever the value.

What do the X (Twitter) comments parameters mean?

Collect the replies under an X (Twitter) post. Each reply has text, author, the author's follower count and its own engagement numbers. Send the original post's numeric id. The full conversation is not guaranteed.

Full API reference: parameters, code samples, response example and health
idRequired
Numeric post ID for post or comments, corresponding to the digits following x.com/username/status/. It is recommended to store this as a string to prevent JavaScript large integer precision loss; do not pass full URLs into id.
X: Original Post ID, Conversation ID, and Reply Relationships — X uses conversation_id to indicate the original post ID that initiated a conversation, which multi-level replies can share; reconstructing parent-child relationships requires parent post identifiers. This endpoint does not expose these relationship fields, so official example reply trees should not be expected in current output. · Checked
page_tokenOptional
Page token. To paginate, pass an empty string (page_token="") for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Each page holds at least limit replies (default 20, when that many remain), as whole pages of about 20, so often more. Each page counts as one call. Tokens last 24 hours, and the last page has no next_page_token. A request without page_token works as before, returning at most 50 comments; it sometimes includes a next_page_token that can be followed the same way. To paginate, start from page_token="".
tweet_idOptional
Compatibility input for id, with lower precedence than id, which does not replace the required public id field.

What do the X (Twitter) trending parameters mean?

List trending topics on X (Twitter) with rank, discussion volume, time period and the time of collection. Choose a region with country, world by default. rank and volume describe one observation, not the algorithm or a history.

Full API reference: parameters, code samples, response example and health

What do the X (Twitter) followers_list parameters mean?

Map the audience of an X (Twitter) account through its followers. Each follower has bio, location, counts, verification and protected status. The list covers followers that X makes visible and may be partial. The counts on each row belong to that follower.

Full API reference: parameters, code samples, response example and health
usernameRequired
X username, optionally prefixed with @, without entering a full profile URL. profile compiles data from author details within recent posts; followers_list and following_list retrieve visible followers and following accounts respectively.
X: Direction of Followers vs. Following — X separately explains who follows you and who you follow, as following does not need to be mutual; protected posts have additional access restrictions. List queries are not bulk-follow actions and do not imply expanded access permissions. · Checked

What do the X (Twitter) following_list parameters mean?

Get the accounts an X (Twitter) user follows, with each one's bio, location, follower and post counts and verification. Following can change at any time and does not prove affinity or interaction.

Full API reference: parameters, code samples, response example and health
usernameRequired
X username, optionally prefixed with @, without entering a full profile URL. profile compiles data from author details within recent posts; followers_list and following_list retrieve visible followers and following accounts respectively.
X: Direction of Followers vs. Following — X separately explains who follows you and who you follow, as following does not need to be mutual; protected posts have additional access restrictions. List queries are not bulk-follow actions and do not imply expanded access permissions. · Checked

What do the X (Twitter) user_media parameters mean?

List the posts from an X (Twitter) account's Media tab by username: the posts that carry photos or videos, newest first. Each post has text, media, like, repost, reply and view counts, post time and author details. About 12 posts per page and the count varies; page on with next_page_token.

Full API reference: parameters, code samples, response example and health
usernameRequired
The account whose photo and video posts you want, such as NASA; a leading @ is removed.
page_tokenOptional
Page token for user_media, user_replies, retweeters, search_communities, community_posts and search_users. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received; the last page has none.

What do the X (Twitter) user_replies parameters mean?

List the posts from an X (Twitter) account's Replies tab by username, newest first. Each post has text, is_reply and reply_to_id, engagement counts, hashtags, mentions and links. Only the account's own posts come back, not the posts they answered. About 30 per page and the count varies; page on with next_page_token.

Full API reference: parameters, code samples, response example and health
usernameRequired
The account whose replies you want, such as NASA; a leading @ is removed.
page_tokenOptional
Page token for user_media, user_replies, retweeters, search_communities, community_posts and search_users. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received; the last page has none.

What do the X (Twitter) retweeters parameters mean?

List the accounts that reposted one X (Twitter) post, from its numeric id. Each account has username, name, follower, following and post counts. About 100 per page; page on with next_page_token. Only the reposts X still shows are listed.

Full API reference: parameters, code samples, response example and health
idRequired
Numeric ID of the post, the digits after /status/ in its link; keep it as a string.
page_tokenOptional
Page token for user_media, user_replies, retweeters, search_communities, community_posts and search_users. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received; the last page has none.
urlOptional
Compatibility input: the post link https://x.com/<username>/status/<ID>; id takes precedence.

What do the X (Twitter) profiles_by_ids parameters mean?

Look up as many as 20 X (Twitter) accounts at once by numeric user ID in user_ids. Each account has username, display name, profile link, location, verification, protected flag, avatar, creation date and account_status. Bio and follower counts are not included; call profile with the returned username for those.

Full API reference: parameters, code samples, response example and health
user_idsRequired
Numeric X user IDs for profiles_by_ids, 1 to 20, as a list or a comma-separated string, such as 44196397,11348282.

What do the X (Twitter) user_about parameters mean?

Read the About this account page of an X (Twitter) user by username: the country the account is based in and whether that is accurate, how it signed up, how many times the username changed and when last, and since when it is verified. Country, sign-up source and last change only appear when X shows them.

Full API reference: parameters, code samples, response example and health
usernameRequired
The account to look up, such as NASA; a leading @ is removed.

What do the X (Twitter) check_follow parameters mean?

Check whether one X (Twitter) account follows another. Pass the possible follower in username and the account to check in target_username; is_following comes back true or false. It reflects the relationship at the time of the call.

Full API reference: parameters, code samples, response example and health
usernameRequired
The account that may be following, such as NASA; a leading @ is removed.
target_usernameRequired
The account check_follow checks against: does username follow it? For example NASAHubble; a leading @ is removed.

What do the X (Twitter) check_retweet parameters mean?

Check whether an X (Twitter) account reposted one post. Pass the account in username and the post's numeric id; is_retweeted comes back true or false. It reflects the reposts X shows at the time of the call.

Full API reference: parameters, code samples, response example and health
usernameRequired
The account to check, such as NASA; a leading @ is removed.
idRequired
Numeric ID of the post, the digits after /status/ in its link; keep it as a string.
urlOptional
Compatibility input: the post link https://x.com/<username>/status/<ID>; id takes precedence.

What do the X (Twitter) community_info parameters mean?

Read one X (Twitter) Community by its numeric community_id: name, description, topic, member count, NSFW flag, banner, creation date and its rules.

Full API reference: parameters, code samples, response example and health
community_idRequired
Numeric Community ID for community_info and community_posts, the digits after /i/communities/ in its link, such as 1508567430188126209.
urlOptional
Compatibility input: the Community link https://x.com/i/communities/<ID>; community_id takes precedence.

What do the X (Twitter) search_communities parameters mean?

Search X (Twitter) Communities by keyword. Each Community has its ID, link, name, topic, member count, NSFW flag and banner. Up to 20 per page; page on with next_page_token.

Full API reference: parameters, code samples, response example and health
keywordRequired
Words to search Community names and topics for, such as crypto or photography.
page_tokenOptional
Page token for user_media, user_replies, retweeters, search_communities, community_posts and search_users. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received; the last page has none.

What do the X (Twitter) search_users parameters mean?

Search X (Twitter) accounts by keyword, as in the People tab: it matches usernames, display names and bios. Each account has bio, avatar, follower, following and post counts, verification and creation date. About 20 per page; page on with next_page_token. Posts are not returned.

Full API reference: parameters, code samples, response example and health
keywordRequired
A topic, name or username to match accounts on, such as ai agents; it returns accounts, not posts.
page_tokenOptional
Page token for user_media, user_replies, retweeters, search_communities, community_posts and search_users. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received; the last page has none.

What do the X (Twitter) video_transcript parameters mean?

Turn the speech in an X (Twitter) video post into text, from the post link or ID. You get the post ID, link, the whole transcript in text and its word_count. There are no per-segment timestamps. A post without a video, or a video where nobody speaks, comes back empty.

Full API reference: parameters, code samples, response example and health
urlRequired
Link to a video post, https://x.com/<username>/status/<ID>, or the numeric post ID.
idOptional
Compatibility input: the numeric post ID; url takes precedence.

What do the X (Twitter) thread parameters mean?

Give one X (Twitter) post link and get the whole thread its author posted, from the first post on, up to 100 posts. Each post has text, media, engagement counts, post time and author details. Replies from other accounts are not included.

Full API reference: parameters, code samples, response example and health
urlRequired
Link to any post in the thread, https://x.com/<username>/status/<ID>, or the numeric post ID.
idOptional
Compatibility input: the numeric post ID; url takes precedence.

What do the X (Twitter) community_posts parameters mean?

Read the latest posts in one X (Twitter) Community by its numeric community_id. Each post has text, media, engagement counts, post time and the author's username and verification. About 20 per page; page on with next_page_token.

Full API reference: parameters, code samples, response example and health
community_idRequired
Numeric Community ID for community_info and community_posts, the digits after /i/communities/ in its link, such as 1508567430188126209.
page_tokenOptional
Page token for user_media, user_replies, retweeters, search_communities, community_posts and search_users. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received; the last page has none.
urlOptional
Compatibility input: the Community link https://x.com/i/communities/<ID>; community_id takes precedence.

What do the X (Twitter) user_reposts parameters mean?

List the posts an X (Twitter) account has reposted, from username, newest repost first. Each row is the original post with its text, author and counts, plus reposted_by and reposted_at. Up to 20 per page; page on with next_page_token.

Full API reference: parameters, code samples, response example and health
usernameRequired
X username, with or without @, or a profile link such as https://x.com/NASA.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Each page holds up to 20 rows and is one call; limit has no effect. Tokens last 24 hours; the last page has no next_page_token.

What do the X (Twitter) list_posts parameters mean?

Read the timeline of an X (Twitter) List by list_id: posts from the List's members, newest first, including posts they reposted. Up to 20 per page; page on with next_page_token.

Full API reference: parameters, code samples, response example and health
list_idRequired
Numeric ID of an X List, the digits after x.com/i/lists/ in its link, such as 84839422, or the whole List link. A List that does not exist or is private returns an empty result, not charged.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Each page holds up to 20 rows and is one call; limit has no effect. Tokens last 24 hours; the last page has no next_page_token.

What do the X (Twitter) quotes parameters mean?

List the posts that quote one X (Twitter) post, from its numeric id or link, newest first, each with text, author and counts. Up to 20 per page; page on with next_page_token.

Full API reference: parameters, code samples, response example and health
idRequired
Numeric post ID, the digits after x.com/<username>/status/, or the post link. A post that does not exist or has no quotes returns an empty result, not charged.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Each page holds up to 20 rows and is one call; limit has no effect. Tokens last 24 hours; the last page has no next_page_token.

What do the X (Twitter) list_members parameters mean?

List the accounts in an X (Twitter) List by list_id, with follower, following and post counts, verification and, when the account has one, affiliation. Up to 20 per page; page on with next_page_token.

Full API reference: parameters, code samples, response example and health
list_idRequired
Numeric ID of an X List, the digits after x.com/i/lists/ in its link, such as 84839422, or the whole List link. A private List cannot be read and returns an empty result, not charged.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Each page holds up to 20 rows and is one call; limit has no effect. Tokens last 24 hours; the last page has no next_page_token.

What do the X (Twitter) list_followers parameters mean?

List the accounts that follow an X (Twitter) List by list_id, with follower, following and post counts and verification. Up to 20 per page; page on with next_page_token.

Full API reference: parameters, code samples, response example and health
list_idRequired
Numeric ID of an X List, the digits after x.com/i/lists/ in its link, such as 84839422, or the whole List link. A private List cannot be read and returns an empty result, not charged.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Each page holds up to 20 rows and is one call; limit has no effect. Tokens last 24 hours; the last page has no next_page_token.

What do the X (Twitter) user_affiliates parameters mean?

List the accounts shown under Affiliates on an organization's X (Twitter) profile, from username, with counts and the affiliation label. Personal accounts have none and return an empty result, not charged. Up to 20 per page; page on with next_page_token.

Full API reference: parameters, code samples, response example and health
usernameRequired
Username of an organization's X account, with or without @, or its profile link. Personal accounts have no affiliates and return an empty result, not charged.
page_tokenOptional
Page token. Leave it out for the first page, then pass back the previous response's next_page_token exactly as received, with the other parameters unchanged. Each page holds up to 20 rows and is one call; limit has no effect. Tokens last 24 hours; the last page has no next_page_token.

What do the X (Twitter) community_members parameters mean?

Read the first screen of an X (Twitter) Community's Members page by community_id: about 20 accounts, admins and moderators first, each with community_role. There is no next page, and no follower counts or bio.

Full API reference: parameters, code samples, response example and health
community_idRequired
Numeric Community ID, the digits after x.com/i/communities/ in its link, or the whole link.

What do the X (Twitter) user_live parameters mean?

Check whether an X (Twitter) account is live right now, in a Space or a video broadcast, from username or user_id. is_live is true or false; when the account is live, you also get live_type (space or broadcast), live_id, title, started_at and url, plus watching_count for video broadcasts.

Full API reference: parameters, code samples, response example and health
user_idOptional
Numeric X user ID, such as the user_id from profile or the id of a followers_list row; it stays the same when the account changes its username. Pass this or username.
usernameOptional
X username, with or without @, or a profile link such as https://x.com/NASA. Pass this or user_id; when both are given, username is used.

What do the X (Twitter) posts_batch parameters mean?

Look up as many as 20 X (Twitter) posts at once from urls, each a post link or numeric post ID. Each post found is one row with the same fields as post, plus input, the entry you sent. Billed per post; posts not found are listed in missed and not charged.

Full API reference: parameters, code samples, response example and health
urlsRequired
The posts to read, as an array of up to 20 entries (not a comma-separated string). Each entry is a post link https://x.com/<username>/status/<ID> or a numeric post ID, and each post can appear only once. Billed per post; posts not found are not charged and are listed in missed.

How to use the X (Twitter) API

  1. 01Choose a platform action from the public catalog.
  2. 02Send the platform, action, and required parameters to POST /api/v1/social.
  3. 03Read the result from the response. For an asynchronous action, poll the returned job ID.
  4. 04Store the response fields that your application needs.
twitter_search.sh
curl -X POST https://api.everyinfra.com/api/v1/social \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform":"twitter","action":"search","params":{"keyword":"<keyword>"}}'

X (Twitter) guides

Worked examples and methods built on these actions. Check the current actions, parameters and fields on this page first; an article's examples and limits do not replace the live catalog.

Build

Multiplatform Reputation Monitoring Blueprint: Define Scope Before Evaluating Negative Shifts

Design a traceable reputation monitoring workflow starting with target lists, comment identities, and incremental cursors; use offline samples to demonstrate deduplication and ingestion gaps while preserving manual review.

Read the article
Build

Unified Data API Getting Started: From Capability Catalog to First Available Result

Access multi-platform data using platform, action, and params: read the capability catalog, complete minimal requests, handle asynchronous tasks, partial results, and billing, and establish traceable data records.

Read the article

X (Twitter) API questions

What can I retrieve with the X (Twitter) API?

Set platform to twitter. The current catalog lists search, profiles, posts by user, post details, comments, and more. These action names identify different X (Twitter) objects or views; they are not interchangeable search modes.

Which input starts the X (Twitter) search request?

X post query string; it may include platform search operators such as from: or since:. For ordering, see sort. Send it as keyword inside params.

Which fields can X (Twitter) search return?

Its declared schema includes text, like_count, retweet_count, and reply_count. A declared field can still be absent from an individual record, and every other action has its own field list.

Does every X (Twitter) action return immediately?

Actions labeled asynchronous return a job ID you poll. posts_batch runs synchronously only: it reads everything it returns (every target of a batch, or every SKU of a product) within the same call, and a request with "mode": "async" gets a 422 before anything is charged. Every other action can also run asynchronously: add "mode": "async" to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

Google Analytics needs consent. Privacy