I’m using the nodejs twitter npm for making authenticated calls to twitter.
The call im making is ‘statuses/user_timeline’ which gives me the following json object
[{“created_at”:“Wed Oct 05 10:57:04 +0000 2016”,
“id”:783622026544107500,
“id_str”:“783622026544107521”,
“text”:“PS. Most of y tweets are meant for testing purposes only!\n\n#nohashtags #testing”,
“truncated”:false,
“entities”:{“hashtags”:[{“text”:“nohashtags”,
“indices”:[59,70]},
{“text”:“testing”,“indices”:[71,79]}],
“symbols”:[],“user_mentions”:[],
“urls”:[]},
“source”:"<a href=“http://twitter.com” rel=“nofollow”>Twitter Web Client",
“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”:68600,
“id_str”:“68576”,
“name”:“melinda threeza”,
“screen_name”:“melTvaz”,
“location”:“Panaji, India”,
“description”:"",
“url”:null,
“entities”:{“description”:{“urls”:]}},
“protected”:false,
“followers_count”:0,
“friends_count”:15,
“listed_count”:0,
“created_at”:“Mon Aug 29 10:00:14 +0000 2016”,
“favourites_count”:5,
“geo_enabled”:false,
“verified”:false,
“statuses_count”:10,
“lang”:“en”,
“contributors_enabled”:false,
“is_translator”:false,
“is_translation_enabled”:false,
“has_extended_profile”:false,
“default_profile”:true,
“default_profile_image”:true,
“following”:false,
“follow_request_sent”:false,
“notifications”:false},
“geo”:null,
“coordinates”:null,
“place”:null,
“contributors”:null,
“is_quote_status”:false,
“retweet_count”:0,
“favorite_count”:1,
“favorited”:true,
“retweeted”:false,
“lang”:“en”}]
The favourites_count is correct. The “retweet_count” however comes in as 0 for all tweets.
Using ‘statuses/show/783622026544107521’ to retrieve a single tweet object still gives me retweet_couint as 0
{“created_at”:“Wed Oct 05 10:57:04 +0000 2016”,
“id”:783622026544107500,
“id_str”:“783622026544107521”,
“text”:“PS. Most of y tweets are meant for testing purposes only!\n\n#nohashtags #testing”,
“truncated”:false,
“entities”:{“hashtags”:[{“text”:“nohashtags”,“indices”:[59,70]},{“text”:“testing”,“indices”:[71,79]}],“symbols”:[],“user_mentions”:[],“urls”:[]},
“source”:"<a href=“http://twitter.com” rel=“nofollow”>Twitter Web Client",
“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”:68600,“id_str”:“68576”,
“name”:“melinda threeza”,
“screen_name”:“melTvaz”,
“location”:“Panaji, India”,“description”:"",
“url”:null,“entities”:{“description”:{“urls”:[]}},
“protected”:false,
“followers_count”:0,
“friends_count”:15,
“listed_count”:0,
“created_at”:“Mon Aug 29 10:00:14 +0000 2016”,
“favourites_count”:5,
“utc_offset”:null,
“time_zone”:null,
“geo_enabled”:false,
“verified”:false,
“statuses_count”:10,
“lang”:“en”,
“contributors_enabled”:false,
“has_extended_profile”:false,
“default_profile”:true,
“default_profile_image”:true,
“following”:false,
“follow_request_sent”:false,
“notifications”:false},
“contributors”:null,
“is_quote_status”:false,
“retweet_count”:0,
“favorite_count”:1,
“favorited”:true,
“retweeted”:false,“lang”:“en”}
the retweet_count value seems to be showing 0 in all cases.