Giter Site home page Giter Site logo

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 about twitter-api-v2-sample-code HOT 176 CLOSED

twitterdev avatar twitterdev commented on September 28, 2024 10
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

from twitter-api-v2-sample-code.

Comments (176)

mariem-snoussi avatar mariem-snoussi commented on September 28, 2024 70

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.

from twitter-api-v2-sample-code.

yeatfaicheong avatar yeatfaicheong commented on September 28, 2024 30

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.
So, creating a project first and then link to the app is essential to use Twitter API v2.

from twitter-api-v2-sample-code.

Rushipatel0995 avatar Rushipatel0995 commented on September 28, 2024 30

Hi, I have my app inside a project still facing the same error. Could anyone please help?

from twitter-api-v2-sample-code.

kylanoneal avatar kylanoneal commented on September 28, 2024 22

If your project has "free access" you can only use these endpoints:

  • POST /2/tweets
  • DELETE /2/tweets/:id
  • GET /2/users/me

from twitter-api-v2-sample-code.

rico0610 avatar rico0610 commented on September 28, 2024 20

This error is back again. My app is already attached to a project but still throwing this error.

from twitter-api-v2-sample-code.

mumanye avatar mumanye commented on September 28, 2024 17

Hate to be the bearer of bad news but Elon made the free tier practically useless the only thing you can do is post.

from twitter-api-v2-sample-code.

Ganymede23 avatar Ganymede23 commented on September 28, 2024 8

If your project has "free access" you can only use these endpoints:

* POST /2/tweets

* DELETE /2/tweets/:id

* GET /2/users/me

@maymonms

from twitter-api-v2-sample-code.

ricardoborsato avatar ricardoborsato commented on September 28, 2024 7

I'm also facing this annoying issue.
Anyone who actually figured out how to fix could give a light?
My app is properly attached to the properly project and tried to regenerate the tokens multiple times.

from twitter-api-v2-sample-code.

rapmd73 avatar rapmd73 commented on September 28, 2024 7

I am in the same boat as RezaOBD.

I use very limited features that now are longer work and I'm not paying $100 a month to Twitter just to support their greed. The free services don't work at all for even the basic of tools. I use this information for my own open source project and it simply doesn't generate the revenue to afford this kind of expense.

If you have an educational project or you give your work away, Twitter is clearly no longer interested in you even being a part of their community. It's a sad shame but I guess the reality of what happens when greed takes over.

Clearly another case demonstrating how open source is not free to develop, with very little support coming in from the community. I can't really blame people in the community for not supporting it right now just because of the economic situations that people are living in. Too bad Twitter prizes agreed more than the community.

It's taking me close to 6 hours to figure that sound going from scratch. Hopefully, The time I spent in this will help somebody else avoid the headache all together.

Please forgive any rambling, I'm just frustrated with the amount time that I put into this, when Twitter could have made it much easier in a documentation simply by saying that they were no longer supporting the free services. This really is the truth of the matter simply because there's not really much you can do on a free account anymore at all.

from twitter-api-v2-sample-code.

sriharigr-threado avatar sriharigr-threado commented on September 28, 2024 6

Hello, even we are facing a similar issue but on v2/search/all. We do have a premium subscription for Full Archive.

from twitter-api-v2-sample-code.

HRK44 avatar HRK44 commented on September 28, 2024 6

Yeah the docs are outdated and confusing. It looks like Filtered Stream API is now only available at enterprise level.

https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-level

Yes I think you're correct, let's fork $42,000/month to get filtered stream.... I guess it's time to scrap twitter

from twitter-api-v2-sample-code.

al2m4n avatar al2m4n commented on September 28, 2024 6

Yeah the docs are outdated and confusing. It looks like Filtered Stream API is now only available at enterprise level.
https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-level

Yes I think you're correct, let's fork $42,000/month to get filtered stream.... I guess it's time to scrap twitter

Is he thinking of covering all SpaceX costs via Twitter? crazy, I'm in with Scrape.

from twitter-api-v2-sample-code.

aseprite1 avatar aseprite1 commented on September 28, 2024 6

I'm in the same boat with @xiaoshengaimm
I'm on the basic 100$ plan and I'm getting the same error when I recreate the bot, I'm using tweepy and I've had the problem since this morning.
when using GET /2/users/:id/following, an error occured.

