I have a Twitter developer account with free access. From my understanding, I’m able to post tweets. But I keep getting an error.
This is the code:
import tweepy, sqlite3 as db, os
# Put your Twitter API keys and stuff here
CONSUMER_KEY = ""
CONSUMER_SECRET = ""
ACCESS_TOKEN = ""
ACCESS_TOKEN_SECRET = ""
auth = tweepy.OAuth1UserHandler(
CONSUMER_KEY,
CONSUMER_SECRET,
ACCESS_TOKEN,
ACCESS_TOKEN_SECRET
)
api = tweepy.API(auth)
This is the error:
tweepy.errors.Forbidden: 403 Forbidden 453 - You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product
I tried to regenerate all keys, but still no help.
You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level
your free tier acces might not include whatever endpoint you're calling.` I't snot saying that the api key is wrong but that it's not enough so regenerating the keys won't change you access level. – Fetter