@dudoan1234: The user object includes user information so it would not be a good place to look for the Tweet image.
Let’s take a look at an example. See the following Tweet:
Now, try to find the image URL.
$ twurl -H api.twitter.com "/1.1/statuses/show/919046353770094593.json?trim_user=true"
{
"created_at": "Sat Oct 14 03:45:00 +0000 2017",
"id": 919046353770094593,
"id_str": "919046353770094593",
"text": "coffee split media key https://t.co/atC63Vn7ZW",
"truncated": false,
"entities": {
"hashtags": [],
"symbols": [],
"user_mentions": [],
"urls": [],
"media": [
{
"id": 908573900237180928,
"id_str": "908573900237180928",
"indices": [
23,
46
],
"media_url": "http://pbs.twimg.com/media/DJvnJf_UEAAXnzC.jpg",
"media_url_https": "https://pbs.twimg.com/media/DJvnJf_UEAAXnzC.jpg",
"url": "https://t.co/atC63Vn7ZW",
"display_url": "pic.twitter.com/atC63Vn7ZW",
"expanded_url": "https://twitter.com/apimctestface/status/919046353770094593/photo/1",
"type": "photo",
"sizes": {
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"small": {
"w": 680,
"h": 356,
"resize": "fit"
},
"medium": {
"w": 1200,
"h": 628,
"resize": "fit"
},
"large": {
"w": 2048,
"h": 1072,
"resize": "fit"
}
}
}
]
},
"extended_entities": {
"media": [
{
"id": 908573900237180928,
"id_str": "908573900237180928",
"indices": [
23,
46
],
"media_url": "http://pbs.twimg.com/media/DJvnJf_UEAAXnzC.jpg",
"media_url_https": "https://pbs.twimg.com/media/DJvnJf_UEAAXnzC.jpg",
"url": "https://t.co/atC63Vn7ZW",
"display_url": "pic.twitter.com/atC63Vn7ZW",
"expanded_url": "https://twitter.com/apimctestface/status/919046353770094593/photo/1",
"type": "photo",
"sizes": {
"thumb": {
"w": 150,
"h": 150,
"resize": "crop"
},
"small": {
"w": 680,
"h": 356,
"resize": "fit"
},
"medium": {
"w": 1200,
"h": 628,
"resize": "fit"
},
"large": {
"w": 2048,
"h": 1072,
"resize": "fit"
}
}
}
]
},
"source": "<a href=\"https://ads-api.twitter.com\" rel=\"nofollow\">Ads API Internal Test App</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": 756201191646691328,
"id_str": "756201191646691328"
},
"geo": null,
"coordinates": null,
"place": null,
"contributors": null,
"is_quote_status": false,
"retweet_count": 0,
"favorite_count": 0,
"favorited": false,
"retweeted": false,
"possibly_sensitive": false,
"possibly_sensitive_appealable": false,
"scopes": {
"followers": false
},
"lang": "en"
}
Hope this helps. Thanks!