Questions tagged [twitter-rest-api]

The REST APIs provide programmatic access to read and write Twitter data. Create a new Tweet, read user profile and follower data, and more. The REST API identifies Twitter applications and users using OAuth; responses are in JSON format.

95 questions
1
vote
0 answers

Android Twitter kit home timeline optional parameter issue

I am consuming few apis from TwitterKit. I want to fetch home timeline of user where user will see list of tweets from his follower. If we check the api documentation for home timeline, the parameters are optional. Now twitter kit provides all…
Hardik Trivedi
  • 5,677
  • 5
  • 31
  • 51
1
vote
0 answers

Some Twitter Videos are not exposed by the API

I noticed that in some cases, the video attached with the tweet is not accessible by using the REST API. For example, this tweet clearly has video in it. however, this video is nowhere to be found when the tweet is retrieved from the API as shown…
iTurki
  • 16,292
  • 20
  • 87
  • 132
1
vote
1 answer

Spark Streaming using Tweepy

I'm trying to stream twitter data using python library Tweepy. I have setup working environment googled about the stuff but i'm not getting how things are working. I want to use spark streaming (DStream - Batch processing) with python (tweepy). I…
1
vote
1 answer

How to get a list of retweeters of a retweet?

The title is confusing, I know, but I do not know how else to phrase this question. Using twitter4j, I am able to get tweets and the list of users who have retweeted that tweet, like this However, if the tweet is actually a retweet then I am not…
R. Haroon
  • 103
  • 1
  • 13
1
vote
1 answer

How to get tweets of specific location with specific hashtags

I'm trying to collect tweets of last 7 days using Search REST API and Tweepy package in Python. This is my code: import tweepy ACCESS_TOKEN = '?' ACCESS_SECRET = '?' CONSUMER_KEY = '?' CONSUMER_SECRET = '?' auth = tweepy.OAuthHandler(CONSUMER_KEY,…
Rojin
  • 365
  • 1
  • 4
  • 14
1
vote
1 answer

How to get all images uploaded by the user?

Using Twitter API, I would like to fetch all images uploaded by a user who authenticated my application (OAuth). I've been digging API docs but couldn't find an easy way to do it. Should I list all tweets, iterate over them, get every single tweet…
scaryguy
  • 7,720
  • 3
  • 36
  • 52
1
vote
1 answer

Why is this quoted tweet pointing to itself?

I am retrieving tweets with the Twitter API and I do this: I check that they have a quoted_status, then I replace the URL in url_info->url that has the tweet_data->quoted_status->id_str within the url_info->expanded_url. This way, I know the URL is…
Tyrannogina
  • 593
  • 1
  • 4
  • 21
1
vote
1 answer

Connection with remote services Streaming API

I had a problem while using Streaming API in Java. Visited many sites, but unable to locate problem with code. Here's the code i'm using : import java.util.Scanner; import com.github.scribejava.core.builder.ServiceBuilder; import…
1
vote
1 answer

Retrieve the Deleted / Edited tweets list using twitter REST API

Can anyone please share me the idea to retrieve the deleted and Edited tweet list(user timeline) after the given time? using twitter rest API.
Vinod Kumar
  • 408
  • 4
  • 18
1
vote
1 answer

Get Updates from Twitter using API from the given Date

Is there is any API available in twitter to get the updates after the given date? For example. If i give the date as 18 jan 2016 then,My expected the result is the collection of twitter Updates which happens after 18th Jan 2016.
Vinod Kumar
  • 408
  • 4
  • 18
1
vote
1 answer

“following” key always returns false in get friends/list API Twitter

when I am testing my app with GET friends/list API of twitter the "following" key of the JSON always turn up to be false/null even if the user following me . Why does this scenario keep occuring? Sample JSON { "users": [{ "id":…
Alok Bose
  • 13
  • 4
1
vote
0 answers

How to post Image to Twitter with Rest API in Swift?

In my app the user should upload a picture to Twitter (with the Rest API). Now the user can only tweet with text but this works with this code: let textToTweet = textView.text let url = NSURL(string:…
dev
  • 88
  • 1
  • 11
1
vote
1 answer

twitter4j result.nextQuery() is giving me always null

Hello guys I would ask you why I my code doesn't get me all the tweet I asked for in the query, and it's just stop next the first page result. I'm asking because the same code worked very well just six months ago. Query query = new Query("Carolina…
Tunarock
  • 127
  • 1
  • 1
  • 12
1
vote
1 answer

How to capture retweets of a retweet?

I'm using Streaming API to track a specific user to get all the tweets and retweets. However, as far as I know there's no way to capture retweets of a retweet as it doesn't come up on the streaming API. For example, I'm tracking user A. User B…
toy
  • 11,711
  • 24
  • 93
  • 176
1
vote
0 answers

Every 1 minute, generate a report based only on the data tweeted in last 5 minutes

My code gives continuous data, but I wanted to filter the data to last five minutes. Additionally, I wanted to report it every 1 minute. What I need to do for that? try: import json except ImportError: import simplejson as json from twitter…
Saket Mittal
  • 3,726
  • 3
  • 29
  • 49