Endpoint
curl "https://api.twitter.com/2/tweets/search/all" -H "Authorization: Bearer $BEARER_TOKEN"
Response
{
"client_id": "26048529",
"detail": "When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal.",
"registration_url": "https://developer.twitter.com/en/docs/projects/overview",
"title": "Client Forbidden",
"required_enrollment": "Standard Basic",
"reason": "client-not-enrolled",
"type": "https://api.twitter.com/2/problems/client-forbidden"
}
Why I do not expect this response
I do not expect this response because I am using keys and tokens from an app that is attached to a project. See below.
I created my account yesterday so maybe thought it would sort itself out overnight, but no luck.
I’ve also tried to delete and recreate the app, project, and regenerate the bearer token to no avail, eventually hitting the daily limit of new apps.
“Elevated Access” Projects do not have access to hte full archive search endpoint. you need Academic Access instead: Twitter Developer Access - twarc