Questions tagged [twitter-api-v2]
231 questions
0
votes
1 answer
Adding user list in the StreamingClient in Tweepy
I am writing the code for listening to the real-time Tweets from a specific list of users (more than 500 users). I read the Tweepy library documentation, and I could not find how to add the user list. Following is my code:
import…

Aniket Sawale
- 36
- 1
0
votes
1 answer
Get the latest follower of a specific Twitter user with Tweepy
I currently use the function get_users_following(user_id_account, max_results=1000) to get the list of follows of an account, to know who he follows on twitter. So far it works well as long as the user follows less than 1000 people because the API…

Miky
- 109
- 2
- 10
0
votes
1 answer
How to build a query that includes # and @ in Twitter API v2?
I'm not very good at interpreting how to build a query= with multiple operators. The below examples of attempts that are invalid for the Twitter API v2 . Can someone show me how to make a proper query with multiple operators using the Tweet Count…

zewicz
- 125
- 9
0
votes
2 answers
Can I track if someone clicked a link on my Twitter post
I have a private business Twitter account and I would like to know when someone clicks any link inside one of my posts. This solution cannot assume that we know the form of the link being posted.
For example a twitter post like this:
Have you guys…

Ian Steffy
- 1,234
- 3
- 18
- 45
0
votes
1 answer
How to use Twitter API to tweet to a specific audience. (ie. their new community feature)
We use the Twitter API to post to our Twitter feed. Under the audience selection there is the option to choose "Everyone" or to choose a different audience, including "communities" that you are a part of. How do I post to twitter under one of those…

brando
- 1
- 1
0
votes
2 answers
Twitter API post a retweet (reply)
I am using a postman to test Twitter API v2, goal is to post a retweet and to delete a retweet. Somehow I am able to post a retweet but problem is that the retweet is empty. This is the Twitter API endpoint…

Edin Osmic
- 374
- 5
- 25
0
votes
1 answer
I am getting " 'Request token missing': '' " error when trying to setup a client
I know that there is a very similar question like this one on StackOverflow, but i do not understand what the answer means, and because of that i am asking this question.
here's my code
const tokens =…

Ranvir Choudhary
- 51
- 6
0
votes
1 answer
Stuck on twitter redirect page when trying to save credentials
I'm using the twitter-api-v2 package and I cant save my access_token, access_token_secret and oauth_verifier. i want to save the oauth_verifier because i want to create the actual bot in another file.
Here's what I've found
Using writeFile throws…

Ranvir Choudhary
- 51
- 6
0
votes
0 answers
I am trying to implement OAuth for twitter API and am confused about sessions and all the different keys
I am trying to implement OAuth 1.0a 3 legged auth-flow for a Twitter bot using Javascript and the npm packages twitter-api-v2, but I am finding it difficult to understand the flow. What is oauth_verifier, oauth_token and oauth_token_secret?
When I…

Ranvir Choudhary
- 51
- 6
0
votes
1 answer
I am getting a 403 error when trying to implement OAuth 1.0a with twitter API
i am trying to generate a OAuth 1.0a link with twitter api in JS using the twitter-api-v2
const client = new TwitterApi({ appKey: process.env.API_KEY, appSecret: process.env.API_KEY_SECRET });
app.listen(3000, () => console.log("You used express to…

Ranvir Choudhary
- 51
- 6
0
votes
1 answer
Count difference between tweets/count/recent and tweets/search/recent
I am fetching tweets from twitter using APIv2.
To maintain the credibility of data first I am using https://api.twitter.com/2/tweets/counts/recent to get count of tweets for a particular query.
Later I am using same parameters/query for fetch the…

Umesh Kaushik
- 1,551
- 1
- 16
- 18
0
votes
1 answer
How to use tweepy api v2 to get status?
I created this bot with tweepy and python, basically i can retweet an like the most recent tweets that contain a certain keyword. I want to get the status of a tweet that has that keyword so that i know if i already retweeted it or not.
import…

Oul Timotei
- 3
- 3
-1
votes
0 answers
Using One Twitter Developer Account for Multiple Bot Accounts
I built a twitter bot using nodejs that can comment or reply to tweets using gpt3 api (only reply to comments containing a specific keyword)
Now i want to move up a little further, lets say i want to simultaneously use 100's of accounts to…

sam
- 9
- 3
-1
votes
0 answers
Twitter API to read user DMs with consent
Do we have to have a paid developer account to read users' twitter DMs through their official API?
I signed up for the free account and I wrote a simple Tweepy script which throws the following error. I am working on a hobby project to read twitter…

kor
- 1
- 1
-1
votes
1 answer
Need help updating Abraham Twitteroauth v2 GET Feed
I created a WordPress plugin using Abraham TwitterOAuth v1.1 and now I am trying to update it to v2 but getting lost in the Docs on how to implement the changes for TwitterOAuth. Here is my v1.1 code with a few changes to hide my…

Xenocide122
- 117
- 1
- 15