-
Notifications
You must be signed in to change notification settings - Fork 592
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
Twitter v2.0 API not supported (returns 403) #899
Comments
There is an updated Twitter NodeJS SDK: https://www.npmjs.com/package/twitter-api-v2 @Steve-Mcl and I have tested that this works in Node-RED by installing it as an npm package and used the following example, to listen for any tweet mentioning 'Boris Johnson' in a
|
This problem also happens even with elevated status. Twitter Out works fine, but Twitter In still gets the 403 on public searches. Tweets from followed accounts works as expected.. |
I have developed a node-red-twitter-node that gets the public searches. You can find the code here: https://github.com/shahramdj/nodered_twitter_api |
@shahramdj rather than adding another node to the catalogue could we persuade you to raise a pull request to fix the existing node. This way there is just one that works and people don't have to pick from multiple options and it's the one from the community that people are likely to already have installed. Thanks |
@hardillb sure, I will send a pull request to fix the existing node. |
Existing twitter node must be migrated from twitter-ng to twitter-api-v2(https://www.npmjs.com/package/twitter-api-v2) |
... or wait a couple of months and see what happens :-) |
Are we to take this to mean the devs are not supporting this node anymore? |
Hi @gemini86 I think the comment from @dceejay was more related to the ongoing turmoil with Twitter the company and doubts over whether the company was going to have anyone left to keep it running. More generally, there are dozens of nodes in this repository. Ideally we'd have the resources available to fix everything and implement everything - but unfortunately we don't. The degree to which any particular node gets maintained depends a lot on how widely used it is, how much community interest there is in it and whether people want to contribute to the project to help maintain them. |
I'm aware, which is why I asked without getting into the politics of it. I guess we wait? |
... or help @shahramdj fix/rewrite it :-) |
Announcing the deprecation of v1.1 statuses/filter endpoint I guess that means the node will stop working on 9 March 2023? |
See |
Thank you [ArfyFR] for pointing this out. For me personally, however, the abolition of free unlimited API access has settled the matter. I will not pay money for the opportunity to add value to the platform through useful bots. |
If I understand right: But in node-red code both try to add media and text with V1.1 => fail |
I have been running #NowPlaying bots for BBC Radio 1/ 2/3 and BBC6Music. The limit of 1500 tweets per month is already exceeded after a few days in this case 🤷 |
I post less then few tweets per day and I find this plugin very useful. Is anyone working on this? |
no immediate plan that I'm aware of, with the Twitter API restrictions added, I think this dropped in priority as I understood that you needed to pay for API access now? |
Posting is free (with limits) but some endpoints are not available for free anymore |
Anybody working on a fix? Would be nice to be able to use the node to send tweets. @shahramdj any luck with the pull request? |
Nobody seems to have grabbed this yet unfortunately @jbwiden |
The twitter API has changed a lot, it is not free anymore and even my fix for API version 2 does not work now. |
My understanding is that there is still capability at the free tier but is more limited than in the past.
|
I had a look again and even the basic API V2 example code does not work, I get 403 error when I try to call the rules URL. I tried to find new examples, code snippets, etc. but most of the links are broken. I am not sure, maybe the free version is not their priority and they are too busy with fixing the enterprise version. Unfortunately, there is no chance at this point to fix this. If you can find any working Nodejs code that gets the twitter stream, I will be more than happy to take it and fix the node-red node twitter based on that. |
Thanks for looking into it, sorry to hear it is seemingly a non operational API now |
It seems like this package works with Bearer tokens: https://www.npmjs.com/package/twitter-api-v2 |
Which node are you reporting an issue on?
Twitter
What are the steps to reproduce?
What happens?
"stream error: http (403)"
error from the Twitter APIThis is because Twitter have restricted access for "Essential" developer accounts (the default account provided when signing up for a Twitter developer account) to using the v2 API only. In order to use the v1.1 API, developers must have an "Elevated" account.
What do you expect to happen?
The text was updated successfully, but these errors were encountered: