Questions tagged [twitter-api-v2]

231 questions
0
votes
1 answer

Send a reply to a tweet sends a tweet

I'm trying to send a reply to a tweet by giving the tweet_id, but instead of sending a reply, it sends a tweet. I feel like the tweet_id isn't user in the function. Here's the code I have: function(properties, context) { var Twitter =…
Mrtsm
  • 35
  • 4
0
votes
0 answers

twitter-api-v2 / Bad Twitter streaming request: 403

var Twit = require('twit'); var replie = ['1','2','3']; var T = new Twit({ .... }) var stream = T.stream('statuses/filter', { track: '@beykant_' }); stream.on('tweet',tweetEvent); function tweetEvent(eventMsg) { var replyto =…
Beş
  • 1
0
votes
1 answer

Twitter_api_v2 reply to a tweet example

Could anyone Show me an example of your finished Parameters and Endpoint for a Twitter Reply maybe with a Screenshot? Because i dont understand exactly what to type in my Params and, do I got to change anything in the Pre-request Script? Kind…
0
votes
1 answer

TwitteR scraping with R error, fixing ideas?

I'm a bit desperate with my problem as I checked all the existing sources and nothing worked for me. The issue: I'm trying to scrape twitter with R in Rstudio, I'm on the very first stage of auth with API…
tensai
  • 51
  • 7
0
votes
0 answers

Converting json objects to csv using Twitter API in Python (adding username and description)

I want to collect tweets with the Twitter API (Academic Access) and I just want to add the username, name and the description to the csv and it just doesn't work. I could really need some help, thank you in advance! This is the code: def…
0
votes
1 answer

Twitter API V2 - Get all tweets/Feed from Twitter List

I have a twitter list where I want to scrape every tweet which occurs within this list with a Twitter API V2 research account. Here is the link to the list: https://mobile.twitter.com/i/lists/912241909002833921 Following query gives me the tweets of…
Maxl Gemeinderat
  • 197
  • 3
  • 14
0
votes
0 answers

Twitter Api v2 python filtered stream - not define Rule, no connection,why is the rule not working?

previousRules = stream.get_rules().data if previousRules: stream.delete_rules(previousRules) rule = StreamRule(value="from:BBC lang:en -is:retweet") stream.add_rules(rule) with a simple request for a keyword, then it goes, but when you make…
0
votes
0 answers

Extracting replies using Twitter V2

I have been trying to get the replies given a conversation id and every time I get the following response.Json response from twitter My credential file is a json file and it is set as below: { "API key": "the api key", "API Key Secret": "the api…
0
votes
0 answers

Savely store Twitter User-Tokens?

I use TweetInfi 5.0 to access the Twitter - API (v2). Everything is configured correctly as an elevated v2 - Application. (Type of App: "Web App, Automated App or Bot") I successfully request the users permission and send a tweet for him. I follow…
Ole Albers
  • 8,715
  • 10
  • 73
  • 166
0
votes
1 answer

How to use Tweepy pagination with Twitter API v2?

I am trying to use the Paginator() method so that I can gather more than 100 tweets. The following is my code: query = '("illegal alien") place_country:US -is:retweet' start_time = '2010-04-06T00:00:00Z' end_time = '2022-12-02T00:00:00Z' tweets =…
0
votes
0 answers

Can we use the "SInce" and "Until" option in TWEEPY to fetch tweets from a specific date?

Actually, I am working on a project which collects tweets if we pass a certain keyword. For ex. If I pass the keyword as "Messi", it will collect every tweets regarding Messi. We are passing the parameters as "query" and "no of tweets". No of tweets…
0
votes
0 answers

How can a Twitter API App developer tell if a user has revoked access to their app?

I'm using V2 of the Twitter API using OAuth 2.0 Authorization Code Flow with PKCE and I can't seem to find an endpoint for determining if a user has revoked access to our app or not (i.e. if they revoked access from their Twitter account by going to…
0
votes
1 answer

Only get Tweets that mention a country

Is it possible to exclusively gather Tweets which mention countries by name? I am only gathering Tweets from the US. I know that Twitter allows us to access context_annotations from the payload, and that context_annotations identifies if a tweet…
0
votes
1 answer

Cannot write using the Twitter API (unsupported authentication)

I'm trying to use twitter-api-v2 to query twitter using their [rate limit example] import dotenv from 'dotenv' import { TwitterApi } from 'twitter-api-v2'; import { TwitterApiRateLimitPlugin } from…
Ritzy Dev
  • 387
  • 3
  • 10
0
votes
0 answers

public_metrics not returning follower count, Tweepy using Twitter v2 API

retweeter_ids = [1597587432438128642, 1597441669615714304] zed = client.get_users(ids = retweeters_ids, user_fields = 'public_metrics') zed.data[0] According to…
Canovice
  • 9,012
  • 22
  • 93
  • 211