Recent search

Returns Posts from the last 7 days that match a search query.

The recent search endpoint allows you to programmatically retrieve filtered public posts from the past week. It is accessible to all developers with a developer account who are using keys and tokens from an app within a project. You can authenticate requests using OAuth 1.0a User Context, OAuth 2.0 App-Only, or OAuth 2.0 Authorization Code with PKCE. However, to access private metrics or distinguish between organic and promoted metrics in post results, you must use OAuth 1.0a User Context or OAuth 2.0 Authorization Code with PKCE and provide user Access Tokens associated with the user who published the content. This endpoint can return up to 100 posts per request in reverse-chronological order. Pagination tokens are available to navigate through large datasets. For projects with regular access, you can use the basic set of operators and make queries up to 512 characters long. Projects with Enterprise Access can utilize additional operators and create queries up to 4096 characters long.

GET/2/tweets/search/recent
curl --request GET  
--url https://api.xcraper.com/2/tweets/search/recent 
--header 'Authorization: Bearer <token>'