GET statuses/home_timeline

Updated on Wed, 2012-09-05 10:06

Returns a collection of the most recent Tweets and retweets posted by the authenticating user and the users they follow. The home timeline is central to how most users interact with the Twitter service.

Up to 800 Tweets are obtainable on the home timeline. It is more volatile for users that follow many users or follow users who tweet frequently.

See Working with Timelines for instructions on traversing timelines efficiently.

Resource URL

https://api.twitter.com/1.1/statuses/home_timeline.json

Parameters

count optional

Specifies the number of records to retrieve. Must be less than or equal to 200. Defaults to 20.

Example Values: 5

since_id optional

Returns results with an ID greater than (that is, more recent than) the specified ID. There are limits to the number of Tweets which can be accessed through the API. If the limit of Tweets has occured since the since_id, the since_id will be forced to the oldest ID available.

Example Values: 12345

max_id optional

Returns results with an ID less than (that is, older than) or equal to the specified ID.

Example Values: 54321

trim_user optional

When set to either true, t or 1, each tweet returned in a timeline will include a user object including only the status authors numerical ID. Omit this parameter to receive the complete user object.

Example Values: true

exclude_replies optional

This parameter will prevent replies from appearing in the returned timeline. Using exclude_replies with the count parameter will mean you will receive up-to count tweets — this is because the count parameter retrieves that many tweets before filtering out retweets and replies.

Example Values: true

contributor_details optional

This parameter enhances the contributors element of the status response to include the screen_name of the contributor. By default only the user_id of the contributor is included.

Example Values: true

include_entities optional

The entities node will be disincluded when set to false.

Example Values: false

Example Request

GET

