Extractions
Estimate extraction
Get a cost estimate before running an extraction job
POST
Estimate 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.
Free - does not consume credits
Headers
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
Must be
application/json.Body
The request body accepts the same fields as Create Extraction, including all 16 tweet search filter parameters. OnlytoolType and the corresponding target field are required for the estimate.
Extraction tool to estimate. One of:
article_extractor, community_extractor, community_moderator_explorer, community_post_extractor, community_search, favoriters, follower_explorer, following_explorer, list_follower_explorer, list_member_extractor, list_post_extractor, mention_extractor, people_search, post_extractor, quote_extractor, reply_extractor, repost_extractor, space_explorer, thread_extractor, tweet_search_extractor, user_likes, user_media, verified_follower_explorer.Tweet ID to estimate. Required for
reply_extractor, repost_extractor, quote_extractor, thread_extractor, article_extractor.X username to estimate. Required for
follower_explorer, following_explorer, verified_follower_explorer, mention_extractor, post_extractor, user_likes, and user_media.Community ID to estimate. Required for
community_extractor, community_moderator_explorer, community_post_extractor.Search query to estimate. Required for
people_search, community_search, tweet_search_extractor.X List ID to estimate. Required for
list_member_extractor, list_post_extractor, list_follower_explorer.X Space ID to estimate. Required for
space_explorer.Maximum number of results to extract. When set, the estimate caps
estimatedResults to this value and adjusts projected usage accordingly. Useful for previewing the cost of a partial extraction.Response
- 200 OK
- 400 Invalid input
- 400 Invalid tool type
- 401 Unauthenticated
- 402 Insufficient credits
- 404 Not Found
- 429 Rate Limited
Whether the extraction can proceed given the current credit balance.
Data source used for the estimate. One of:
followers, following, paginationCap, posts, quoteCount, replyCount, resultsLimit, retweetCount, unknown.Estimated number of results the extraction will return.
Credits this extraction will consume (stringified integer).
Credits currently available in your balance (stringified integer).
Resolved X user ID when
targetUsername was provided. Omitted for non-user-based tools.allowed is false, credits required exceed the available balance:Decision handoff
Treat the200 OK response as a planning checkpoint, not a running extraction. Store the estimate with the request you plan to run:
Allowed run
When
allowed is true, send the same toolType, target fields, filters, and resultsLimit to Create Extraction. Store the returned job ID from that 202 Accepted receipt.Blocked run
When
allowed is false, lower resultsLimit, narrow the target or filters, or add credits before calling Create Extraction.Source signal
Store
source so operators know whether the estimate came from replyCount, followers, resultsLimit, paginationCap, or another supported signal.Audit fields
Store
estimatedResults, creditsRequired, creditsAvailable, allowed, and source with the planned extraction request.Always call this endpoint before running an extraction to avoid hitting credit limits. If
allowed is false, the corresponding Create Extraction request will return a 402 error. Check your current usage on the dashboard.Next steps: Create Extraction to start an extraction, or Extraction Workflow Guide for the full flow.
Last modified on May 20, 2026
Estimate extraction