Questions tagged [twitter-api-v2]
231 questions
0
votes
0 answers
Having problem to obtain data when sending curl request from terminal to Twitter API
I am trying to make twitter API request from MAC Terminal using curl. I already made developer account, and obtained all keys and tokens.
In documentation they provided code to make request. This is the code:
curl --request GET…
0
votes
0 answers
What is up with Twitter Developer documentation?
The Twitter Developer Portal starting May'23 now only shows V2 Apis under "Products", (as opposed to showing V1 as well).
And in March/April, they announced the new Access Level Tiers for Twitter API - Free Tier, Basic Tier at $100, Pro Tier at…

rasulfahad
- 443
- 3
- 13
0
votes
1 answer
Twitter Streams Api returns 403
I have been using the Twitter V2 Streams Api for an over 6 months now. 2 days ago, the Streams Api started returning a 403 against my requests. Here is the response:
{
"client_id": "--------",
"detail": "When authenticating requests to the…

rasulfahad
- 443
- 3
- 13
0
votes
0 answers
Using Tweepy, how to filter my search criteria by country and keyword/hashtag? (2023)
Code related to question:
import tweepy
import configparser
import pandas as pd
api_key = ""
api_secret = ""
bearer_token = r""
access_token = ""
access_token_secret = ""
# authentication
auth = tweepy.OAuthHandler(api_key,…

TimeToAscend
- 1
- 1
0
votes
0 answers
Python Twitter OAuth 2.0 Authorization Code with PKCE and Tweepy V2 auth issue
I am having an issue using the Twitter V2 API with Tweepy.
I have created code to refresh the Access_token once I have carried out the initial auth for the app whilst logged in.
I need to use OAuth 2.0 Authorization for Twitter an have even paid the…

spikeyman00
- 1
- 1
0
votes
1 answer
What is consumer_key and consumer_secret being use in tweepy?
I can't even find any clue about it in Twitter Developer dashboard, I look at the API key and the only word use there 'api_key', 'api_key_secret', 'access_token', 'access_token_secret', 'bearer_token', 'client_id' and 'client_secret'.
Anyone please…

Muhammadim Yusoff Jamaluddin
- 35
- 1
- 7
0
votes
0 answers
I am not able to understand which jar file to be used for the latest version of twitter 4j
I am making an application that returns the tweets of the specific query and moves it to the database as well as excel file. I am not able to use the twitter 4j jar file. i have added it to the build path but it is not working. I have tried if the…
0
votes
0 answers
Flume with twitter api v2 baseURLs problem
I'm trying to config twitter4j property file in Flume conf dir for changing the default api link and endpoints from v1.1 (which is deprecated) to v2 but only the streamBaseURL is changing, the endpoint is always the v1.1 api endpoints…
0
votes
1 answer
How can I fix the '403 Forbidden' error when using tweepy to access the Twitter API?
Something wrong with my tweepy API?
Been trying to access the twitter API using tweepy, but getting the 403 Forbidden error.
Tried the TwitterAPI and tweepy which both did not work.
Researched and followed the youtube tutorials and twitter…

aannddyy
- 1
- 2
0
votes
0 answers
Error 403 when setting up filtered stream with Twitter API v2 and twitter-api-v2 package in Node.js
I'm building a Twitter bot using Node.js, the twitter-api-v2 package, and the node_characterai package. The bot listens to mentions of a specific username and replies to them. However, when setting up the filtered stream, I get an error with a 403…

Matrix- eve
- 1
- 1
0
votes
1 answer
Error: Invalid Request: Value passed for the authorization code was invalid
I followed the following…

jmecs
- 143
- 2
- 13
0
votes
1 answer
Use twitter api on behalf of another twitter account
How can i use twitter api to post tweet on behalf of another account (in my possession) ? I have a developer account on my main twitter account, i created an app and i wanted to use this app to post tweets from a different twitter account and not my…

rulebreaker99
- 11
- 1
0
votes
0 answers
Updating Twitter Profile Image with Twitter API V2
I'm in the process of updating a Twitter app for API v2. In v1.1 there was an endpoint for changing a profile picture. Does a similar endpoint exist in v2? I haven't been able to find it in the documentation.

golddave
- 23
- 1
- 3
0
votes
1 answer
I am unable to retrieve tweets older than 7 days via twitter APIs
I have my Twitter developer researcher account, after creating apps in my account I am unable to scrap tweets older than 7 days using Twitter APIs

Ali Athar
- 205
- 1
- 2
- 12
0
votes
0 answers
Is there a way to use Twitter 2.0 as a Flume Source?
TwitterSource from Apache Flume only supports v1 endpoints. I need a work around to using Twitter as the source for Apache Flume.
This is the error which pops up when I use the Flume, firehose class
2023-03-18 00:38:03,290 ERROR…