Extractions
Create extraction
Run an extraction job using one of 23 available tools
POST
Create extraction
1 credit per result extracted · All plans from $0.00012/credit
Headers
string
required
Your API key. Session cookie authentication is also supported.
string
required
Must be
application/json.Body
string
required
Extraction tool to run. See tool types below.
string
Tweet ID to extract from. Required for
reply_extractor, repost_extractor, quote_extractor, thread_extractor, article_extractor.string
X username to extract from. The
@ prefix is automatically stripped if included. Required for follower_explorer, following_explorer, verified_follower_explorer, mention_extractor, post_extractor, user_likes, and user_media.string
Community ID to extract from. Required for
community_extractor, community_moderator_explorer, community_post_extractor, and community_search.string
Search query string. Required for
people_search, community_search, tweet_search_extractor.string
X List ID to extract from. Required for
list_member_extractor, list_post_extractor, list_follower_explorer.string
X Space ID to extract from. Required for
space_explorer.integer
Maximum number of results to extract. When set, extraction stops after reaching this limit instead of fetching all available data. Useful for controlling costs and extracting a specific sample size. Omit to extract all available results.
string
Search sort for
tweet_search_extractor and community_search. Values: Latest, Top. Defaults to Latest for tweet search exports and Top for community search jobs.boolean
Include reply tweets for
post_extractor. Omit or set to false to extract profile posts without replies.Tweet search filters
The following parameters apply only totweet_search_extractor. They are converted to X search operators internally and combined with searchQuery.
string
Filter tweets by author username. Do not include the
@ prefix.string
Filter tweets directed to a specific user.
string
Filter tweets mentioning a specific user.
string
Language code filter (e.g.
en, tr, es, ja).string
Start date in
YYYY-MM-DD format. Only tweets on or after this date are returned.string
End date in
YYYY-MM-DD format. Only tweets before this date are returned.string
Filter by attached media type. Values:
images, videos, gifs, media (any media).integer
Minimum number of likes a tweet must have.
integer
Minimum number of retweets a tweet must have.
integer
Minimum number of replies a tweet must have.
boolean
When
true, only return tweets from verified accounts.string
Control reply inclusion. Values:
include (default), exclude, only.string
Control retweet inclusion. Values:
include (default), exclude, only.string
Exact phrase match. The value is wrapped in quotes and added to the search query (e.g.
"breaking news").string
Comma-separated words to exclude from results. Each word is prefixed with
- in the search query.string
Raw X search operator syntax appended to the query. Use this for operators not covered by the other filter fields (e.g.
filter:links, url:example.com).These filters are ignored for all other tool types. They are converted to X search operators and combined with
searchQuery before execution.Tool types
Each extraction job needs one target field based ontoolType. resultsLimit
works with every type when you want to cap returned rows.
Tweet target
Use
targetTweetId for tweet-centered jobs:article_extractorextracts article content from a tweet.favoritersextracts visible users who liked a post. Liker identities can be unavailable even when the post reports likes.quote_extractorextracts users who quote-tweeted a tweet.reply_extractorextracts users who replied to a tweet.repost_extractorextracts users who retweeted a tweet.thread_extractorextracts all tweets in a thread.
Username target
Use
targetUsername for account-centered jobs:follower_explorerextracts followers of an account.following_explorerextracts accounts followed by a user.mention_extractorextracts tweets mentioning an account.post_extractorextracts posts from an account.user_likesextracts tweets liked by a user.user_mediaextracts media posts from a user.verified_follower_explorerextracts verified followers of an account.
Community target
Use
targetCommunityId for community jobs:community_extractorextracts members of a community.community_moderator_explorerextracts moderators of a community.community_post_extractorextracts posts from a community.community_searchsearches matching posts within that community and also requiressearchQuery.
Search query
Use
searchQuery for keyword jobs:people_searchsearches for users by keyword.tweet_search_extractorsearches and extracts tweets by keyword or hashtag.
List target
Use
targetListId for X List jobs:list_follower_explorerextracts followers of a list.list_member_extractorextracts members of a list.list_post_extractorextracts posts from a list.
Space target
Use
targetSpaceId for Space jobs:space_explorerextracts participants of a Space.
targetSpaceId beside the returned extraction id. Poll
Get Extraction or use
Export Extraction after completion to
read participant user rows.Response
- 202 Accepted
- 400 Invalid input
- 400 Invalid tool type
- 401 Unauthenticated
- 402 Insufficient credits
- 404 Not Found
- 424 X API Dependency Failed
- 429 Rate Limited
string
Unique extraction job ID (UUID).
string
Tool type used for this extraction.
string
Job status.
running when first created.Extraction runs asynchronously. Poll Get Extraction until status is
completed or failed.Run receipt handoff
Treat the202 Accepted body as a run receipt, not as extracted data. Store the
job ID immediately, then poll or list jobs until the job reaches completed or
failed.
Receipt fields
Store
id, toolType, and status. Do not wait for results,
totalResults, createdAt, hasMore, or nextCursor in this response.Poll results
Use Get Extraction with the returned
id
to read job.status, paginated results, hasMore, and nextCursor.Find later
Use List Extractions with
status and
toolType filters when a worker needs to resume from job inventory.Export after completion
Use Export Extraction after the detail
response reports
job.status as completed.Next steps: Get Extraction to retrieve results with pagination, Export Extraction to download as CSV/XLSX/Markdown, or Estimate Extraction to check costs before running.
Last modified on July 16, 2026
Previous
List extractionsRetrieve extraction job history with filtering and cursor-based pagination
Next
Create extraction