Extractions
Twitter Scraping Cost Estimator & Credit Quote
Estimate API credits before exporting tweet searches, replies, followers, following, profiles, communities, or lists. Plan every extraction before it starts.
- 200
- 400
- 401
- 402
- 404
- 429
POST
Twitter Scraping Cost Estimator & Credit Quote
Free - does not consume credits
Estimate Twitter API Scraping Cost
Request a free credit quote before starting any extraction. The response estimates results and required credits. It also checks your available credit balance. A quote never starts a scraping job. Use the same request fields for estimation and extraction. KeeptoolType, target fields, filters, and resultsLimit unchanged. This pairing makes the API cost estimate useful during approval and budgeting.
Match Each Scraping Task
Choose the tool matching the tweets, profiles, or members you need.
Other supported tools estimate likes, media, mentions, quotes, reposts, threads, Spaces, and articles. Use their matching target fields below.
Control the Credit Quote
SetresultsLimit when you need a smaller export. The estimator caps estimatedResults at that limit. It then adjusts creditsRequired for the capped result count.
Narrow tweet search estimates with dates, authors, languages, engagement thresholds, or media filters. Reuse those filters when creating the extraction. Changed filters can produce a different estimate.
The source field explains the result-count signal. Examples include followers, following, posts, replyCount, quoteCount, retweetCount, and resultsLimit. Save this field beside the credit quote.
Read the Estimate
Check these response fields before creating the extraction:estimatedResultsprojects the matching tweets, replies, profiles, or members.creditsRequiredstates the projected credit charge.creditsAvailablestates the current balance.allowedconfirms whether that balance covers the estimate.sourceidentifies the signal behind the projected result count.
allowed is false, reduce the requested result count. You can also narrow filters or add credits. Request another quote before creating the extraction.
Headers
string
required
Your API key. Session cookie authentication is also supported. Generate a key from the dashboard.
string
required
Must be
application/json.Body
string
required
Extraction tool to run or estimate. See the endpoint’s tool list.
Single Targets
string
Tweet ID for a tweet-centered extraction.
string
Username for an account-centered extraction. You may include
@.string
Community ID for a community extraction.
string
List ID for a list extraction.
string
Space ID for
space_explorer.string
Query for
tweet_search_extractor or community_search.Collection Targets
string[]
Process 1-10,000 Tweet IDs in one collection job.
string[]
Process 1-100 unique usernames in one collection job.
string[]
Process 1-100 unique community IDs in one collection job.
string[]
Process 1-100 unique List IDs in one collection job.
string[]
Process 1-100 unique search queries in one collection job.
array
Process up to 10,000 mixed targets with automatic routing.
{ "kind": "...", "value": "..." }.
array
Process up to 100 profile relations in one collection job.
{ "relation": "...", "value": "..." }.
Collection Controls
string
Search ranking:
Latest, Top, or Both. Defaults to Latest.integer
Stop after this many results. Omit it to collect all available results.
integer
Maximum results collected for each target. Minimum:
1.integer
Reply pages collected per target. Range:
1-1,000.string
Resume one reply target from this cursor.
boolean
Merge duplicates across targets. Defaults to
true.string
Duplicate handling:
none, first, or merge.boolean
Use
dedupeMode=merge. Defaults to false.boolean
Add matched search terms to collection metadata. Defaults to
false.boolean
Add source target metadata to each result. Defaults to
true.Reply Collection
string
Strategy:
auto, complete, direct, search, or thread.string
Reply scope:
all, direct, or nested. Defaults to all.integer
Maximum nested reply depth. Minimum:
1.string
Order:
relevance, latest, oldest, or likes.boolean
Exclude replies from the source author. Defaults to
false.boolean
Include the source post. Defaults to
false.boolean
Return only replies with media. Defaults to
false.string | integer
Reply start time as ISO 8601 or Unix seconds.
string | integer
Reply end time as ISO 8601 or Unix seconds.
Tweet Result Filters
integer
Minimum Tweet view count.
integer
Minimum Tweet bookmark count.
integer
Maximum Tweet like count.
integer
Maximum Tweet repost count.
integer
Maximum Tweet reply count.
integer
Maximum Tweet quote count.
boolean
Return only Blue-verified Tweet authors. Defaults to
false.string
Match the Tweet card name.
string
Match the source application.
string
Exclude a source application.
string
Match latitude, longitude, and radius.
string
Return Tweets newer than this Tweet ID.
string
Return Tweets older than this Tweet ID.
string
Match a place name.
string
Set the radius for
near.string
Match Tweets inside a recent time window.
boolean
Return only native reposts. Defaults to
false.boolean
Enable safe search. Defaults to
false.boolean
Return only news results. Defaults to
false.Profile Result Filters
integer
Minimum profile follower count.
integer
Maximum profile follower count.
integer
Minimum profile following count.
integer
Maximum profile following count.
integer
Minimum profile post count.
integer
Maximum profile post count.
integer
Minimum profile age in days.
string
Match the exact profile verification type.
boolean
Require a profile website. Defaults to
false.boolean
Require a profile location. Defaults to
false.string
Require bio terms separated by commas or lines.
string
Require matching profile location text.
string
Require matching username text.
Tweet Search Filters
These fields apply totweet_search_extractor.
string
Match an author username without
@.string
Match replies sent to a username.
string
Match Tweets mentioning a username.
string
Match a language code, such as
en.string
Include Tweets on or after
YYYY-MM-DD.string
Include Tweets before
YYYY-MM-DD.string
Media:
images, videos, gifs, media, links, or none.integer
Minimum like count.
integer
Minimum repost count.
integer
Minimum reply count.
integer
Minimum quote count.
boolean
Return only verified authors.
string
Reply mode:
include, exclude, or only.string
Repost mode:
include, exclude, or only.string
Quote mode:
include, exclude, or only.string
Match one exact phrase.
string
Exclude words or quoted phrases.
string
Match any listed word or quoted phrase.
string
Match hashtags separated by spaces, commas, or lines.
string
Match cashtags separated by spaces, commas, or lines.
string
Match a URL substring or domain.
string
Match a conversation ID.
string
Return only replies to this Tweet ID.
string
Return only quotes of this Tweet ID.
string
Return only reposts of this Tweet ID.
string
Search within a List ID.
string
Search within a place ID.
string
Search within a country code.
string
Set a geographic center and radius.
string
Set a geographic bounding box.
string
Append raw advanced search syntax.
Response
200 OK
boolean
Whether the extraction can proceed given the current credit balance.
string
Data source used for the estimate. One of:
followers, following, paginationCap, posts, quoteCount, replyCount, resultsLimit, retweetCount, unknown.number
Estimated number of results the extraction will return.
string
Credits this extraction will consume (stringified integer).
string
Credits currently available in your balance (stringified integer).
string
Resolved X user ID when
targetUsername was provided. Omitted for non-user-based tools.allowed is false, credits required exceed the available balance:
400 Invalid input
toolType and the corresponding target field are present.
400 Invalid tool type
toolType value is not one of the 23 supported tools.
401 Unauthenticated
402 Insufficient credits
no_subscription, subscription_inactive, no_credits, and insufficient_credits.
404 Not Found
429 Rate Limited
Retry-After value before requesting another estimate.
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. This prevents avoidable credit errors. If
allowed is false, Create Extraction returns 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.
- 200
- 400
- 401
- 402
- 404
- 429
Twitter Scraping Cost Estimator & Credit Quote