tweetapi.dev

Search

Operators, products and limits.

GET /v1/tweets/search?q=... runs X advanced search. q accepts the operators from the x.com search box.

Operators that work

OperatorExampleMeaning
from:from:xtweets by an account
to:to:xreplies to an account
@@xmentions
since: until:since:2026-09-01 until:2026-09-17date range, UTC
min_faves: min_retweets: min_replies:min_faves:100engagement floor
-filter:repliesno replies
filter:links filter:media filter:images filter:videosonly tweets with that content
lang:lang:delanguage
"...""exact phrase"phrase
OR - ()(cat OR dog) -filter:retweetsboolean
url:url:github.comlink domain

Products

productReturnsCredits
Latest (default)tweets, newest first1 per tweet
Peopleprofiles1 per profile
Toptweets by relevance1 per tweet
Photos, Videostweets with that media1 per tweet

Top is not served to every reading session at X. When it is not available the API answers 403 product_unavailable and charges nothing. Latest is always available.

Limits

  • Up to 50 tweets per page. Use cursor for more.
  • Search results are cached for 60 seconds. A repeated query within that window costs half.
  • Deleted, protected and age-restricted tweets do not appear.

On this page