Skip to main content

Comparing X API’s Search Posts endpoints

The v2 Search Tweets endpoint will eventually replace the standard v1.1 search/posts endpoint and enterprise Search API. If you have code, apps, or tools that use an older version of a X search endpoint and are considering migrating to the newer X API v2 endpoints, then this guide is for you.

Recent search comparison

The following table compares the various types of recent search endpoints:

Full-archive search comparison

The following table compares the various types of full-archive search endpoints: Filtering operator comparison The four different versions (standard, enterprise, and v2) of search Posts differ in which operators are available, and also have varying levels of operator availability within each version, which are explained below. Enterprise
  • There are no sub-tiers of enterprise operators
X API v2
  • Self-serve: Available when using any Project
  • Enterprise: Available when using a Project
You can learn more about each of these sets of operators in their respective guides: Now that we understand the different operator levels within X API v2, here is the table that maps out operator availability for search Posts (note that if the cell is left blank, the operator is not available): Other migration resources X API migration hub Check out some sample code for these endpoints Search Posts: Standard v1.1 to X API v2 Search Posts: Enterprise to X API v2