maxItemsintegerrequired
Maximum number of tweets to return (1-1000). Billed per returned tweet.
https://api.sandbase.ai/v1/api/twitter/bulk/tweet-searchScrape X (Twitter) tweets from search queries, profiles, lists, and tweet URLs at scale.
Your output will appear here
Complete the inputs, then click Run.
Scrape X (Twitter) tweets from search queries, profiles, lists, and tweet URLs at scale.
Start building
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/twitter/bulk/tweet-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{}
SANDBASE_JSON
)
printf '%s\n' "$result"Set your SandBase API key in your server environment. Requests use Bearer authentication.
export SANDBASE_API_KEY="YOUR_API_KEY"Keep your key on the server. Do not expose it in browser code.
maxItemsintegerrequiredMaximum number of tweets to return (1-1000). Billed per returned tweet.
endstringReturns tweets sent before the given date.
sortstringSorts search results. If you are getting low results, try Top instead of Latest. Latest + Top runs both simultaneously to maximize results but may return some duplicate tweets.
Possible values: Top, Latest, Latest + Top
startstringReturns tweets sent after the given date.
authorstringReturns tweets sent by the given user. It should be a Twitter (X) Handle.
geocodestringReturns tweets sent by users located within a given radius of the given latitude/longitude.
inReplyTostringReturns tweets that are replies to the given user. It should be a Twitter (X) Handle.
onlyImagebooleanIf selected, only returns tweets that contain images.
onlyQuotebooleanIf selected, only returns tweets that are quotes.
onlyVideobooleanIf selected, only returns tweets that contain videos.
startUrlsarrayTwitter (X) URLs. Paste the URLs and get the results immediately. Tweet, Profile, Search or List URLs are supported.
mentioningstringReturns tweets mentioning the given user. It should be a Twitter (X) Handle.
searchTermsarraySearch terms you want to search from Twitter (X). You can refer to https://github.com/igorbrigadir/twitter-advanced-search.
withinRadiusstringReturns tweets sent within the given radius of the given location.
geotaggedNearstringReturns tweets sent near the given location.
placeObjectIdstringReturns tweets tagged with the given place.
tweetLanguagestringRestricts tweets to the given language, given by an ISO 639-1 code.
Possible values: ab, aa, af, ak, sq, am, ar, an, hy, as, av, ae, ay, az, bm, ba, eu, be, bn, bi, bs, br, bg, my, ca, ch, ce, ny, zh, cu, cv, kw, co, cr, hr, cs, da, dv, nl, dz, en, eo, et, ee, fo, fj, fi, fr, fy, ff, gd, gl, lg, ka, de, el, kl, gn, gu, ht, ha, he, hz, hi, ho, hu, is, io, ig, id, ia, ie, iu, ik, ga, it, ja, jv, kn, kr, ks, kk, km, ki, rw, ky, kv, kg, ko, kj, ku, lo, la, lv, li, ln, lt, lu, lb, mk, mg, ms, ml, mt, gv, mi, mr, mh, mn, na, nv, nd, nr, ng, ne, no, nb, nn, ii, oc, oj, or, om, os, pi, ps, fa, pl, pt, pa, qu, ro, rm, rn, ru, se, sm, sg, sa, sc, sr, sn, sd, si, sk, sl, so, st, es, su, sw, ss, sv, tl, ty, tg, ta, tt, te, th, bo, ti, to, ts, tn, tr, tk, tw, ug, uk, ur, uz, ve, vi, vo, wa, cy, wo, xh, yi, yo, za, zu
minimumRepliesintegerReturns tweets with at least the given number of replies.
twitterHandlesarrayTwitter handles that you want to search on Twitter (X)
conversationIdsarrayConversation IDs that you want to search on Twitter (X)
minimumRetweetsintegerReturns tweets with at least the given number of retweets.
onlyTwitterBluebooleanIf selected, only returns tweets by users who are Twitter Blue subscribers.
minimumFavoritesintegerReturns tweets with at least the given number of favorites.
onlyVerifiedUsersbooleanIf selected, only returns tweets by users who are verified.
includeSearchTermsbooleanIf selected, a field will be added to each tweets about the search term that was used to find it.
Saved example response for this API; no live request is made when viewing it.
No saved response has been published. Run the API in Playground to inspect its response.
Explore more
| API | Price | Response |
|---|---|---|
Tweet SearchThis API Twitter | From $0.0006 per call | Async JSON |
X (Twitter) | From $0.00054 per call | JSON |
X (Twitter) | From $0.0001 per call | JSON |
X (Twitter) | From $0.0036 per call | JSON |
X (Twitter) | From $0.003 per call | JSON |
X (Twitter) | From $0.00045 per call | JSON |
Guides:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared
Questions
Send a POST request to https://api.sandbase.ai/v1/api/twitter/bulk/tweet-search with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
From $0.0006 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.
Required: maxItems (integer). Optional: end (string), sort (one of Top, Latest, Latest + Top), start (string), author (string), geocode (string) and inReplyTo (string) and 18 more. The Parameters table and the Playground on this page list every field.
A JSON result. This endpoint runs asynchronously, so the response tells you how to fetch the finished result.
No. Tweet Search runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Twitter API access separately.