from twitter-api-v2-sample-code.

renlong avatar renlong commented on September 28, 2024 6

Me too. We paid 5000$ still have this error.
using GET /2/users/:id/following

from twitter-api-v2-sample-code.

tavoohoh avatar tavoohoh commented on September 28, 2024 5

My account is not free tier and still does not work. Here's is the Curl I'm trying:

curl --request GET \
  --url 'https://api.twitter.com/2/tweets/search/stream?q=search' \
  --header 'Authorization: Bearer <my_bearer_token>'

And the response:

{
	"client_id": "<my_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"
}

The client id is the same as my app, and the app is inside a project. I already tried to regenerate the credentials. Still can't make it work.

imagen

from twitter-api-v2-sample-code.

andypiper avatar andypiper commented on September 28, 2024 3

@csalmeida you need Academic access to call the full archive search (/2/tweets/search/all) endpoint.

from twitter-api-v2-sample-code.

rico0610 avatar rico0610 commented on September 28, 2024 3

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.

from twitter-api-v2-sample-code.

AminAlam avatar AminAlam commented on September 28, 2024 3

Same problem with legacy free plan bot. It was working until yesterday.

Twitter API v2 - Tweepy 4.14.0

from twitter-api-v2-sample-code.

Kuzuto avatar Kuzuto commented on September 28, 2024 3

I'm trying to create a twitter bot that retweets from a specific user but also has to look through a keyword exclusion list.

Will that bot not work based on Twitter's new API rules?

Nope

from twitter-api-v2-sample-code.

Justxd22 avatar Justxd22 commented on September 28, 2024 2

@rico0610 /2/users/me the one that worked for me, I'm trying to use the filtered stream endpoint no luck :( and I've deleted my project 3 times I've to wait 24h before creating one again

from twitter-api-v2-sample-code.

Ganymede23 avatar Ganymede23 commented on September 28, 2024 2

Hello @Ganymede23 can you please verify by sharing the source of the endpoints available with free access ?

If you have a Developer account and head over to this link (https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api) and then click on 'Getting Started' under any of the access levels, it'll show you a list of the endpoints available for said access level.
You can also access that by going to the Developer Portal > Products > Twitter API v2. At the bottom of that page, it'll say 'Free features' or 'Basic features' depending on your access level.
Here is a screenshot of the Free Access endpoints I just took: https://imgur.com/a/dIcAg9H

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.

How did you fixed this issue, only creating new project and app worked for you or something else you tried with that.

All I did was regenerate all my keys and tokens. It worked for me, but not for the rest of the people here who tried that. Bear in mind that I have my account and my project since mid-2022. Someone here noted that their new account has this issue, while their old account from 2022 or earlier was still working fine.

from twitter-api-v2-sample-code.

bZverok avatar bZverok commented on September 28, 2024 2

it is all about the plans
image

from twitter-api-v2-sample-code.

Velkonost avatar Velkonost commented on September 28, 2024 1

hello
I regenerated too but didn't help

from twitter-api-v2-sample-code.

HRK44 avatar HRK44 commented on September 28, 2024 1

I'm using basic tier (paid one) and still facing this issue, any hints on how to fix it? Maybe I'll just contact twitter support

from twitter-api-v2-sample-code.

Justxd22 avatar Justxd22 commented on September 28, 2024 1

I think any endpoints that uses bearer_token doesn't work

from twitter-api-v2-sample-code.

kylanoneal avatar kylanoneal commented on September 28, 2024 1

Yeah the docs are outdated and confusing. It looks like Filtered Stream API is now only available at enterprise level.

https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-level

from twitter-api-v2-sample-code.

trimtechnologies avatar trimtechnologies commented on September 28, 2024 1

I have tried all suggestions, yet the error still persist. If anyone who successfully implemented this could help, it will be appreciated. I have an urgent work on this. Kindly help.

from twitter-api-v2-sample-code.

