Comparing X API’s Post counts endpoints
The v2 Post counts endpoint will eventually replace the enterprise Search API’s counts endpoint. If you have code, apps, or tools that use an older version of a Post counts endpoint and are considering migrating to the newer X API v2 endpoints, then this guide is for you.Recent Post counts comparison
The enterprise version of the Post counts endpoints allow you to pull counts for either 30 days or from the full-archive. Therefore, the v2 recent Post counts endpoint, which looks at a 7 day time period, is not a direct replacement for either of the aforementioned endpoints. However, to help with comparisons, we will look at how the v2 recent Post counts endpoint compares to the enterprise 30-day endpoint. The following table compares the various types of recent Post counts endpoints:Full-archive Post counts comparison
The following table compares the various types of full-archive search endpoints:Filtering operator comparison
The two different versions (enterprise, and v2) of Post counts 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. All enterprise operators are available to all enterprise users.
- Core: These operators are available to any v2 user.
- Advanced: These operators are only available to users that have been approved for Academic Research access.
Other migration resources
X API migration hub
Check out some sample code for these endpoints
Post counts: Enterprise to X API v2