Comparing X API’s hide replies endpoints

The v2 hide replies endpoint is replacing the Labs hide replies endpoint. If you have code, apps, or tools that use the Labs version of this endpoint, and are considering migrating to the newer X API v2 endpoint, then this guide is for you.

In order to use the new X API v2 (including the hide replies endpoint), you will need to opt in to the new developer portal, create a Project, and add an App to that Project. You can then use the credentials associated with that App to make requests to the hide replies endpoint. Adding the same App that’s enrolled for the Labs v2 hide replies endpoint will keep your users authenticated.

The following table compares the differences between Labs and the newer X API v2 endpoint:  

DescriptionLabs v2X API v2
Host domainhttps://api.x.comhttps://api.x.com
Endpoint path/labs/2/tweets/:id/hidden/2/tweets/:id/hidden
AuthenticationOAuth 1.0a User contextOAuth 1.0a User context
HTTP methods supportedPUTPUT
Default request rate limits10 requests per 15 minutes (shared across all authenticated users)50 requests per 15 min (for each authenticated user)
Can hide replies✔︎✔︎
Can unhide a previously hidden reply✔︎✔︎
Can hide or unhide replies multiple times✔︎✔︎
Requires the use of credentials from a developer App associated with a project

Other migration resources

X API migration hub