-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 #58
Comments
I have found the issue. I got this error because although I had the Twitter developer App, but it was a STANDALONE app without attaching to any projects. |
Hi! i have the same error, how can i attach an app to a project? thanks |
In the developer dashboard, you should be able to create a Project and add an App. Do you have an approved developer account with access to the dashboard? |
My app is already attached to a project, any ideas as to why it's happening still ? This is only happening with the TweetCount script but other scripts work just fine. |
Hello, even we are facing a similar issue but on v2/search/all. We do have a premium subscription for Full Archive. |
Hi, I have my app inside a project still facing the same error. Could anyone please help? |
Hey, in my case, the reason was Full Archive in v2 is available only Academic Research. You can use 1.1v for Full Archive Search |
Hey , I have academic access ..... I too got same error.....anyone knows why? |
@blhprasanna99 Hi, did you find where the problem is? I also have academic access and got this problem... |
@Jerry-Liu-dot Hi, I have the same problem despite having academic access. Did you find the problem? |
Hello!!.....I checked and got academic access again . I was able to complete the work by following the below code |
I am having the same issue accessing It seems that Essential Access is not enough and you'll get the following error: {
"client_id": "20012345",
"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"
} It seems in my case Extended Access is required to access the endpoint. |
@csalmeida you need Academic access to call the full archive search ( |
@blhprasanna99 hey please tell me how you have solved it. |
@ajeetlabs .. I used the code from the link. Please make sure that you got academic research access. You can retrieve the data using that code if you have correct access. |
This error is back again. My app is already attached to a project but still throwing this error. |
Happened to me to today too. I had to regenerate all my keys and tokens. |
Did that resolve the issue on your end? Mine is still has the same error even after deleting the app and project and creating a new one. |
Sorry to hear that. Yes, in my case if did fix the issue. |
Great to know. Are you using a new account or still using the old plans like Essentials and others? |
I've had my Developer account since mid-2022. I currently have the Free plan. Before that, I also had the most basic plan (Essential). I've never had to send a request for Elevated or Academic access. |
Thank you. I'm experiencing the issue with the new account I've created. My old account with essential plan is working just fine. |
hello |
From the python example supplied in this repo: response = requests.get( Fails...despite the bearer token being valid. |
Hi I am facing similar issues.
"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." Thank you all |
Forgot to add, I have regenerated all the keys and it made no difference i.e. cat post a tweet but can't RT a tweet |
Can't believe this... I stil can't use the API for this issue, |
you need subscription to be able to use the API... |
fuck...ing elon and his games.. took me days and still problems. |
Have you tried paying $40,000 or whatever the hell gets you the super duper ultra API subscription? |
It appears twitter has locked this behind Pro. I have tested Basic and it does not work. Can someone confirm if this works with Pro? |
Still with the same issue: I think they want us to subscribe for the 40K package ...! |
so after a lot of thinking and coffee and reading the docs I got it to work if you have the free v2 package then you only have 3 of the APIs available as of Oct 2023:
For the /u/users/me and free package that I wanted to use, it doesn't take the BEARER token / App Only Auth but it requires you to sign with the Access Token in the request, I followed the code in example repo given by GitHub where you have to give you secret key and client ID. Hope this helps |
I can confirm it working just fine with pro... |
thats so sad :( |
@shivam017arora where does it say in their documentation that free tier doesn't give access to other endpoints? |
that's so bad, thanks a lot for sharing! you saved me many hours |
I'm trying to build a real-time twitter retweeting bot that is listening to another account, but if there are any keywords in the tweet that are part of my exclusion list, it won't retweet those tweets. Can I do that with the free version? |
Hi, I have the same error. I have a maven project. When I want to get user with user id from twitter api v2 I am getting this error "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." I have project and I have a app which attached with this project but still I am getting this error. How can I solve this error ? Note: I have a free developer account. |
after buy basic plan,i try to delete my app and project, and then it work. |
Yes that is the solution. When I pass the basic plan, that error is solved. Thanks for everythink. |
I have this problem, if you find a way, pls tell me |
I have this proble, and cannot handle that. please give me clue. |
If we want to use free accesss, not basic, how ca we handle this error?, it just solve with basic account? |
Now, both basic and professional subscriptions are not working. You must use an enterprise subscription to use it, which is $42000 a month. Praise Elon Musk |
It's crazy. What another platfrom you suggest to use instead Twitter?, For my research in Ph.d I need to extract people's experiences in specific city by considering the location?, |
Twitter Team , just remove the free tier when its complete useless . |
Yeah same problem. It drove me crazy trying to figure out what's wrong. |
If not supported for free plan, please remove not to abstract... |
Hi I have signed up for free access and I get the error 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. I could see a default project and app has been create for the same. The key and tokens being used are from the default project. Cant figure out why it is still throwing up |
I have this issue even though I paid $5,000/month for a Pro subscription.!!! Fuck elon!! |
Describe the bug
Cannot get rules (HTTP 403): {"client_id":"xxxxx","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"}
To Reproduce
The text was updated successfully, but these errors were encountered: