v6

latestOpenAPI 3.0.0raw.githubusercontent.com2025-03-123918105.6 KB
Data API

Get Search Results

Returns array of tweets provided by Twitter search. Typically Twitter returns ~20 results per page. You can request additional search results by sending another request to the same endpoint using cursor parameter. This endpoint supports all Twitter advanced search operators (to be passed within the 'query' value)

get/twitter/search

Query parameters

querystring required

A UTF-8, URL-encoded search query, including any operators supported by Twitter advanced search

cursorstring

Cursor value obtained from next_cursor response property. Used to retrieve additional pages for the same query

type'Latest' | 'Top'

Search type (Latest for recent tweets or Top for popular tweets). Default - Latest

Response

Request succeeded

next_cursorstring required

Cursor value used to obtain the subsequent page. To be passed to the same endpoint as 'cursor' query parameter. Value may contain spaces and other special characters and therefore must be url-encoded to avoid any errors