Extractions
Create extraction
Run an extraction job using one of 23 available tools
POST
Create extraction
Documentation Index
Fetch the complete documentation index at: https://docs.xquik.com/llms.txt
Use this file to discover all available pages before exploring further.
1 credit per result extracted · All plans from $0.00012/credit
Headers
Your API key. Session cookie authentication is also supported.
Must be
application/json.Body
Extraction tool to run. See tool types below.
Tweet ID to extract from. Required for
reply_extractor, repost_extractor, quote_extractor, thread_extractor, article_extractor.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.Community ID to extract from. Required for
community_extractor, community_moderator_explorer, community_post_extractor.Search query string. Required for
people_search, community_search, tweet_search_extractor.X List ID to extract from. Required for
list_member_extractor, list_post_extractor, list_follower_explorer.X Space ID to extract from. Required for
space_explorer.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.
Tweet search filters
The following parameters apply only totweet_search_extractor. They are converted to X search operators internally and combined with searchQuery.
Filter tweets by author username. Do not include the
@ prefix.Filter tweets directed to a specific user.
Filter tweets mentioning a specific user.
Language code filter (e.g.
en, tr, es, ja).Start date in
YYYY-MM-DD format. Only tweets on or after this date are returned.End date in
YYYY-MM-DD format. Only tweets before this date are returned.Filter by attached media type. Values:
images, videos, gifs, media (any media).Minimum number of likes a tweet must have.
Minimum number of retweets a tweet must have.
Minimum number of replies a tweet must have.
When
true, only return tweets from verified accounts.Control reply inclusion. Values:
include (default), exclude, only.Control retweet inclusion. Values:
include (default), exclude, only.Exact phrase match. The value is wrapped in quotes and added to the search query (e.g.
"breaking news").Comma-separated words to exclude from results. Each word is prefixed with
- in the search query.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 users who liked a tweet.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.
Search query
Use
searchQuery for keyword jobs:community_searchsearches posts within a community.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.
Response
- 202 Accepted
- 400 Invalid input
- 400 Invalid tool type
- 401 Unauthenticated
- 402 Subscription required
- 404 Not Found
- 424 X API Dependency Failed
- 429 Rate Limited
Unique extraction job ID (UUID).
Tool type used for this extraction.
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 May 20, 2026
Create extraction