The Wayback Machine - https://web-wp.archive.org/web/20140831112635/https://dev.twitter.com/discussions/1157

Help - Get all tweets of user

MsMyComments
@MsMyComments spj comments

i am using this url to retrive the tweets for user. I have used Oauth authentication for that. and getting the tweets using following api
api : - http://api.twitter.com/1/statuses/public_timeline.json

from documentation of above api i found that - above api only returns the 20 most recent statuses

question : -
how can we retrive the all tweets for user using api ? Is there any seprate api ? or is there any seperate method/parameter for that?

question : - how we can retrive the tweets for user for specific time span (start date and end date)?

3 years 1 week ago

Replies

episod
@episod Taylor Singletary

Timelines are paginated with basic defaults. The first default page of a user's timeline is 20 tweets. You can retrieve up to 3,200 of a user's tweeted statuses by paginating through the user_timeline in groups of up to 200 results per page. See GET statuses/user_timeline for more info.

For users with less than 3,200 tweets, you can get all of them with a few calls. For users with more, there's a hard limit at 3,200. There is no reliable way to try capturing an archive of a specific user's tweets between a span of dates.

3 years 1 week ago
CityPattercom
@CityPattercom CityPatter.com

We have a community website and a member of Twitter. Do we have to use API's to put Twitter Widgets on our website. We would pull content by topic (i.e. entertainment or fun around Cincinnati or even talk around town.

Is there a cost to doing this and in doing this are we breaking any infringement or copyright laws?

My of your information becomes a blur when you go into the different links. It's as though they contradict each other. Just wanting to do things correctly. Please let me know.

Thank you.

2 years 51 weeks ago
GokulCO
@GokulCO Gokul Chand

@CityPatter did u get ur answer. if yes plz share it. thanks...

29 weeks 2 days ago
muhammadasghar
@muhammadasghar Muhammad Asghar

How can i get all tweets using v1.1 api

1 year 15 weeks ago
ssenthilece09
@ssenthilece09 shanmsen1987

nops

36 weeks 5 days ago
robinbonnes
@robinbonnes Robin Bonnes

Due to deprecating Twitter API v1.0, developers need to create oAuth authentication to retrieve tweets. This script does exactly the same, without the OAuth hazzle, so its much easier to use. Its only less advanced as Twitter API v1.1. It will retrieve tweets (and retweets) with their avatar, username and post date in JSON format: https://github.com/robinbonnes/Custom-Twitter-PHP-API

1 year 4 weeks ago
episod
@episod Taylor Singletary

I would really recommend not scraping the website nor distributing tools that enable others to do so.

1 year 4 weeks ago
robinbonnes
@robinbonnes Robin Bonnes

Why not?
It's almost the same as this: http://jasonmayes.com/projects/twitterApi/ ,but without needing to create a widget...

1 year 3 weeks ago
GSwapan
@GSwapan Golam Faruk Swapan

Twitter developer helps the users of their various difficulties.

1 year 4 weeks ago
GokulCO
@GokulCO Gokul Chand

somebody plz confirm all abt this.

29 weeks 2 days ago
webnoetic
@webnoetic WEBNOETIC

@exporttweet is a great solution for this. ExportTweet (https://www.exporttweet.com) allows user to download the tweets of the user you are following. You can also setup automatic job to download your home timeline tweets.

23 weeks 6 days ago