Twitter-API-v2-sample-code icon indicating copy to clipboard operation
Twitter-API-v2-sample-code copied to clipboard

Error adding rules: 403 Forbidden 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.

Open tangorishi opened this issue 1 year ago • 1 comments

Describe the bug Stream encountered HTTP error: 403 HTTP error response text: {"client_id":"*******","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":"Appropriate Level of API Access","reason":"client-not-enrolled","type":"https://api.twitter.com/2/problems/client-forbidden"}

To Reproduce install kafka-pyhton-ng use bearer token from twitter developer account run the python codebase

Expected behavior it should fetch the tweets with the entered # but it is not doing that

tangorishi avatar Jul 01 '24 06:07 tangorishi

@tangorishi, I just faced a similar issue. Depending on the package, some endpoints are not available. Since you mentioned Kafka, you will need $45K a month for that 🍭

tsotetsi avatar Apr 23 '25 13:04 tsotetsi