RezaODB avatar RezaODB commented on September 28, 2024 1
  • I have a free tier account since 2009 and only need to read timelines of users.
  • Rolling back to the v1.1 API worked for me for a few weeks but it's now down since this morning.
  • I have been looking for a work around for hours, but failed :(
  • The answer given by the API is simply misleading and wrong: "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."
  • The documentation is outdated and confusing too.
  • 100 $ / month to access the timeline of a user is a big NO.
  • Conclusion: goodbye Twitter

from twitter-api-v2-sample-code.

growNeha avatar growNeha commented on September 28, 2024 1

Figures it out. The Free plan now only supports managing tweets and user lookup. Readings tweets is all paid now.

Screenshot 2023-06-17 at 7 48 30 AM

from twitter-api-v2-sample-code.

tangmengqiu avatar tangmengqiu commented on September 28, 2024 1

Free plan only supports: create/delete tweets and /me.
Basic plan supports search recent, but search all is not.
This picture is the Basic plan:
image
https://developer.twitter.com/en/portal/products/basic

from twitter-api-v2-sample-code.

brandon-yilmaz avatar brandon-yilmaz commented on September 28, 2024

Hi! i have the same error, how can i attach an app to a project? thanks

from twitter-api-v2-sample-code.

andypiper avatar andypiper commented on September 28, 2024

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?

from twitter-api-v2-sample-code.

sriharigr-threado avatar sriharigr-threado commented on September 28, 2024

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

from twitter-api-v2-sample-code.

blhprasanna99 avatar blhprasanna99 commented on September 28, 2024

Hey , I have academic access ..... I too got same error.....anyone knows why?

from twitter-api-v2-sample-code.

jiarui-liu avatar jiarui-liu commented on September 28, 2024

@blhprasanna99 Hi, did you find where the problem is? I also have academic access and got this problem...

from twitter-api-v2-sample-code.

tipu-254 avatar tipu-254 commented on September 28, 2024

@Jerry-Liu-dot Hi, I have the same problem despite having academic access. Did you find the problem?

from twitter-api-v2-sample-code.

blhprasanna99 avatar blhprasanna99 commented on September 28, 2024

@blhprasanna99 Hi, did you find where the problem is? I also have academic access and got this problem...

Hello!!.....I checked and got academic access again . I was able to complete the work by following the below code
https://github.com/jdfoote/Intro-to-Programming-and-Data-Science/blob/fall2021/extra_topics/twitter_v2_example.ipynb

from twitter-api-v2-sample-code.

csalmeida avatar csalmeida commented on September 28, 2024

I am having the same issue accessing https://api.twitter.com/2/tweets/search/all.

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.

from twitter-api-v2-sample-code.

ajeetlabs avatar ajeetlabs commented on September 28, 2024

@blhprasanna99 Hi, did you find where the problem is? I also have academic access and got this problem...

Hello!!.....I checked and got academic access again . I was able to complete the work by following the below code https://github.com/jdfoote/Intro-to-Programming-and-Data-Science/blob/fall2021/extra_topics/twitter_v2_example.ipynb

@blhprasanna99 hey please tell me how you have solved it.

from twitter-api-v2-sample-code.

blhprasanna99 avatar blhprasanna99 commented on September 28, 2024

@blhprasanna99 Hi, did you find where the problem is? I also have academic access and got this problem...

Hello!!.....I checked and got academic access again. I was able to complete the work by following the below code https://github.com/jdfoote/Intro-to-Programming-and-Data-Science/blob/fall2021/extra_topics/twitter_v2_example.ipynb

@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.
I

from twitter-api-v2-sample-code.

Ganymede23 avatar Ganymede23 commented on September 28, 2024

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.

from twitter-api-v2-sample-code.

Ganymede23 avatar Ganymede23 commented on September 28, 2024

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.

from twitter-api-v2-sample-code.

rico0610 avatar rico0610 commented on September 28, 2024

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?

from twitter-api-v2-sample-code.

Ganymede23 avatar Ganymede23 commented on September 28, 2024

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.
I did get my App 'banned' a few days ago without explanation (apparently lots of people had that issue last week), so I had to create it again. But that was it.

from twitter-api-v2-sample-code.

rico0610 avatar rico0610 commented on September 28, 2024

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. I did get my App 'banned' a few days ago without explanation (apparently lots of people had that issue last week), so I had to create it again. But that was it.

Thank you. I'm experiencing the issue with the new account I've created. My old account with essential plan is working just fine.

from twitter-api-v2-sample-code.

Uncle-Enzo avatar Uncle-Enzo commented on September 28, 2024

From the python example supplied in this repo:

response = requests.get(
"https://api.twitter.com/2/tweets/search/stream/rules", auth=bearer_oauth

Fails...despite the bearer token being valid.

from twitter-api-v2-sample-code.

Kellogs avatar Kellogs commented on September 28, 2024

Hi

I am facing similar issues.

  1. Created a New Account for Free API Access
  2. It automatically creates and binds it to a project name (not of my choosing, no option to add/edit existing project but I can see it) e.g. I can see at the top "Default project-165131599485..."
  3. Can post a Tweet with no issue, so my keys are clearly working (using Tweepy 'response = client.create_tweet(text=tweet_text)'
  4. however if I try RT a tweet using 'client.retweet(tweetid)' I receive the same message (below)?

"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

from twitter-api-v2-sample-code.

Kellogs avatar Kellogs commented on September 28, 2024

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

from twitter-api-v2-sample-code.

mariuszwieleba-toast avatar mariuszwieleba-toast commented on September 28, 2024

I have two apps one is around one year old and one is a new one, for the old one everything works fine but for the new one I have an 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.'

from twitter-api-v2-sample-code.

Justxd22 avatar Justxd22 commented on September 28, 2024

i've the same issue new project/app i can't access the api

from twitter-api-v2-sample-code.

Justxd22 avatar Justxd22 commented on September 28, 2024

i've the same issue new project/app i can't access the api

EDIT: making new app fixed it but not all endpoints work :/

from twitter-api-v2-sample-code.

rico0610 avatar rico0610 commented on September 28, 2024

i've the same issue new project/app i can't access the api

EDIT: making new app fixed it but not all endpoints work :/

Interesting. I did try this before but did not work. Will try it again today and update here

from twitter-api-v2-sample-code.

rico0610 avatar rico0610 commented on September 28, 2024

Still not working for me. What endpoints are working for you?

from twitter-api-v2-sample-code.

Justxd22 avatar Justxd22 commented on September 28, 2024

@kylanoneal is essential means free access? It says here that stream endpoint works with essential access

from twitter-api-v2-sample-code.

Ganymede23 avatar Ganymede23 commented on September 28, 2024

@kylanoneal is essential means free access? It says here that stream endpoint works with essential access

I think that the 'Essential' and 'Elevated' levels of access were discontinued and replaced by Free, Basic and Enterprise. I'm not sure about Academic, though.

from twitter-api-v2-sample-code.

Justxd22 avatar Justxd22 commented on September 28, 2024

Well should stream endpoint work with free access? The docs are outdated

@kylanoneal is essential means free access? It says here that stream endpoint works with essential access

I think that the 'Essential' and 'Elevated' levels of access were discontinued and replaced by Free, Basic and Enterprise. I'm not sure about Academic, though.

from twitter-api-v2-sample-code.

Justxd22 avatar Justxd22 commented on September 28, 2024

Yeah the docs are outdated and confusing. It looks like Filtered Stream API is now only available at enterprise level.
https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-level

Yes I think you're correct, let's fork $42,000/month to get filtered stream.... I guess it's time to scrap twitter

Is he thinking of covering all SpaceX costs via Twitter? crazy, I'm in with Scrape.

Lol,
stweet good place to start scrapping but it's limited :/

from twitter-api-v2-sample-code.

maymonms avatar maymonms commented on September 28, 2024

Is there any endpoint that works with 'Free access'. Can someone please give the curl command for running it?
Since the documentation is out of place, we are not sure which endpoint works.

from twitter-api-v2-sample-code.

Justxd22 avatar Justxd22 commented on September 28, 2024

@rico0610 /2/users/me the one that worked for me, I'm trying to use the filtered stream endpoint no luck :( and I've deleted my project 3 times I've to wait 24h before creating one again

@maymonms

from twitter-api-v2-sample-code.

bsturkar avatar bsturkar commented on September 28, 2024

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.

How did you fixed this issue, only creating new project and app worked for you or something else you tried with that.

from twitter-api-v2-sample-code.

trimtechnologies avatar trimtechnologies commented on September 28, 2024

Guys, I am faced with this same issue.
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 created a new project and App, yet there is no difference. Please help.

from twitter-api-v2-sample-code.

Husseinelghoul avatar Husseinelghoul commented on September 28, 2024

Hello @Ganymede23 can you please verify by sharing the source of the endpoints available with free access ?

from twitter-api-v2-sample-code.

linliyuan avatar linliyuan commented on September 28, 2024

Same!Has anyone tested paid use?
image

from twitter-api-v2-sample-code.

Machzy avatar Machzy commented on September 28, 2024

I'm getting the same error and I've regenerated all my tokens

from twitter-api-v2-sample-code.

ighodgao avatar ighodgao commented on September 28, 2024

Same issue here, on basic plan and using bearer token to fetch recent tweets (past 7 days only). Any help would be appreciated!

from twitter-api-v2-sample-code.

tavoohoh avatar tavoohoh commented on September 28, 2024

Same issue, account recently created

from twitter-api-v2-sample-code.

Prozi avatar Prozi commented on September 28, 2024

Hello @Ganymede23 can you please verify by sharing the source of the endpoints available with free access ?

If you have a Developer account and head over to this link (https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api) and then click on 'Getting Started' under any of the access levels, it'll show you a list of the endpoints available for said access level.

Correct. Currently my Free Tier has:
Access to Twitter API v2 | ✔️ (Only Tweet creation)
Access to standard v1.1 | ✔️ (Only Media Upload and statuses/update and Login With Twitter)

So like @mumanye said

Hate to be the bearer of bad news but Elon made the free tier practically useless the only thing you can do is post.

I am glad I came here after trying to make it work for few hours 🙈

from twitter-api-v2-sample-code.

ZSET0682 avatar ZSET0682 commented on September 28, 2024

https://github.com/twitterdev/Twitter-API-v2-sample-code/blob/main/Recent-Search/recent_search.py
https://github.com/twitterdev/Twitter-API-v2-sample-code/blob/main/Manage-Tweets/create_tweet.py
Im using basic access and what could possibly be the problem if the two examples above work fine and there doesn't seem to be any issue with my token? i can't understand what is wrong.

from twitter-api-v2-sample-code.

connorsaunders avatar connorsaunders commented on September 28, 2024

Hi everyone,
I am experiencing this issue as well with my new account/bot, however, my legacy bot has access to streaming still (made in ~2021). I'm assuming that any new accounts will not have access to streaming on the free plan while the legacy ones will eventually get phased out. I am not paying on my old bot.

from twitter-api-v2-sample-code.

Phel54 avatar Phel54 commented on September 28, 2024

Facing the same issue, Mine was working until this week, regenerated all keys but nothing happened. Is it because is a free plan. I am trying to get resource on this endpoint: https://api.twitter.com/2/users/by/username/${user_name}

from twitter-api-v2-sample-code.

cibles avatar cibles commented on September 28, 2024

Same problem here, from 2023-06-09 12:00...

from twitter-api-v2-sample-code.

HogenYuan avatar HogenYuan commented on September 28, 2024

same...

from twitter-api-v2-sample-code.

HogenYuan avatar HogenYuan commented on September 28, 2024

It appears that the main issue stems from our accounts transitioning from 'elevated' to 'free'? It seems like this conversion happened in phases. All of my 5 to 6 accounts were downgraded to 'free' status a few hours ago, and now that they are 'free', they seem unable to access most of the APIs?

from twitter-api-v2-sample-code.

Kuzuto avatar Kuzuto commented on September 28, 2024

It appears that the main issue stems from our accounts transitioning from 'elevated' to 'free'? It seems like this conversion happened in phases. All of my 5 to 6 accounts were downgraded to 'free' status a few hours ago, and now that they are 'free', they seem unable to access most of the APIs?

Yes, I just upgraded to Basic, and now my API call works.
The API docs don't describe it well, but look in the dashboard under "products" and it shows which API calls you can make. With free you can only do a few calls, like post a tweet.
I now have to pay 100$/month to do a simple /search.
And the API call rate is also put down.

from twitter-api-v2-sample-code.

WillKre avatar WillKre commented on September 28, 2024

It appears that the main issue stems from our accounts transitioning from 'elevated' to 'free'? It seems like this conversion happened in phases. All of my 5 to 6 accounts were downgraded to 'free' status a few hours ago, and now that they are 'free', they seem unable to access most of the APIs?

Yes, I just upgraded to Basic, and now my API call works. The API docs don't describe it well, but look in the dashboard under "products" and it shows which API calls you can make. With free you can only do a few calls, like post a tweet. I now have to pay 100$/month to do a simple /search. And the API call rate is also put down.

Running into this issue now as well. Was getting 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. as an error message despite everything already set up correctly. Looking into it Free tier only includes "Manage tweets (POST, DELETE), Users lookup (GET)".

Can't think of any way to get around it other than paying the $100 per month for a simple search...

from twitter-api-v2-sample-code.

akfaew avatar akfaew commented on September 28, 2024

I have a paid $100/month account and I am getting this error. It turns out that every day my app is getting detached from the project. So the solution is to log in to developer.twitter.com and add it again every morning.

from twitter-api-v2-sample-code.

growNeha avatar growNeha commented on September 28, 2024

I have my app attached to a project and still getting the following error on hitting the verify_credentials api:
"errors": [
{
"message": "Your credentials do not allow access to this resource",
"code": 37
}
]
}

What's happening ?

from twitter-api-v2-sample-code.

alagiz avatar alagiz commented on September 28, 2024

same problem here - same project-app-keys - worked in the beginning of the month, but not anymore for some reason.
recreated everything - project, app, keys - same 403

Error while processing startStream onStreamError: {"client_id":"2**4","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"}, code: 403

from twitter-api-v2-sample-code.

alirq avatar alirq commented on September 28, 2024

@akfaew
If you explain a bit more will be great

from twitter-api-v2-sample-code.

alirq avatar alirq commented on September 28, 2024

@rapmd73
@akfaew mentioned that even when they paid 100 bucks for basic access they were still not able to get accessed !!

from twitter-api-v2-sample-code.

lbacaj avatar lbacaj commented on September 28, 2024

I just switched from Free to Basic, Paid and it works.

I didn't have to change my API keys or anything, just enter my credit card and pay $100 a month.

Exact error started just happening:
{ "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" }

Unfortunate that this was not communicated and the error does not make clear what's happened.

from twitter-api-v2-sample-code.

alirq avatar alirq commented on September 28, 2024

@lbacaj
https://twitter.com/SamyDindane/status/1669812597800030210

from twitter-api-v2-sample-code.

lbacaj avatar lbacaj commented on September 28, 2024

Two things to call out, my app was actually somehow removed from the project during their migration. So the error is partially correct The first step was to put it back into the project by going to add existing app. But this only solved part of the calls, some other calls were still failing with the exact same error.

The second step was to move from free to basic, that fixed all the calls including ability to pull followers etc.

Not sure if that will help anyone.

But yea, this is pretty crappy how they broke everything like this.

from twitter-api-v2-sample-code.

burakk61 avatar burakk61 commented on September 28, 2024

I'm getting the same response in the "trends/place" request. However, the same code works smoothly with different developer account credentials.

It would be absurd for Twitter to make trend information paid because no one would pay $100 for it. This information can be replicated and obtained from different sources.

from twitter-api-v2-sample-code.

TesnimGulsen avatar TesnimGulsen commented on September 28, 2024

Hi!
I have had a free account for a couple years. And v1.1 API worked for a few months but it's giving an error since last week.
When I searched and read all "migrate and support documents" I was confused because Twitter did not share reality with us in documents clearly. But they said in the Applications Page : "If you have free access, you just reach limited features like POST tweet, DELETE tweet.
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."
But I already have an App which connects to a Project, so Error was misleading.
I used search_tweets endpoint for months and with v2 API, the endpoint's name became search_recent_tweets when I was faced with this explanation in the document, I thought usage of endpoint will continue! So the explanation was not correct !
search

from twitter-api-v2-sample-code.

eantunesj avatar eantunesj commented on September 28, 2024

Hey guys! Today I tried to write a Python code to read the last 10 tweets from a specific timeline. I spent the afternoon dealing with these error messages. I went to the Twitter developer documentation and found an example source code there. I made a small adaptation to it, but ended up receiving the exact same type of error message: in my original code, I used the tweepy module, and in the code from the repository, they used requests and json. I also tried running it via the curl command line, but encountered the same problem. It seems that the Twitter team has indeed disabled this type of access. I can't afford to pay $100/month just to perform this type of reading. It becomes too expensive considering the currency conversion rate to the local currency here. Do you see any other approach? Is it possible to read the HTML page using Selenium and extract the information I need from there? Thanks, guys! I'm going to rest now. I've spent hours on this today, lol.

from twitter-api-v2-sample-code.

Abe410 avatar Abe410 commented on September 28, 2024

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.

Hi, did you resolve this issue? I am having the same issue, I have the app in a project but still getting the error.

from twitter-api-v2-sample-code.

AminAlam avatar AminAlam commented on September 28, 2024

No response from Twitter after a week. Apparently, it's no longer possible to use the Twitter API for free. I'm trying to mimic the API functionality using web scraping on github.com/AminAlam/Zam.

from twitter-api-v2-sample-code.

Abe410 avatar Abe410 commented on September 28, 2024

No response from Twitter after a week. Apparently, it's no longer possible to use the Twitter API for free. I'm trying to mimic the API functionality using web scraping on github.com/AminAlam/Zam.

But I am using the basic plan with $100, and still getting the issue.

from twitter-api-v2-sample-code.

XahidEx avatar XahidEx commented on September 28, 2024

I'm also facing the same for a few days :) 😪
Regenerated API. Still not working ⚠️

from twitter-api-v2-sample-code.

XahidEx avatar XahidEx commented on September 28, 2024

Figures it out. The Free plan now only supports managing tweets and user lookup. Readings tweets is all paid now.
Screenshot 2023-06-17 at 7 48 30 AM

It's not. Still you can read 10k tweets per month for free. This is a bug. Many free users are able to access it.

from twitter-api-v2-sample-code.

Machzy avatar Machzy commented on September 28, 2024

I'm trying to create a twitter bot that retweets from a specific user but also has to look through a keyword exclusion list.

Will that bot not work based on Twitter's new API rules?

from twitter-api-v2-sample-code.

Machzy avatar Machzy commented on September 28, 2024

Does anyone know how else I can create a twitter bot that retweets without using Twitter's API?

from twitter-api-v2-sample-code.

ishields avatar ishields commented on September 28, 2024

I have a paid $100/month account and I am getting this error. It turns out that every day my app is getting detached from the project. So the solution is to log in to developer.twitter.com and add it again every morning.

I'm having the same issue. I keep re-attaching the project and then every morning it gets detached.

from twitter-api-v2-sample-code.

xiaoshengaimm avatar xiaoshengaimm commented on September 28, 2024

We have the same issue.
We are already basic plan and paid 100$ every month.
But When we get someone followers by api, we got this error. We can get the follow list before but today we got this error.
And We detached the app and re-attach it to the project, but not be solved.
It's crazy for that we can not get any accurate information from the error message.
The additional information is that our Tweet caps - pull is fulled. Is it related to this???

Anyone help for that!!!

from twitter-api-v2-sample-code.

xiaoshengaimm avatar xiaoshengaimm commented on September 28, 2024

Someone can reopen this issue?
One day pass this error still

from twitter-api-v2-sample-code.

aseprite1 avatar aseprite1 commented on September 28, 2024

@renlong @xiaoshengaimm
Here is the link to a new issue. If you have any additional comments or remarks, please feel free to share them.
#130

from twitter-api-v2-sample-code.

MarijaErason avatar MarijaErason commented on September 28, 2024

I'm in the same boat with @xiaoshengaimm I'm on the basic 100$ plan and I'm getting the same error when I recreate the bot, I'm using tweepy and I've had the problem since this morning. when using GET /2/users/:id/following, an error occured.

Same here!

from twitter-api-v2-sample-code.

IstoraMandiri avatar IstoraMandiri commented on September 28, 2024

Also getting this.

from twitter-api-v2-sample-code.

GuillaumeCisco avatar GuillaumeCisco commented on September 28, 2024

Having exactly the same issue on followers and following.
But getting a user from its username is fine.

from twitter-api-v2-sample-code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.