X Search API | EveryInfra avatar

X Search API | EveryInfra

Pricing

$8.00 / 1,000 result page events

Go to Apify Store
X Search API | EveryInfra

X Search API | EveryInfra

Perform a keyword X/Twitter search. Retrieve normalized post fields; page result count varies.

Pricing

$8.00 / 1,000 result page events

Rating

0.0

(0)

Developer

ECHO

ECHO

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

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.

Actions

ActionWhat you getRequiredOptionalResults per requestPrice per request
searchSearch 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.keywordsort25 (up to 200)$0.0080

Input

Pick an action and fill the fields it uses. Example:

{
"action": "search",
"keyword": "open source"
}

Fields that another action needs are ignored when left empty. API users can also pass {"action": ..., "params": {...}}.

Output

Each result is one dataset row. Rows keep every field the source page exposes for that action; a field the platform hides or leaves empty for a record is omitted rather than filled with a placeholder. When there is a next page, the run's OUTPUT record holds next_page_token.

  • search: 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

Field notes

  • account_based_in: Country or region where the account is based, as shown on X's "About this account" page (such as United States); absent when X does not show it.
  • account_status: Account status; normally active (another value when banned or deactivated).
  • affiliation: Organization label attached to the account (such as the company name "X" on an employee account); absent when none is attached.
  • author_avatar_url: Link to the author's avatar image (on most platforms the link is signed and expires).
  • author_banner_url: Link to the author's profile banner image.
  • author_media_count: Number of media items the author has posted.
  • author_post_count: Total number of posts by the author.
  • banner_url: Link to the community banner image.
  • bookmark_count: Number of bookmarks (saves).
  • collected_at: Time this record was collected. Trends change fast; use it to judge freshness.
  • community_role: Member's role in the community: Admin (administrator), Moderator or Member (regular member).
  • conversation_id: ID of the conversation thread (the root post ID); replies in the same thread are grouped by it.
  • input: Which item you passed in urls this row corresponds to, returned unchanged (posts_batch).
  • is_following: Whether username follows target_username (check_follow).
  • is_live: Whether the account is live right now (an audio or video Space, or a video broadcast).
  • is_location_accurate: Whether X considers account_based_in accurate (false means a proxy or VPN may have been used).
  • is_nsfw: Whether the community is marked as adult content.
  • is_protected: Whether the account is protected (posts visible to followers only).
  • is_quote: Whether the post is a quote post.
  • is_retweeted: Whether username has reposted this post (check_retweet).
  • last_username_change_at: Time of the latest username change; absent if never changed.
  • links: External links in the text (full expanded URLs).
  • live_id: ID of the Space or broadcast; absent when not live.
  • live_type: Type of live: space (Space) or broadcast (video broadcast); absent when not live.
  • media: Post images and videos: type (photo / video / animated_gif), url (image or video cover), width, height, duration_sec (video seconds), video_url (highest-bitrate mp4).
  • media_count: Number of images and videos the account has posted (retweeters).
  • mentions: Usernames @-mentioned in the text.
  • period: Statistics period.
  • rank: Rank in the trending list.
  • reply_to_user_id: Numeric ID of the user being replied to.
  • reposted_at: Time of the repost. Rows that are not reposts do not have this field.
  • reposted_by: Account (username) that reposted this post; the row itself is the original post that was reposted. Rows that are not reposts do not have this field.
  • retweet_count: Repost count.
  • rules: Community rules (the title of each).
  • signup_source: Where the account was signed up from (such as United States App Store); absent when X does not show it.
  • source: Client used to post (such as Twitter for iPhone); the key is absent when the platform does not provide it.
  • started_at: Time this live started; absent when not live.
  • target_username: The account being checked for being followed (returned unchanged from check_follow).
  • topic: Main topic of the community (such as Finance).
  • username_change_count: Number of times the account has changed its username.
  • verified_since: Time the account first got its verification badge.
  • volume: Discussion volume of the topic.
  • watching_count: Number of people watching; only for video broadcasts, absent for Spaces and when not live.
  • author_bio: The author's profile bio; not returned on some requests.
  • author_created_at: When the author's account was created, ISO 8601 in UTC (for example 2007-12-19T20:20:32+00:00); not returned on some requests.
  • author_following_count: How many accounts the author follows; not returned on some requests.
  • author_is_verified: Whether the author has the blue verified checkmark; not returned on some requests.
  • is_pinned: Whether the post is pinned to the top of the author's profile; not returned on some requests.
  • is_reply: Whether the post is a reply (every comments row is one); not returned on some requests.
  • is_repost: Whether the post is a repost (every user_reposts row is one); not returned on some requests.
  • member_count: Number of members in the community (community_info / search_communities).
  • next_page_token: Page token (user_media / user_replies / retweeters / search_communities / search_users / community_posts): pass it back unchanged as page_token on the next request to get the next page; every row of a page carries the same value; valid for 24 hours. On some requests only the first page comes back and it is null.
  • post_id: ID of the post that was checked (check_retweet).
  • quote_count: Quotes: how many times others have quoted this post in their own posts. null means not disclosed, not 0.
  • reply_to: Username (without @) of the person being replied to; absent when the post is not a reply and on some requests.
  • reply_to_id: ID of the post being replied to; absent when the post is not a reply and on some requests.
  • word_count: Number of words in text, counted by splitting on spaces (video_transcript).

Pricing

Pay per event, charged only when a run delivers data:

  • search: $0.0080, one event per non-empty request, whatever the row count.

Empty or failed requests are never charged. There is no actor-start fee and no per-row fee, and platform usage is included in these prices.

Free trial

The first 3 accepted data requests per Apify account are free across all EveryInfra Actors combined (a lifetime total, not per Actor and not reset). Invalid input does not use a trial; an accepted request that returns no data still does. After that a paid Apify plan is required.

Notes

  • Results reflect what is publicly visible when the run happens; counts can be lower than requested.
  • One run makes one request. For more pages, start another run with page_token where the action supports it.
  • This is an independent Actor. It is not affiliated with, sponsored by, or endorsed by X (Twitter) or its owner; names and trademarks belong to their respective owners.

Support

Open an issue on this Actor's Issues tab with the run ID.