Skip to main content
GET
Search X/Twitter for tweets matching keywords, hashtags, and advanced search operators. Returns normalized tweet data including user info, engagement metrics, and entities. This endpoint requires Bring Your Own Keys (BYOK) for X/Twitter.
Important Limitations
  • Only tweets from the last ~7 days are available (X API limitation).
  • Default daily limit of 25 calls.
  • BYOK keys for X/Twitter are required.

Header Parameters

Query Parameters

string
required
Keyword search query. Supports X/Twitter search operators (see table below).Examples: ayrshare, #socialmedia, ayrshare OR #socialmedia, from:ayrshare.
string
required
Must be twitter.
integer
default:15
Maximum number of tweets to return. Must be between 10 and 100.
string
Returns tweets with an ID greater than (newer than) this value. Useful for fetching only new tweets since a previous request.
string
Returns tweets with an ID less than (older than) this value. Useful for paginating backwards through results.
string
Pagination token from a previous response’s meta.pagination.next. Use this to fetch the next page of results.

Search Operators

The query parameter supports the following X/Twitter search operators: