# X (Twitter) API

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.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "twitter", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/twitter-api](https://everyinfra.com/en/twitter-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### 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.
- Sync delivery · Price: $0.79 per 1,000 requests
- Catalog 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.
- Parameters:
  - `keyword` (required): X post query string; it may include platform search operators such as from: or since:. For ordering, see sort.
  - `sort` (optional): Ordering preference. latest asks for the newest posts first; X returns Top results by default, and latest does not guarantee strictly chronological results.
- Returns fields: 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, 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
- Capability page: [https://everyinfra.com/en/twitter-api/search](https://everyinfra.com/en/twitter-api/search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/search.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `username` (required): 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.
- Returns fields: user_id, username, display_name, bio, url, follower_count, following_count, post_count, is_verified, location, avatar_url, created_at, platform
- Capability page: [https://everyinfra.com/en/twitter-api/profile](https://everyinfra.com/en/twitter-api/profile?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/profile.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- 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.
- Parameters:
  - `username` (required): 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.
- Returns fields: 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, 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
- Capability page: [https://everyinfra.com/en/twitter-api/user_posts](https://everyinfra.com/en/twitter-api/user_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/user_posts.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `id` (required): 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.
  - `tweet_id` (optional): Compatibility input for id, with lower precedence than id, which does not replace the required public id field.
  - `limit` (optional): 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.
- Returns fields: 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, 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
- Capability page: [https://everyinfra.com/en/twitter-api/post](https://everyinfra.com/en/twitter-api/post?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/post.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- Catalog 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.
- Parameters:
  - `id` (required): 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.
  - `page_token` (optional): 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_id` (optional): Compatibility input for id, with lower precedence than id, which does not replace the required public id field.
- Returns fields: 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, 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
- Capability page: [https://everyinfra.com/en/twitter-api/comments](https://everyinfra.com/en/twitter-api/comments?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/comments.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `country` (optional): Region code for trending, with world as the global default. Supports us, ca, mx, uk/gb, fr, de, it, es, pt, nl, dk, at, be, ch, gr, ru, tr, kr, sg, id, ph, vn, th, au, il, ae, sa, ar, br, eg, ng, ke, za, jp, and some English country names. Unrecognized inputs return the global ranking.
  - `limit` (optional): 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.
- Returns fields: id, name, url, rank, volume, period, collected_at, platform
- Capability page: [https://everyinfra.com/en/twitter-api/trending](https://everyinfra.com/en/twitter-api/trending?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/trending.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests (every 200 rows count as one call)
- 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.
- Parameters:
  - `username` (required): 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.
- Returns fields: id, username, url, name, text, location, avatar_url, follower_count, following_count, post_count, is_verified, is_protected, created_at, platform
- Capability page: [https://everyinfra.com/en/twitter-api/followers_list](https://everyinfra.com/en/twitter-api/followers_list?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/followers_list.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests (every 200 rows count as one call)
- 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.
- Parameters:
  - `username` (required): 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.
- Returns fields: id, username, url, name, text, location, avatar_url, follower_count, following_count, post_count, is_verified, is_protected, created_at, platform
- Capability page: [https://everyinfra.com/en/twitter-api/following_list](https://everyinfra.com/en/twitter-api/following_list?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/following_list.md)

### 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`.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each 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.
- Parameters:
  - `username` (required): The account whose photo and video posts you want, such as `NASA`; a leading @ is removed.
  - `page_token` (optional): 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.
- Returns fields: next_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
- Capability page: [https://everyinfra.com/en/twitter-api/user_media](https://everyinfra.com/en/twitter-api/user_media?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/user_media.md)

### 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`.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each 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.
- Parameters:
  - `username` (required): The account whose replies you want, such as `NASA`; a leading @ is removed.
  - `page_token` (optional): 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.
- Returns fields: next_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
- Capability page: [https://everyinfra.com/en/twitter-api/user_replies](https://everyinfra.com/en/twitter-api/user_replies?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/user_replies.md)

### 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.
- Sync delivery · Price: $0.81 per 1,000 requests
- Each 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.
- Parameters:
  - `id` (required): Numeric ID of the post, the digits after /status/ in its link; keep it as a string.
  - `page_token` (optional): 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.
  - `url` (optional): Compatibility input: the post link https://x.com/<username>/status/<ID>; `id` takes precedence.
- Returns fields: media_count, next_page_token, id, username, url, name, text, follower_count, following_count, post_count, platform
- Capability page: [https://everyinfra.com/en/twitter-api/retweeters](https://everyinfra.com/en/twitter-api/retweeters?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/retweeters.md)

### 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.
- Sync delivery · Price: $0.81 per 1,000 requests (every 20 rows count as one call)
- 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.
- Parameters:
  - `user_ids` (required): Numeric X user IDs for `profiles_by_ids`, 1 to 20, as a list or a comma-separated string, such as `44196397,11348282`.
- Returns fields: user_id, username, display_name, url, location, is_verified, is_protected, affiliation, avatar_url, created_at, account_status, platform
- Capability page: [https://everyinfra.com/en/twitter-api/profiles_by_ids](https://everyinfra.com/en/twitter-api/profiles_by_ids?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/profiles_by_ids.md)

### 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.
- Sync delivery · Price: $0.81 per 1,000 requests
- Parameters:
  - `username` (required): The account to look up, such as `NASA`; a leading @ is removed.
- Returns fields: user_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
- Capability page: [https://everyinfra.com/en/twitter-api/user_about](https://everyinfra.com/en/twitter-api/user_about?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/user_about.md)

### 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.
- Sync delivery · Price: $0.81 per 1,000 requests
- Parameters:
  - `username` (required): The account that may be following, such as `NASA`; a leading @ is removed.
  - `target_username` (required): The account `check_follow` checks against: does `username` follow it? For example `NASAHubble`; a leading @ is removed.
- Returns fields: username, target_username, is_following, platform
- Capability page: [https://everyinfra.com/en/twitter-api/check_follow](https://everyinfra.com/en/twitter-api/check_follow?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/check_follow.md)

### 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.
- Sync delivery · Price: $0.81 per 1,000 requests
- Parameters:
  - `username` (required): The account to check, such as `NASA`; a leading @ is removed.
  - `id` (required): Numeric ID of the post, the digits after /status/ in its link; keep it as a string.
  - `url` (optional): Compatibility input: the post link https://x.com/<username>/status/<ID>; `id` takes precedence.
- Returns fields: username, post_id, is_retweeted, platform
- Capability page: [https://everyinfra.com/en/twitter-api/check_retweet](https://everyinfra.com/en/twitter-api/check_retweet?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/check_retweet.md)

### 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.
- Sync delivery · Price: $0.81 per 1,000 requests
- Parameters:
  - `community_id` (required): Numeric Community ID for `community_info` and `community_posts`, the digits after /i/communities/ in its link, such as `1508567430188126209`.
  - `url` (optional): Compatibility input: the Community link https://x.com/i/communities/<ID>; `community_id` takes precedence.
- Returns fields: id, url, name, description, topic, member_count, is_nsfw, banner_url, created_at, rules, platform
- Capability page: [https://everyinfra.com/en/twitter-api/community_info](https://everyinfra.com/en/twitter-api/community_info?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/community_info.md)

### 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`.
- Sync delivery · Price: $0.81 per 1,000 requests
- 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.
- Parameters:
  - `keyword` (required): Words to search Community names and topics for, such as `crypto` or `photography`.
  - `page_token` (optional): 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.
- Returns fields: id, url, name, topic, member_count, is_nsfw, banner_url, platform, next_page_token
- Capability page: [https://everyinfra.com/en/twitter-api/search_communities](https://everyinfra.com/en/twitter-api/search_communities?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/search_communities.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- 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.
- Parameters:
  - `keyword` (required): A topic, name or username to match accounts on, such as `ai agents`; it returns accounts, not posts.
  - `page_token` (optional): 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.
- Returns fields: next_page_token, id, username, url, name, text, avatar_url, follower_count, following_count, post_count, is_verified, created_at, platform
- Capability page: [https://everyinfra.com/en/twitter-api/search_users](https://everyinfra.com/en/twitter-api/search_users?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/search_users.md)

### 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.
- Sync delivery · Price: $0.96 per 1,000 requests
- Parameters:
  - `url` (required): Link to a video post, https://x.com/<username>/status/<ID>, or the numeric post ID.
  - `id` (optional): Compatibility input: the numeric post ID; `url` takes precedence.
- Returns fields: id, url, text, word_count
- Capability page: [https://everyinfra.com/en/twitter-api/video_transcript](https://everyinfra.com/en/twitter-api/video_transcript?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/video_transcript.md)

### 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.
- Sync delivery · Price: $2.15 per 1,000 requests
- Catalog 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.
- Parameters:
  - `url` (required): Link to any post in the thread, https://x.com/<username>/status/<ID>, or the numeric post ID.
  - `id` (optional): Compatibility input: the numeric post ID; `url` takes precedence.
- Returns fields: 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, 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
- Capability page: [https://everyinfra.com/en/twitter-api/thread](https://everyinfra.com/en/twitter-api/thread?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/thread.md)

### 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`.
- Sync delivery · Price: $0.81 per 1,000 requests
- 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.
- Parameters:
  - `community_id` (required): Numeric Community ID for `community_info` and `community_posts`, the digits after /i/communities/ in its link, such as `1508567430188126209`.
  - `page_token` (optional): 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.
  - `url` (optional): Compatibility input: the Community link https://x.com/i/communities/<ID>; `community_id` takes precedence.
- Returns fields: next_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
- Capability page: [https://everyinfra.com/en/twitter-api/community_posts](https://everyinfra.com/en/twitter-api/community_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/community_posts.md)

### 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`.
- Sync delivery · Price: $0.56 per 1,000 requests
- 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.
- Parameters:
  - `username` (required): X username, with or without @, or a profile link such as https://x.com/NASA.
  - `page_token` (optional): 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`.
- Returns fields: 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, 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
- Capability page: [https://everyinfra.com/en/twitter-api/user_reposts](https://everyinfra.com/en/twitter-api/user_reposts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/user_reposts.md)

### 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`.
- Sync delivery · Price: $0.56 per 1,000 requests
- 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.
- Parameters:
  - `list_id` (required): 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_token` (optional): 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`.
- Returns fields: 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, 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
- Capability page: [https://everyinfra.com/en/twitter-api/list_posts](https://everyinfra.com/en/twitter-api/list_posts?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/list_posts.md)

### 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`.
- Sync delivery · Price: $0.56 per 1,000 requests
- 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.
- Parameters:
  - `id` (required): 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_token` (optional): 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`.
- Returns fields: 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, 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
- Capability page: [https://everyinfra.com/en/twitter-api/quotes](https://everyinfra.com/en/twitter-api/quotes?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/quotes.md)

### 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`.
- Sync delivery · Price: $0.56 per 1,000 requests
- 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.
- Parameters:
  - `list_id` (required): 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_token` (optional): 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`.
- Returns fields: id, username, url, name, text, location, avatar_url, follower_count, following_count, post_count, is_verified, is_protected, created_at, platform, media_count, affiliation
- Capability page: [https://everyinfra.com/en/twitter-api/list_members](https://everyinfra.com/en/twitter-api/list_members?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/list_members.md)

### 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`.
- Sync delivery · Price: $0.56 per 1,000 requests
- 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.
- Parameters:
  - `list_id` (required): 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_token` (optional): 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`.
- Returns fields: id, username, url, name, text, location, avatar_url, follower_count, following_count, post_count, is_verified, is_protected, created_at, platform, media_count
- Capability page: [https://everyinfra.com/en/twitter-api/list_followers](https://everyinfra.com/en/twitter-api/list_followers?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/list_followers.md)

### 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`.
- Sync delivery · Price: $0.56 per 1,000 requests
- 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.
- Parameters:
  - `username` (required): 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_token` (optional): 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`.
- Returns fields: id, username, url, name, text, location, avatar_url, follower_count, following_count, post_count, is_verified, is_protected, created_at, platform, media_count, affiliation
- Capability page: [https://everyinfra.com/en/twitter-api/user_affiliates](https://everyinfra.com/en/twitter-api/user_affiliates?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/user_affiliates.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- 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.
- Parameters:
  - `community_id` (required): Numeric Community ID, the digits after x.com/i/communities/ in its link, or the whole link.
- Returns fields: id, username, url, name, avatar_url, is_verified, is_protected, community_role, platform
- Capability page: [https://everyinfra.com/en/twitter-api/community_members](https://everyinfra.com/en/twitter-api/community_members?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/community_members.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests
- Parameters:
  - `user_id` (optional): 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`.
  - `username` (optional): 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.
- Returns fields: id, username, is_live, live_type, live_id, title, started_at, watching_count, url, platform
- Capability page: [https://everyinfra.com/en/twitter-api/user_live](https://everyinfra.com/en/twitter-api/user_live?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/user_live.md)

### 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.
- Sync delivery · Price: $0.56 per 1,000 requests (each element in urls counts as one call)
- Parameters:
  - `urls` (required): 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`.
- Returns fields: 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, 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
- Capability page: [https://everyinfra.com/en/twitter-api/posts_batch](https://everyinfra.com/en/twitter-api/posts_batch?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/twitter-api/posts_batch.md)

## 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.

### Does X (Twitter) have an official API?

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).

Official sources (checked 2026-10-16): [X API pricing](https://docs.x.com/x-api/getting-started/pricing) · [X API: getting access](https://docs.x.com/x-api/getting-started/getting-access)

### Do I need a X (Twitter) developer account or API key?

No. Requests go through EveryInfra with an EveryInfra API key: sign up, create a key in the console and send it as `Authorization: Bearer <API_KEY>`. You do not register a X (Twitter) developer app, apply for X (Twitter) API access or sign in with a X (Twitter) account, and the actions return public X (Twitter) data only.

### How much does the X (Twitter) API cost per 1,000 requests?

each action's price is listed in the table on this page and in the public catalog. There is no subscription: you top up a USD balance and pay per call, and failed calls and empty results are not charged.

### 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.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=twitter
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
