Skip to content

Instantly share code, notes, and snippets.

@david-guzman
Created January 12, 2018 19:44
Show Gist options
  • Save david-guzman/0f22a9855c30678ed021cf5fae1df214 to your computer and use it in GitHub Desktop.
Save david-guzman/0f22a9855c30678ed021cf5fae1df214 to your computer and use it in GitHub Desktop.
Example response from Twitter Standard search API obtained by wsclient-app
{
"statuses":[
{
"created_at":"Wed Jan 03 23:29:25 +0000 2018",
"id":948697840452341760,
"id_str":"948697840452341760",
"text":"RT @Bobilly10: Once again, the current NHS crisis being blamed on winter flu and ageing population! No one denies these are factors but sto\u2026",
"truncated":false,
"metadata":{
"iso_language_code":"en",
"result_type":"recent"
},
"source":"\u003ca href=\"http:\/\/twitter.com\/download\/iphone\" rel=\"nofollow\"\u003eTwitter for iPhone\u003c\/a\u003e",
"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":{ },
"geo":null,
"coordinates":null,
"place":null,
"contributors":null,
"retweeted_status":{
"created_at":"Wed Jan 03 12:35:54 +0000 2018",
"id":948533374678904834,
"id_str":"948533374678904834",
"text":"Once again, the current NHS crisis being blamed on winter flu and ageing population! No one denies these are factor\u2026 https:\/\/t.co\/DTnxg3ZSaJ",
"truncated":true,
"metadata":{
"iso_language_code":"en",
"result_type":"recent"
},
"source":"\u003ca href=\"http:\/\/twitter.com\/#!\/download\/ipad\" rel=\"nofollow\"\u003eTwitter for iPad\u003c\/a\u003e",
"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":{ },
"geo":null,
"coordinates":null,
"place":null,
"contributors":null,
"is_quote_status":false,
"retweet_count":264,
"favorite_count":448,
"favorited":false,
"retweeted":false,
"lang":"en"
},
"is_quote_status":false,
"retweet_count":264,
"favorite_count":0,
"favorited":false,
"retweeted":false,
"lang":"en"
}
],
"search_metadata":{
"completed_in":0.046,
"max_id":948705515823083521,
"max_id_str":"948705515823083521",
"next_results":"?max_id=948697840452341759&q=flu%20until%3A2018-01-04&geocode=51.538000%2C-0.115000%2C10mi&lang=en&result_type=recent",
"query":"flu+until%3A2018-01-04",
"refresh_url":"?since_id=948705515823083521&q=flu%20until%3A2018-01-04&geocode=51.538000%2C-0.115000%2C10mi&lang=en&result_type=recent",
"count":15,
"since_id":0,
"since_id_str":"0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment