Skip to main content
The /search-tweets endpoint runs keyword and operator-based queries against the public X (Twitter) search index and returns matching tweets with full author profiles and engagement metrics. For end-to-end usage patterns, query templates, and working code, see the How to Search Tweets via API guide on the blog.

Endpoint

Authentication

Pass your API key in the ApiKey header (case-sensitive).
See Authentication for details.

Request body

Example request

Response

Each tweet includes the full author profile inline. No additional lookup is required to attach user data to tweets.
For the complete field reference, see Response Format.

Query operators

The query field accepts the full set of native X search operators, including:
  • Keywords and exact phrases: "climate change"
  • User filters: from:, to:, @mention
  • Engagement filters: min_faves:, min_retweets:, min_replies:
  • Content filters: filter:media, filter:images, filter:videos, filter:links (prefix with - to exclude)
  • Language and date: lang:en, since:2026-01-01, until:2026-03-01
  • Boolean logic: OR, parentheses for grouping, - for exclusion
Full operator reference: Search Operators.

Pagination

The response includes a next_cursor field. To fetch the next page, send the same request with next_cursor set to that value. When next_cursor is null or absent, the result set is exhausted.
See Pagination for cursor-based pagination patterns and edge cases.

Rate limit

20 requests per second per API key, universal across all plans. Exceeding the limit returns 429 Too Many Requests. See Rate Limits.

Error codes

See Error Codes for the full list.