Skip to content

Instantly share code, notes, and snippets.

@david-guzman
Created December 19, 2017 17:42
Show Gist options
  • Save david-guzman/65d8c604b9b4f418d6d52051c3c9b905 to your computer and use it in GitHub Desktop.
Save david-guzman/65d8c604b9b4f418d6d52051c3c9b905 to your computer and use it in GitHub Desktop.
Example response from Twitter Streaming API Resource URL https://stream.twitter.com/1.1/statuses/sample.json
{
"quote_count":0,
"contributors":null,
"truncated":false,
"text":"\u30d6\u30ed\u30b0\u8a18\u4e8b\u7d39\u4ecb\uff1a\u304a\u7d75\u304b\u304dPhone\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u307f\u305f #1\u300c\uff13\uff10\u5206\u3067\u7c21\u5358\u6a5f\u80fd\u306e\u69cb\u7bc9\u300d https://t.co/WL6HtrDJkP\n#xcode #iPhone #\u304a\u7d75\u304b\u304diPhone\u30a2\u30d7\u30ea #development https://t.co/bhYU6RycP6",
"is_quote_status":false,
"in_reply_to_status_id":null,
"reply_count":0,
"id":943164047268048896,
"favorite_count":0,
"entities":{
"user_mentions":[
],
"symbols":[
],
"hashtags":[
{
"indices":[
67,
73
],
"text":"xcode"
},
{
"indices":[
74,
81
],
"text":"iPhone"
},
{
"indices":[
82,
96
],
"text":"\u304a\u7d75\u304b\u304diPhone\u30a2\u30d7\u30ea"
},
{
"indices":[
97,
109
],
"text":"development"
}
],
"urls":[
{
"url":"https://t.co/WL6HtrDJkP",
"indices":[
43,
66
],
"expanded_url":"http://bit.ly/1GESrEz",
"display_url":"bit.ly/1GESrEz"
}
],
"media":[
{
"expanded_url":"https://twitter.com/ideacompo/status/943164047268048896/photo/1",
"display_url":"pic.twitter.com/bhYU6RycP6",
"url":"https://t.co/bhYU6RycP6",
"media_url_https":"https://pbs.twimg.com/media/DRbKs5aVQAEvgD8.jpg",
"id_str":"943164044655017985",
"sizes":{
"large":{
"h":944,
"resize":"fit",
"w":1240
},
"small":{
"h":518,
"resize":"fit",
"w":680
},
"medium":{
"h":914,
"resize":"fit",
"w":1200
},
"thumb":{
"h":150,
"resize":"crop",
"w":150
}
},
"indices":[
110,
133
],
"type":"photo",
"id":943164044655017985,
"media_url":"http://pbs.twimg.com/media/DRbKs5aVQAEvgD8.jpg"
}
]
},
"retweeted":false,
"coordinates":null,
"timestamp_ms":"1513702806666",
"source":"<a href=\"http://wordpress.ideacompo.com/\" rel=\"nofollow\">ideacompo</a>",
"in_reply_to_screen_name":null,
"id_str":"943164047268048896",
"display_text_range":[
0,
109
],
"retweet_count":0,
"in_reply_to_user_id":null,
"favorited":false,
"user":{
"follow_request_sent":null,
"profile_use_background_image":false,
"default_profile_image":false,
"id":3030337296,
"default_profile":false,
"verified":false,
"profile_image_url_https":"https://pbs.twimg.com/profile_images/858540361785856000/idInjgCD_normal.jpg",
"profile_sidebar_fill_color":"000000",
"profile_text_color":"000000",
"followers_count":2848,
"profile_sidebar_border_color":"000000",
"id_str":"3030337296",
"profile_background_color":"000000",
"listed_count":19,
"profile_background_image_url_https":"https://abs.twimg.com/images/themes/theme1/bg.png",
"utc_offset":null,
"statuses_count":18644,
"description":"\u4ed5\u4e8b\u306f\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u3001\u8da3\u5473\u306f\u30e2\u30ce\u4f5c\u308a\u3001\u65e5\u3005\u66f8\u3044\u3066\u3044\u308b\u30d6\u30ed\u30b0\u3092\u30a2\u30a6\u30c8\u30d7\u30c3\u30c8\u3059\u308b\u305f\u3081\u306b\u3064\u3076\u3084\u3044\u3066\u3044\u307e\u3059\u3002",
"friends_count":4659,
"location":"Tokyo",
"profile_link_color":"ABB8C2",
"profile_image_url":"http://pbs.twimg.com/profile_images/858540361785856000/idInjgCD_normal.jpg",
"following":null,
"geo_enabled":false,
"profile_banner_url":"https://pbs.twimg.com/profile_banners/3030337296/1493526970",
"profile_background_image_url":"http://abs.twimg.com/images/themes/theme1/bg.png",
"name":"ideacompo",
"lang":"ja",
"profile_background_tile":false,
"favourites_count":212,
"screen_name":"ideacompo",
"notifications":null,
"url":"http://wordpress.ideacompo.com",
"created_at":"Thu Feb 19 15:07:49 +0000 2015",
"contributors_enabled":false,
"time_zone":null,
"protected":false,
"translator_type":"none",
"is_translator":false
},
"geo":null,
"in_reply_to_user_id_str":null,
"possibly_sensitive":false,
"lang":"ja",
"created_at":"Tue Dec 19 17:00:06 +0000 2017",
"filter_level":"low",
"in_reply_to_status_id_str":null,
"place":null,
"extended_entities":{
"media":[
{
"expanded_url":"https://twitter.com/ideacompo/status/943164047268048896/photo/1",
"display_url":"pic.twitter.com/bhYU6RycP6",
"url":"https://t.co/bhYU6RycP6",
"media_url_https":"https://pbs.twimg.com/media/DRbKs5aVQAEvgD8.jpg",
"id_str":"943164044655017985",
"sizes":{
"large":{
"h":944,
"resize":"fit",
"w":1240
},
"small":{
"h":518,
"resize":"fit",
"w":680
},
"medium":{
"h":914,
"resize":"fit",
"w":1200
},
"thumb":{
"h":150,
"resize":"crop",
"w":150
}
},
"indices":[
110,
133
],
"type":"photo",
"id":943164044655017985,
"media_url":"http://pbs.twimg.com/media/DRbKs5aVQAEvgD8.jpg"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment