Questions tagged [twitter-api-v2]
231 questions
1
vote
0 answers
Can nextjs hosted on vercel listen to streams?
I am building a project on nextJS and hosting it on vercel. I want to listen to twitter streams. Can nextjs hosted on vercel listen to streams or do I have to use a server like expressJS?

YulePale
- 6,688
- 16
- 46
- 95
1
vote
0 answers
Academic TwitterAPI and AcademicTwitteR: retrieving tweets based on conversation ID
About my project: I am using the academic twitter api and the package AcademicTwitteR to first scrape all tweets of amnesty international UK. This has worked fine.
The next step is to use the conversation ids of those ~30,000 tweets to get the…

Sprudelwasser
- 11
- 1
1
vote
1 answer
Only getting meta data in response and not non_public_metrics from Twitter API V2 response
I am using Twitter API https://github.com/abraham/twitteroauth for getting tweets from the Twitter, I basically need to get non_public_metrics from the Twitter. I am successfully able to get the public_metrics but not non_public_metrics.
Here is my…

user1578460
- 315
- 1
- 2
- 17
1
vote
1 answer
Empty response from Twitter API v2 using Tweepy with organic_metrics
I am trying to download tweets by a specific user from Twitter API v2 using Tweepy. For some reason, when I add organic_metrics to tweet_fields I get an empty response. If I remove organic_metrics I receive tweets as a response as expected.
Here is…

K G
- 1,715
- 6
- 21
- 29
1
vote
1 answer
Tweepy: filter tweets stream by keywords only
I am interested in retrieving tweet streams about the forth-coming Nigeria's general election. I want all tweets from Nigeria, which contains information about 4 major presidential candidates only…

Amina Umar
- 502
- 1
- 9
1
vote
1 answer
Issues With Twitter API V2 Elevated Access and has:geo Query Parameter
I have Elevated access to the Twitter API V2, and I am working with the API in Postman to search for recent Tweets containing a keyword. I’d like to be able to add a further query parameter to only return Tweets that have a geolocation associated…

Jake
- 23
- 4
1
vote
0 answers
How to make a stream to reply to twitter mentions with tweepy?
I created a simple bot on twitter so that every time someone mentions my @ the bot will reply with a random phrase.
But it is not behaving as expected. It answers the first mention and then answers again the answer it provided.
I tried putting the…

Paulo Caldeira
- 31
- 1
- 2
1
vote
1 answer
Twitter API - Tweet counts by cashtag
I found in a Twitter's documentation that cashtags are allowed on Elevated access level:
https://developer.twitter.com/en/docs/twitter-api/tweets/search/integrate/build-a-query#list
My account (project) is on the Elevated level but when I try to…

adkr
- 31
- 5
1
vote
0 answers
How to delete more than 50 tweets in 15 minutes per user?
we are integrating an website to let users to delete tweets by authenticating their twitter account. It's working as per the twitter rate limit.(Can delete 50 tweets in 15 minutes). I found some of site can delete more than 1000 tweets in 15…

Curvegraph
- 850
- 1
- 10
- 17
1
vote
0 answers
Twitter Unsupported Authentication Problem - Tweetinvi Streams V2 - Asp.net Core MVC
When I try to use Tweetinvi Streams V2, it gives an error in the StartAsync section.
public async Task streamFonk()
{
stream.TweetReceived += (sender, eventReceived) =>
{
…

Tolga Yılmaz
- 11
- 2
1
vote
1 answer
How to obtain a twitter api access token in JavaScript
I am trying to convert a Python app I made some years ago to a (better) NodeJS implementation. The function in question obtains an access token from the Twitter api to attach to future requests, but my implementation returns 403 bad request. Here is…

HubertBlu
- 747
- 1
- 7
- 20
1
vote
1 answer
How do I fix a "This stream is currently at the maximum allowed connection limit" error on the Twitter API?
I run a Discord bot with Node.js through Heroku. I've been implementing the Twitter API to post tweets from a few accounts in some of our channels but the stream crashes sporadically after a period of time.
I know I'm not hitting rate limits, and to…

Peyton Sonnefeld
- 33
- 7
1
vote
1 answer
How to trigger an Api call when it's the scheduled time
I'm building a simple platform to allow Twitter users to post to their Twitter accounts on a time schedule of their choosing. So for example someone might want to make a post to his/her Twitter account at exactly 12:00 am midnight, but the platform…

salem
- 21
- 5
1
vote
1 answer
Posting to twitter API using nextjs, posting tweets while website is not being requested
Current state: I'm currently using next.js to build a web app. I would like this web app to also post to my Twitter account. I've already created a developer account on Twitter and an API in nextjs. Calling the api will trigger the post request, and…

Kiwi
- 13
- 5
1
vote
1 answer
Obtaining Friends Count And Favorites Count From User Object
I am having trouble obtaining friends_count and favorites_count using the search_all_tweets Tweepy V2 API call.
GeeksForGeeks lists friends_count and favorites_count as attributes ( https://www.geeksforgeeks.org/python-user-object-in-tweepy/).…

Stephen Wong
- 177
- 1
- 8