Skip to main content
This guide walks you through making your first full-archive search request to find Posts from the complete X archive, dating back to March 2006.
Full-archive search requires Self-serve or Enterprise access. Upgrade your access to use this endpoint.
PrerequisitesBefore you begin, you’ll need:
  • A developer account
  • Your App’s Bearer Token (found in the Developer Console under “Keys and tokens”)

Step 1: Build a query

Full-archive search supports all query operators. Build queries the same way as recent search:
Full-archive search supports queries up to 1,024 characters (4,096 for Enterprise).

Step 2: Set a time range

By default, results return Posts from the last 30 days. Use start_time and end_time to search specific periods:

Step 3: Make a request

cURL

Step 4: Review the response

Posts created before the edit feature was introduced (September 2022) won’t include edit_history_tweet_ids.

Step 5: Add fields and expansions

Request additional data with query parameters:
cURL

Step 6: 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


Common parameters


Next steps

Build a query

Master query syntax and operators

Operator reference

See all available operators

Pagination guide

Handle large result sets

API Reference

Full endpoint documentation