I paid for the premium access and I attempting to access data on coverage of natural disaster and twitter users engagement for a class project and it is giving me this error message. I have my bearer token but still do not have access.Please help!!!

This is a screenshot of my paid subscription page

I’d check if the tokens / environment is set up properly in https://developer.twitter.com/en/account/environments

It looks like you named it fullarchivesearch - maybe if the environment or tokens were created for sandbox previously it need to be recreated again for premium?

This should be helpful to see how things should be done in python: GitHub - twitterdev/search-tweets-python: Python client for the Twitter 'search Tweets' and 'count Tweets' endpoints (v2/Labs/premium/enterprise). Now supports Twitter API v2 /recent and /all search endpoints.

2 Likes

Thanks! It works now.I did not set up the environment variable correctly

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.