How to extract images from tweets?

I'm using the Standart API of Twitter to extract images from tweets. For this I use design
$utimeline = $connection->get("statuses/user_timeline", ["screen_name" => "$_GET[q]", "count" => COUNT_TWITTS]); 
$utimeline=json_decode(json_encode($utimeline), TRUE);

from the library twitteroauth for php. It is noteworthy that if the picture is https://pbs.twimg.com/media/, it has in the subarrays of the array $utimeline. But if the picture is in https://pbs.twimg.com/ad_img/, then it is not in any subarray. By the way, direct parsing tweets on php gives the same result.

Question: What means the Twitter API should I use to solve the problem of retrieving images?
April 3rd 20 at 18:48
0 answer

Find more questions by tags Twitter