1 credit per result extracted · All plans from $0.00012/credit
curl -X POST https://xquik.com/api/v1/extractions \
-H "x-api-key: xq_YOUR_KEY_HERE" \
-H "Content-Type: application/json" \
-d '{
"toolType": "reply_extractor",
"targetTweetId": "1893704267862470862"
}' | jq
Your API key. Session cookie authentication is also supported.
Must be application/json.
Body
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.
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.
The following parameters apply only to tweet_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.
Each tool type requires a specific target field.
Tool Type Required Field Description article_extractortargetTweetIdExtract article content from a tweet community_extractortargetCommunityIdExtract members of a community community_moderator_explorertargetCommunityIdExtract moderators of a community community_post_extractortargetCommunityIdExtract posts from a community community_searchsearchQuerySearch posts within a community favoriterstargetTweetIdExtract users who liked a tweet follower_explorertargetUsernameExtract followers of an account following_explorertargetUsernameExtract accounts followed by a user list_follower_explorertargetListIdExtract followers of a list list_member_extractortargetListIdExtract members of a list list_post_extractortargetListIdExtract posts from a list mention_extractortargetUsernameExtract tweets mentioning an account people_searchsearchQuerySearch for users by keyword post_extractortargetUsernameExtract posts from an account quote_extractortargetTweetIdExtract users who quote-tweeted a tweet reply_extractortargetTweetIdExtract users who replied to a tweet repost_extractortargetTweetIdExtract users who retweeted a tweet space_explorertargetSpaceIdExtract participants of a Space thread_extractortargetTweetIdExtract all tweets in a thread tweet_search_extractorsearchQuerySearch and extract tweets by keyword or hashtag user_likestargetUsernameExtract tweets liked by a user user_mediatargetUsernameExtract media posts from a user verified_follower_explorertargetUsernameExtract verified followers of an account
Response
Unique extraction job ID (UUID).
Tool type used for this extraction.
Job status. running when first created.
{
"id" : "a1b2c3d4-e5f6-7890-abcd-ef1234567890" ,
"toolType" : "reply_extractor" ,
"status" : "running"
}
Extraction runs asynchronously. Poll Get Extraction until status is completed or failed. { "error" : "invalid_input" , "message" : "Missing or malformed request body" }
Request body is missing or malformed. Ensure all required fields are present. { "error" : "invalid_tool_type" , "message" : "Unrecognized tool type" }
The toolType value is not one of the 23 supported tools. See tool types . { "error" : "unauthenticated" , "message" : "Missing or invalid API key" }
Missing or invalid API key. { "error" : "no_subscription" , "message" : "No active subscription" }
No active subscription or usage limit reached. Possible error values: no_subscription, subscription_inactive, usage_limit_reached. { "error" : "tweet_not_found" , "message" : "Tweet not found" }
The target tweet does not exist, was deleted, or the ID is invalid. { "error" : "user_not_found" , "message" : "X user not found" }
The target user does not exist or is suspended. { "error" : "x_api_unavailable" , "message" : "X data source temporarily unavailable" }
The X data source is temporarily unavailable. Retry with exponential backoff.