Questions tagged [twitter-api-v2]

231 questions
1
vote
1 answer

R - Twitter API - Pagination (next_token) for Count

I have a twitter developer account with access to the v2 API and am trying to count the number of tweets posted by certain organisations (replaced it with POTUS in the example code) over the past years. However, I can only count the tweets from the…
Steven-f
  • 11
  • 1
1
vote
1 answer

Lookup Twitter Spaces created by accounts I follow

According to this page, you can lookup Spaces created by accounts followed by a specific user. Given a single user ID, a dedicated endpoint will traverse the user’s followings and return live or upcoming Spaces created by any of these users. I…
Ken
  • 212
  • 3
  • 13
1
vote
1 answer

Access tweet annotations via tweepy

I'm using the python library tweepy in order to extract data from the twitter api v2. The api also possesses the option to provide tweet annotations, which are basically categorization of certain elements used in the tweet. (The endpoint and…
Infomagier
  • 171
  • 1
  • 3
  • 9
1
vote
2 answers

Running multiple streams using node.js with twitter-api-v2

I am designing a twitter integration for discord and am running into rate limit issues by calling search recent tweets. I'm looking into streaming but can't figure out how to stream multiple users (added at a command). I am currently using this…
1
vote
1 answer

getting error while trying to get following of users via twitter API

i am trying to connect twitter API of getting friends (followers) of user via twitter's api with endpoint that mentioned here https://api.twitter.com/1.1/friends/list.json Error that i am getting is that about cors, though i have manage it from…
1
vote
0 answers

Getting the Parent Tweet Id from a Reply

I am currently looking at the Twitter API documentation but I cannot find the exact keyword for the approach from which I am trying to get the parent tweet id for a Twitter bot that I am creating. For example, if I want to automate bookmarking a…
1
vote
0 answers

What is the simplest way to add members to a Twitter list using Node.js and Twitter API?

In order to solve a problem related to fetching tweets from 1000+ twitter accounts without hitting the Twitter API rate limits (What is the most efficient way of frequently getting the last tweets from 1000+ accounts using Twitter API?) I believe I…
Christoffer
  • 2,271
  • 3
  • 26
  • 57
1
vote
0 answers

Twitter API Retweet Auth Failure

I'm trying to implement Twitter's Retweet API to retweet a specific tweet. But I'm having AuthFailureError while requesting that API. I'm unable to solve this issue and stuck for many days. Any help would be appreciated. Code: private fun…
AtifSayings
  • 756
  • 14
  • 23
1
vote
0 answers

Twitter V2 Api filtered Stream Endpoint

I have elevated access to twitter api v2 and I’m using filtered stream endpoint for realtime events. Now after some random duration, I stop getting response from the stream. It does give me the datakeepalive signals but doesn’t trigger according to…
1
vote
1 answer

How to create a thread using twitter-api-v2

I want to create a thread using twitter-api-v2 package. What i'm currently doing is as follows Create A tweet ==> Get the tweet id of the newly created tweet ==> Replay to the tweet ==> Repeat But, i feel this is not an efficient way. Any method to…
ProHeh
  • 77
  • 1
  • 6
1
vote
2 answers

I cannot understand what are all the different keys for the twitter API

I cannot understand what is the difference between API key, API key secret, Bearer Token, Access Token Access Secret. There is also Client ID and Client Secret which is something very confusing. I wish to create a Twitter bot, but I find this very…
0
votes
0 answers

API Twitter with Twitter4j-v2 lib authentificaiton

Since Twitter has deprecated its API V1, I need to update my code to use V2. I am using the twitter4j-v2 library: https://github.com/takke/twitter4j-v2 I'm stuck at the oAuth authentication step. I manage to generate the URL: val conf =…
Anthone
  • 2,156
  • 21
  • 26
0
votes
0 answers

Rails Twitter API v2 Fetching Tweets Issue

I'm trying to fetch tweets using the Twitter API v2 within my Ruby on Rails application, but I'm encountering issues with the implementation. I've followed the provided guides and examples, but the code isn't working as expected. I've verified my…
0
votes
0 answers

Laravel : Twitter API video upload issue: Video GOP is too large. Largest number of frames allowed in one GOP: 512

i'm getting an issue while posting video through laravel. i have consider all the twitter video guideline but some particular video is not uploading and showing error like 'Video GOP is too large. Largest number of frames allowed in one GOP: 512' i…
0
votes
1 answer

Twitter (X) API returns "Your Tweet text is too long" for Blue Account

I am using twitter api java client lib to post a tweet larger than 250 chars (only 2600 or so), to a Twitter (X) blue account. I get a 400 error with message 'Your Tweet text is too long'. I am able to post the same long tweet through the web…
broadbear
  • 614
  • 8
  • 19