https://api.twitter.com/1.1/statuses/home_timeline.json

  1. [
  2.   {
  3.     "coordinates": null,
  4.     "truncated": false,
  5.     "created_at": "Tue Aug 28 21:16:23 +0000 2012",
  6.     "favorited": false,
  7.     "id_str": "240558470661799936",
  8.     "in_reply_to_user_id_str": null,
  9.     "entities": {
  10.       "urls": [
  11.  
  12.       ],
  13.       "hashtags": [
  14.  
  15.       ],
  16.       "user_mentions": [
  17.  
  18.       ]
  19.     },
  20.     "text": "just another test",
  21.     "contributors": null,
  22.     "id": 240558470661799936,
  23.     "retweet_count": 0,
  24.     "in_reply_to_status_id_str": null,
  25.     "geo": null,
  26.     "retweeted": false,
  27.     "in_reply_to_user_id": null,
  28.     "place": null,
  29.     "source": "<a href=\"http://realitytechnicians.com\" rel=\"nofollow\">OAuth Dancer Reborn</a>",
  30.     "user": {
  31.       "name": "OAuth Dancer",
  32.       "profile_sidebar_fill_color": "DDEEF6",
  33.       "profile_background_tile": true,
  34.       "profile_sidebar_border_color": "C0DEED",
  35.       "profile_image_url": "http://a0.twimg.com/profile_images/730275945/oauth-dancer_normal.jpg",
  36.       "created_at": "Wed Mar 03 19:37:35 +0000 2010",
  37.       "location": "San Francisco, CA",
  38.       "follow_request_sent": false,
  39.       "id_str": "119476949",
  40.       "is_translator": false,
  41.       "profile_link_color": "0084B4",
  42.       "entities": {
  43.         "url": {
  44.           "urls": [
  45.             {
  46.               "expanded_url": null,
  47.               "url": "http://bit.ly/oauth-dancer",
  48.               "indices": [
  49.                 0,
  50.                 26
  51.               ],
  52.               "display_url": null
  53.             }
  54.           ]
  55.         },
  56.         "description": null
  57.       },
  58.       "default_profile": false,
  59.       "url": "http://bit.ly/oauth-dancer",
  60.       "contributors_enabled": false,
  61.       "favourites_count": 7,
  62.       "utc_offset": null,
  63.       "profile_image_url_https": "https://si0.twimg.com/profile_images/730275945/oauth-dancer_normal.jpg",
  64.       "id": 119476949,
  65.       "listed_count": 1,
  66.       "profile_use_background_image": true,
  67.       "profile_text_color": "333333",
  68.       "followers_count": 28,
  69.       "lang": "en",
  70.       "protected": false,
  71.       "geo_enabled": true,
  72.       "notifications": false,
  73.       "description": "",
  74.       "profile_background_color": "C0DEED",
  75.       "verified": false,
  76.       "time_zone": null,
  77.       "profile_background_image_url_https": "https://si0.twimg.com/profile_background_images/80151733/oauth-dance.png",
  78.       "statuses_count": 166,
  79.       "profile_background_image_url": "http://a0.twimg.com/profile_background_images/80151733/oauth-dance.png",
  80.       "default_profile_image": false,
  81.       "friends_count": 14,
  82.       "following": false,
  83.       "show_all_inline_media": false,
  84.       "screen_name": "oauth_dancer"
  85.     },
  86.     "in_reply_to_screen_name": null,
  87.     "in_reply_to_status_id": null
  88.   },
  89.   {
  90.     "coordinates": {
  91.       "coordinates": [
  92.         -122.25831,
  93.         37.871609
  94.       ],
  95.       "type": "Point"
  96.     },
  97.     "truncated": false,
  98.     "created_at": "Tue Aug 28 21:08:15 +0000 2012",
  99.     "favorited": false,
  100.     "id_str": "240556426106372096",
  101.     "in_reply_to_user_id_str": null,
  102.     "entities": {
  103.       "urls": [
  104.         {
  105.           "expanded_url": "http://blogs.ischool.berkeley.edu/i290-abdt-s12/",
  106.           "url": "http://t.co/bfj7zkDJ",
  107.           "indices": [
  108.             79,
  109.             99
  110.           ],
  111.           "display_url": "blogs.ischool.berkeley.edu/i290-abdt-s12/"
  112.         }
  113.       ],
  114.       "hashtags": [
  115.  
  116.       ],
  117.       "user_mentions": [
  118.         {
  119.           "name": "Cal",
  120.           "id_str": "17445752",
  121.           "id": 17445752,
  122.           "indices": [
  123.             60,
  124.             64
  125.           ],
  126.           "screen_name": "Cal"
  127.         },
  128.         {
  129.           "name": "Othman Laraki",
  130.           "id_str": "20495814",
  131.           "id": 20495814,
  132.           "indices": [
  133.             70,
  134.             77
  135.           ],
  136.           "screen_name": "othman"
  137.         }
  138.       ]
  139.     },
  140.     "text": "lecturing at the \"analyzing big data with twitter\" class at @cal with @othman  http://t.co/bfj7zkDJ",
  141.     "contributors": null,
  142.     "id": 240556426106372096,
  143.     "retweet_count": 3,
  144.     "in_reply_to_status_id_str": null,
  145.     "geo": {
  146.       "coordinates": [
  147.         37.871609,
  148.         -122.25831
  149.       ],
  150.       "type": "Point"
  151.     },
  152.     "retweeted": false,
  153.     "possibly_sensitive": false,
  154.     "in_reply_to_user_id": null,
  155.     "place": {
  156.       "name": "Berkeley",
  157.       "country_code": "US",
  158.       "country": "United States",
  159.       "attributes": {
  160.       },
  161.       "url": "http://api.twitter.com/1/geo/id/5ef5b7f391e30aff.json",
  162.       "id": "5ef5b7f391e30aff",
  163.       "bounding_box": {
  164.         "coordinates": [
  165.           [
  166.             [
  167.               -122.367781,
  168.               37.835727
  169.             ],
  170.             [
  171.               -122.234185,
  172.               37.835727
  173.             ],
  174.             [
  175.               -122.234185,
  176.               37.905824
  177.             ],
  178.             [
  179.               -122.367781,
  180.               37.905824
  181.             ]
  182.           ]
  183.         ],
  184.         "type": "Polygon"
  185.       },
  186.       "full_name": "Berkeley, CA",
  187.       "place_type": "city"
  188.     },
  189.     "source": "<a href=\"http://www.apple.com\" rel=\"nofollow\">Safari on iOS</a>",
  190.     "user": {
  191.       "name": "Raffi Krikorian",
  192.       "profile_sidebar_fill_color": "DDEEF6",
  193.       "profile_background_tile": false,
  194.       "profile_sidebar_border_color": "C0DEED",
  195.       "profile_image_url": "http://a0.twimg.com/profile_images/1270234259/raffi-headshot-casual_normal.png",
  196.       "created_at": "Sun Aug 19 14:24:06 +0000 2007",
  197.       "location": "San Francisco, California",
  198.       "follow_request_sent": false,
  199.       "id_str": "8285392",
  200.       "is_translator": false,
  201.       "profile_link_color": "0084B4",
  202.       "entities": {
  203.         "url": {
  204.           "urls": [
  205.             {
  206.               "expanded_url": "http://about.me/raffi.krikorian",
  207.               "url": "http://t.co/eNmnM6q",
  208.               "indices": [
  209.                 0,
  210.                 19
  211.               ],
  212.               "display_url": "about.me/raffi.krikorian"
  213.             }
  214.           ]
  215.         },
  216.         "description": {
  217.           "urls": [
  218.  
  219.           ]
  220.         }
  221.       },
  222.       "default_profile": true,
  223.       "url": "http://t.co/eNmnM6q",
  224.       "contributors_enabled": false,
  225.       "favourites_count": 724,
  226.       "utc_offset": -28800,
  227.       "profile_image_url_https": "https://si0.twimg.com/profile_images/1270234259/raffi-headshot-casual_normal.png",
  228.       "id": 8285392,
  229.       "listed_count": 619,
  230.       "profile_use_background_image": true,
  231.       "profile_text_color": "333333",
  232.       "followers_count": 18752,
  233.       "lang": "en",
  234.       "protected": false,
  235.       "geo_enabled": true,
  236.       "notifications": false,
  237.       "description": "Director of @twittereng's Platform Services. I break things.",
  238.       "profile_background_color": "C0DEED",
  239.       "verified": false,
  240.       "time_zone": "Pacific Time (US & Canada)",
  241.       "profile_background_image_url_https": "https://si0.twimg.com/images/themes/theme1/bg.png",
  242.       "statuses_count": 5007,
  243.       "profile_background_image_url": "http://a0.twimg.com/images/themes/theme1/bg.png",
  244.       "default_profile_image": false,
  245.       "friends_count": 701,
  246.       "following": true,
  247.       "show_all_inline_media": true,
  248.       "screen_name": "raffi"
  249.     },
  250.     "in_reply_to_screen_name": null,
  251.     "in_reply_to_status_id": null
  252.   },
  253.   {
  254.     "coordinates": null,
  255.     "truncated": false,
  256.     "created_at": "Tue Aug 28 19:59:34 +0000 2012",
  257.     "favorited": false,
  258.     "id_str": "240539141056638977",
  259.     "in_reply_to_user_id_str": null,
  260.     "entities": {
  261.       "urls": [
  262.  
  263.       ],
  264.       "hashtags": [
  265.  
  266.       ],
  267.       "user_mentions": [
  268.  
  269.       ]
  270.     },
  271.     "text": "You'd be right more often if you thought you were wrong.",
  272.     "contributors": null,
  273.     "id": 240539141056638977,
  274.     "retweet_count": 1,
  275.     "in_reply_to_status_id_str": null,
  276.     "geo": null,
  277.     "retweeted": false,
  278.     "in_reply_to_user_id": null,
  279.     "place": null,
  280.     "source": "web",
  281.     "user": {
  282.       "name": "Taylor Singletary",
  283.       "profile_sidebar_fill_color": "FBFBFB",
  284.       "profile_background_tile": true,
  285.       "profile_sidebar_border_color": "000000",
  286.       "profile_image_url": "http://a0.twimg.com/profile_images/2546730059/f6a8zq58mg1hn0ha8vie_normal.jpeg",
  287.       "created_at": "Wed Mar 07 22:23:19 +0000 2007",
  288.       "location": "San Francisco, CA",
  289.       "follow_request_sent": false,
  290.       "id_str": "819797",
  291.       "is_translator": false,
  292.       "profile_link_color": "c71818",
  293.       "entities": {
  294.         "url": {
  295.           "urls": [
  296.             {
  297.               "expanded_url": "http://www.rebelmouse.com/episod/",
  298.               "url": "http://t.co/Lxw7upbN",
  299.               "indices": [
  300.                 0,
  301.                 20
  302.               ],
  303.               "display_url": "rebelmouse.com/episod/"
  304.             }
  305.           ]
  306.         },
  307.         "description": {
  308.           "urls": [
  309.  
  310.           ]
  311.         }
  312.       },
  313.       "default_profile": false,
  314.       "url": "http://t.co/Lxw7upbN",
  315.       "contributors_enabled": false,
  316.       "favourites_count": 15990,
  317.       "utc_offset": -28800,
  318.       "profile_image_url_https": "https://si0.twimg.com/profile_images/2546730059/f6a8zq58mg1hn0ha8vie_normal.jpeg",
  319.       "id": 819797,
  320.       "listed_count": 340,
  321.       "profile_use_background_image": true,
  322.       "profile_text_color": "D20909",
  323.       "followers_count": 7126,
  324.       "lang": "en",
  325.       "protected": false,
  326.       "geo_enabled": true,
  327.       "notifications": false,
  328.       "description": "Reality Technician, Twitter API team, synthesizer enthusiast; a most excellent adventure in timelines. I know it's hard to believe in something you can't see.",
  329.       "profile_background_color": "000000",
  330.       "verified": false,
  331.       "time_zone": "Pacific Time (US & Canada)",
  332.       "profile_background_image_url_https": "https://si0.twimg.com/profile_background_images/643655842/hzfv12wini4q60zzrthg.png",
  333.       "statuses_count": 18076,
  334.       "profile_background_image_url": "http://a0.twimg.com/profile_background_images/643655842/hzfv12wini4q60zzrthg.png",
  335.       "default_profile_image": false,
  336.       "friends_count": 5444,
  337.       "following": true,
  338.       "show_all_inline_media": true,
  339.       "screen_name": "episod"
  340.     },
  341.     "in_reply_to_screen_name": null,
  342.     "in_reply_to_status_id": null
  343.   }
  344. ]