ScrapeTwitter
Tweets

Advanced Search

Search tweets using Twitter's advanced search operators

GET /twitter/tweet/advanced_search

Query Parameters

ParameterTypeRequiredDescription
qstringYesSearch query (supports advanced operators)
productenumNoLatest (default) or Top
cursorstringNoPagination cursor

Query Examples

  • from:elonmusk — tweets from elonmusk
  • "AI" OR "crypto" from:elonmusk — tweets containing AI or crypto
  • from:elonmusk since:2024-01-01 — tweets since Jan 1, 2024
  • to:elonmusk — tweets replying to elonmusk
  • #crypto min_faves:100 — tweets with at least 100 likes

See full list of operators: Twitter Advanced Search

Response

{
  "query": "from:0xsweep",
  "tweet_count": 20,
  "has_more": true,
  "next_cursor": "DAABCgABG...",
  "tweets": [
    {
      "type": "tweet",
      "id": "2015410770834591992",
      "url": "https://x.com/0xsweep/status/2015410770834591992",
      "text": "Thread on the latest memecoin trends...",
      "retweetCount": 12,
      "replyCount": 5,
      "likeCount": 89,
      "quoteCount": 3,
      "viewCount": 4500,
      "createdAt": "Sun Jan 25 13:05:46 +0000 2026",
      "author": {
        "userName": "0xsweep",
        "name": "Sweep",
        "followers": 15000,
        "isBlueVerified": true
      }
    }
  ]
}

Example

# Latest tweets
curl "https://api.scrapetwitter.com/twitter/tweet/advanced_search?q=from:elonmusk&product=Latest"

# Top tweets
curl "https://api.scrapetwitter.com/twitter/tweet/advanced_search?q=from:elonmusk&product=Top"

# With pagination
curl "https://api.scrapetwitter.com/twitter/tweet/advanced_search?q=from:elonmusk&cursor=DAABCgABG..."

On this page