GET /twitter/tweet/advanced_search

Changed on

Advanced search for tweets.Each page returns up to 20 replies(Sometimes less than 20,because we will filter out ads or other not tweets).

Request

  • Base URL
    https://api.twitterapi.io
  • URL
    https://api.twitterapi.io/twitter/tweet/advanced_search
  • Auth
    API key in header X-API-Key

Query parameters

querystring string required

The query to search for.eg. "AI" OR "Twitter" from:elonmusk since_time:1776045662 until_time:1776081762 .please don't use since:2021-12-31_23:59:59_UTC and until:2021-12-31_23:59:59_UTC, it's not supported now!!! Get more examples from https://github.com/igorbrigadir/twitter-advanced-search Useful operators: from:username (tweets by one account), since_id:TWEET_ID (only tweets newer than that ID; handy for polling an account without re-fetching tweets you already have), since_time:UNIX_SECONDS / until_time:UNIX_SECONDS (time window), -filter:replies (exclude replies). Example: from:NASA -filter:replies since_id:2117252866503290905 .

queryType'Latest' | 'Top' required

The query type to search for.eg. "Latest" OR "Top"

cursorstring string

The cursor to paginate through the results. First page is "".

Response

Tweets response

has_next_pageboolean required

Indicates if there are more results available

next_cursorstring required

Cursor for fetching the next page of results

Changes