Right, so with the user_timeline call, youâll find the correct favorite_count value inside the retweeted_status object of the Tweet (for retweets).
Example, from my user timeline today - Iâve marked the relevant values with **. If I look at my timeline on the web, I see 6.1K RTs and 4K likes for this retweet, which aligns with the values in the JSON for the original Tweet.
{
"created_at": "Tue Aug 16 22:02:26 +0000 2016",
"id": 765670078457184256,
"id_str": "765670078457184256",
"text": "RT @mathiasverraes: There are only two hard problems in distributed systems: 2. Exactly-once delivery 1. Guaranteed order of messages 2. EâŚ",
"truncated": false,
"entities": {
"hashtags": [
],
"symbols": [
],
"user_mentions": [
{
"screen_name": "mathiasverraes",
"name": "Mathias Verraes",
"id": 17210045,
"id_str": "17210045",
"indices": [
3,
18
]
}
],
"urls": [
]
},
"source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter for iPhone</a>",
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 786491,
"id_str": "786491",
"name": "Andy Piper aka Pipes",
"screen_name": "andypiper",
"location": "Kingston upon Thames, London",
"description": "I'm on the @TwitterDev team, supporting and listening to developers working on the Twitter platform. Code, community, and respect. #HeForShe",
"url": "https://t.co/doP36jplFL",
"entities": {
"url": {
"urls": [
{
"url": "https://t.co/doP36jplFL",
"expanded_url": "https://www.justgiving.com/fundraising/Debbie-Piper18",
"display_url": "justgiving.com/fundraising/DeâŚ",
"indices": [
0,
23
]
}
]
},
"description": {
"urls": [
]
}
},
"protected": false,
"followers_count": 13621,
"friends_count": 3884,
"listed_count": 780,
"created_at": "Wed Feb 21 15:14:48 +0000 2007",
"favourites_count": 67536,
"utc_offset": 3600,
"time_zone": "London",
"geo_enabled": true,
"verified": false,
"statuses_count": 90775,
"lang": "en",
"contributors_enabled": false,
"is_translator": false,
"is_translation_enabled": false,
"profile_background_color": "ACDEEE",
"profile_background_image_url": "http://abs.twimg.com/images/themes/theme18/bg.gif",
"profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme18/bg.gif",
"profile_background_tile": false,
"profile_image_url": "http://pbs.twimg.com/profile_images/758942034195390464/JKfZFVIM_normal.jpg",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/758942034195390464/JKfZFVIM_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/786491/1468424285",
"profile_link_color": "6EA8E6",
"profile_sidebar_border_color": "FFFFFF",
"profile_sidebar_fill_color": "F6F6F6",
"profile_text_color": "333333",
"profile_use_background_image": true,
"has_extended_profile": true,
"default_profile": false,
"default_profile_image": false,
"following": false,
"follow_request_sent": false,
"notifications": false
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"retweeted_status": {
"created_at": "Fri Aug 14 18:40:52 +0000 2015",
"id": 632260618599403520,
"id_str": "632260618599403520",
"text": "There are only two hard problems in distributed systems: 2. Exactly-once delivery 1. Guaranteed order of messages 2. Exactly-once delivery",
"truncated": false,
"entities": {
"hashtags": [
],
"symbols": [
],
"user_mentions": [
],
"urls": [
]
},
"source": "<a href=\"http://twitter.com/download/android\" rel=\"nofollow\">Twitter for Android</a>",
"in_reply_to_status_id": null,
"in_reply_to_status_id_str": null,
"in_reply_to_user_id": null,
"in_reply_to_user_id_str": null,
"in_reply_to_screen_name": null,
"user": {
"id": 17210045,
"id_str": "17210045",
"name": "Mathias Verraes",
"screen_name": "mathiasverraes",
"location": "Belgium",
"description": "Student of Systems ⢠Meddler of Models ⢠Labourer of Legacy",
"url": "http://t.co/wAktz2GjBa",
"entities": {
"url": {
"urls": [
{
"url": "http://t.co/wAktz2GjBa",
"expanded_url": "http://verraes.net",
"display_url": "verraes.net",
"indices": [
0,
22
]
}
]
},
"description": {
"urls": [
]
}
},
"protected": false,
"followers_count": 6163,
"friends_count": 215,
"listed_count": 297,
"created_at": "Thu Nov 06 12:35:30 +0000 2008",
"favourites_count": 2414,
"utc_offset": 7200,
"time_zone": "Brussels",
"geo_enabled": false,
"verified": false,
"statuses_count": 17005,
"lang": "en",
"contributors_enabled": false,
"is_translator": false,
"is_translation_enabled": false,
"profile_background_color": "C6E2EE",
"profile_background_image_url": "http://pbs.twimg.com/profile_background_images/573049942643625984/SD4Zbuy-.png",
"profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/573049942643625984/SD4Zbuy-.png",
"profile_background_tile": true,
"profile_image_url": "http://pbs.twimg.com/profile_images/695594250315010050/SZXk1Z6b_normal.jpg",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/695594250315010050/SZXk1Z6b_normal.jpg",
"profile_banner_url": "https://pbs.twimg.com/profile_banners/17210045/1454401848",
"profile_link_color": "1692A5",
"profile_sidebar_border_color": "FFFFFF",
"profile_sidebar_fill_color": "DAECF4",
"profile_text_color": "663B12",
"profile_use_background_image": false,
"has_extended_profile": true,
"default_profile": false,
"default_profile_image": false,
"following": false,
"follow_request_sent": false,
"notifications": false
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"is_quote_status": false,
**"retweet_count": 6136,**
**"favorite_count": 3987,**
"favorited": false,
"retweeted": true,
"lang": "en"
},
"is_quote_status": false,
**"retweet_count": 6136,**
**"favorite_count": 0,**
"favorited": false,
"retweeted": true,
"lang": "en"
}