Questions tagged [twitter-api-v2]

231 questions
2
votes
1 answer

geolocation coordinates of users from tweets

I give my code as in the below MWE which works fine. import tweepy BEARER = "my-bearer-token" class MyListener(tweepy.StreamingClient): def on_data(self, data): try: with open('python.json', 'a') as f: …
arilwan
  • 3,374
  • 5
  • 26
  • 62
2
votes
0 answers

Is there a way in R to find all tweets containing a specific url?

I have a dataset of tweets that I obtained from the Academic Twitter API by querying a list of terms. search1 <- paste0("(rada'a ", 'OR radda OR radaa OR "al bayda" OR bayda OR AQAP)') radaa.all <- get_all_tweets(search1, …
2
votes
2 answers

Implementing Twitter API with NodeJS

I am trying to develop a NodeJS app and i want to be able to search for tweets including a keyword here is my code: const express = require("express"); const app = express(); var Twitter = require("twitter"); const needle = require('needle'); var…
2
votes
2 answers

Streaming multiple users in Twitter API v2

I am migrating from Twitter APIv1.1 to v2, and trying to stream tweets of users filtered by their ids. I use twarc.client2.Twarc2 in python and build a list of rules in this form: {'value': 'from:user1 or from:user2 or ...'} I have more than…
Shanazar
  • 54
  • 6
2
votes
1 answer

Twitter API v2 endpoints authentication error

I am trying to pull tweets using Twitter Developer API V2. My access level is Elevated. This is how my code looks like: import tweepy consumerKey = "*********mc7K" consumerSecret = "*******BZNB" accessToken = "*****-****9eeT" accessTokenSecret =…
Asdfg
  • 11,362
  • 24
  • 98
  • 175
1
vote
0 answers

Your client app is not configured with the appropriate oauth1 app permissions for this endpoint

I am using twitter-api-v2 but when i was creating the tweet using create/tweet it is sending this response data: { title: 'Forbidden', status: 403, detail: 'Your client app is not configured with the appropriate oauth1 app permissions…
Asif Malik
  • 11
  • 1
1
vote
0 answers

Issues with twitter-api-v2/plugin-rate-limit: Getting undefined for 'users/me' and Confusing Rate Limit Data

I'm working with the twitter-api-v2 library in conjunction with the @twitter-api-v2/plugin-rate-limit plugin for Node.js. I'm facing two main issues: When I attempt to fetch the rate limit for the 'users/me' endpoint using the plugin, it returns…
TheMightyLlama
  • 1,243
  • 1
  • 19
  • 51
1
vote
0 answers

Twitter API V2 Saying Unauthorized After Unsuspending

I received an email saying my use of the Twitter API v1.1 was being suspended. I went into my dev account and switched my app to the free tier to unsuspend it but now I'm having trouble posting tweets. If I understand correctly, API v1.1 doesn't…
kittyhawk
  • 688
  • 2
  • 11
  • 25
1
vote
0 answers

Get Twitter Follower Count by User ID in 2023

I'm wondering if it's possible with the current free-tier API to get twitter follower count from the twitter V2 API. I'm able to post tweets programmatically but am running into the following issue when I try to request user info with the same…
Emanegux
  • 1,092
  • 2
  • 20
  • 38
1
vote
0 answers

Twitter API v2.0 endpoints authentication 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. [registration_url]…
Rahul Garg
  • 21
  • 3
1
vote
0 answers

Unable to Auth Twitter V2 to access Followers data. I have basic Subscription

Unable to Authenticate using Tweepy for Twitter V2 Unable to get follower data. IF any one used Twitter V2 Basic Version for getting followers details. Tried with from pytwitter import Api also even in that unable to authenticate. Tried both…
1
vote
0 answers

I am having an issue with using the struct Oauth2token

I am trying to utilise the twitter API with rust but I can't seem to access the struct allows for Oauth2token validation. I have tried using the bearer token with both the crate twitter_v2 and making requests to the end points directly. Here is my…
1
vote
0 answers

Twitter oAuth V2 giving error since Twitter added tiers for their APIv2

We were using oAuth V2 and when Twitter updated the tiers to "free, basic, pro and enterprise", our app got suspended and our oAuth stopped working. We are using the Twitter-API-V2 lib found here: https://www.npmjs.com/package/twitter-api-v2 So, we…
NatureLady
  • 81
  • 1
  • 7
1
vote
1 answer

When authenticating requests to the Twitter API v2 endpoints

I am encountering a notification while authenticating requests to the Twitter API v2 endpoints. { client_id: 'xxxxxxx', detail: 'When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer…
Alex Cuba
  • 73
  • 4
1
vote
0 answers

Is it possible to still use rtweet R package to retrieve tweets from Twitter

I have made an app that retrieves tweets using the function rweet::get_timeline (in the rtweet package). The app suddenly stopped working with the following error message: Warning: Error in : Twitter API failed [403]. Check error message…
madsR
  • 95
  • 6
1
2
3
15 16