I am encountering a notification while authenticating requests to the Twitter API v2 endpoints.
{
client_id: 'xxxxxxx',
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'
}
I am using the free tier. Please guide me on how to resolve this!
I use the code snippet here.
2
Answers
As documented in this latest summary of Twitter API the Free tier doesn’t allow fetching tweets which seems to be what you are trying to do.
You’ll need at least the Basic access tier which isn’t free. You can subscribe to it in your Dashboard in the Developer Portal i.e. https://developer.twitter.com/en/portal/dashboard
You need to have a Project and your app should be in that Project. The app should only use the V2 API for everything except media upload and the v1.1 Oauth as other v1.1 APIs are no longer available.
It’s worth having a look at the latest announcements on the Twitter Developer Forum so that you are up-to-date with the current requirements for consuming Twitter APIs.
Also the forum is currently flooding with questions about migrating to the latest tiers, the V2 API and dealing with the technical glitches that seem to occur on Twitter developer accounts, so for many issues there may already be solutions or at least useful hints. The Twitter Developer Forum main page: https://twittercommunity.com/
Yes, now for the free account, it is only allowed to
It is not allowed to get the tweets info.
For more details, refer to the official document