Skip to main content
This guide walks you through making your first recent search request to find Posts from the last 7 days.
PrerequisitesBefore you begin, you’ll need:
  • A developer account with an approved App
  • Your App’s Bearer Token (found in the Developer Console under “Keys and tokens”)

Build a query

Search queries use operators to match Posts. Start with a simple keyword:
Or combine multiple operators:
This matches Posts containing “python” in English, excluding retweets.
See the full operator reference for all available options.

Make a request

cURL

Review the response

The default response includes id, text, and edit_history_tweet_ids:

Add fields and expansions

Request additional data with query parameters:
cURL
Response:

Paginate through results

The SDKs handle pagination automatically. For cURL, use the next_token from the response:

Pagination guide

Learn more about navigating large result sets

Example queries


Next steps

Build a query

Master query syntax and operators

Operator reference

See all available operators

Full-archive search

Search the complete Post archive

API Reference

Full endpoint documentation