Sometimes missing media entities in api-result


#1

Hello,

we are encountering missing info about attached pictures from time to time when calling the api.

Here are 2 example tweets:


…they are pretty similar, both containing 140 chars + one attached image

API call using tweet_mode=extended
’1.1/statuses/show/’

for the tweet 785836022475132929 we do not receive the picture
for the tweet 785835592760328192 we receive the picture

API results (btw. i had to remove the links because as new user i am only allowed to post 5 links - marked with )

785836022475132929:
stdClass Object
(
[created_at] => Tue Oct 11 13:34:42 +0000 2016
[id] => 785836022475132929
[id_str] => 785836022475132929
[full_text] => extended_entitiesextended_entitiesextended_entitiesextended_entitiesextended_entitiesextended_entitiesextended_entitiesextended_entitiesdddd
[truncated] =>
[display_text_range] => Array
(
[0] => 0
[1] => 140
)

[entities] => stdClass Object
    (
        [hashtags] => Array
            (
            )

        [symbols] => Array
            (
            )

        [user_mentions] => Array
            (
            )

        [urls] => Array
            (
            )

    )

[source] => Twitter Web Client
[in_reply_to_status_id] => 
[in_reply_to_status_id_str] => 
[in_reply_to_user_id] => 
[in_reply_to_user_id_str] => 
[in_reply_to_screen_name] => 
[user] => stdClass Object
    (
        [id] => 453781759
        [id_str] => 453781759
        [name] => Die Socialisten Dev2
        [screen_name] => socialistendev2
        [location] => Vienna
        [description] => 
        [url] => 
        [entities] => stdClass Object
            (
                [url] => stdClass Object
                    (
                        [urls] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [url] => 
                                        [expanded_url] => 
                                        [display_url] => 
                                        [indices] => Array
                                            (
                                                [0] => 0
                                                [1] => 22
                                            )

                                    )

                            )

                    )

                [description] => stdClass Object
                    (
                        [urls] => Array
                            (
                            )

                    )

            )

        [protected] => 
        [followers_count] => 8
        [friends_count] => 6
        [listed_count] => 1
        [created_at] => Tue Jan 03 08:29:06 +0000 2012
        [favourites_count] => 2
        [utc_offset] => 7200
        [time_zone] => Amsterdam
        [geo_enabled] => 
        [verified] => 
        [statuses_count] => 214
        [lang] => en
        [contributors_enabled] => 
        [is_translator] => 
        [is_translation_enabled] => 
        [profile_background_color] => C0DEED
        [profile_background_image_url] => 
        [profile_background_image_url_https] => 
        [profile_background_tile] => 
        [profile_image_url] => 
        [profile_image_url_https] => /zrkABdzM_normal.png
        [profile_link_color] => 0084B4
        [profile_sidebar_border_color] => C0DEED
        [profile_sidebar_fill_color] => DDEEF6
        [profile_text_color] => 333333
        [profile_use_background_image] => 1
        [has_extended_profile] => 
        [default_profile] => 1
        [default_profile_image] => 
        [following] => 
        [follow_request_sent] => 
        [notifications] => 
    )

[geo] => 
[coordinates] => 
[place] => 
[contributors] => 
[is_quote_status] => 
[retweet_count] => 0
[favorite_count] => 0
[favorited] => 
[retweeted] => 
[lang] => en

)


785835592760328192:

stdClass Object
(
[created_at] => Tue Oct 11 13:33:00 +0000 2016
[id] => 785835592760328192
[id_str] => 785835592760328192
[full_text] => (object)(object)(object)(object)(object)(object)(object)(object)(object)(object)(object)(object)(object)(object)(object)(object)(object)(ob)
[truncated] =>
[display_text_range] => Array
(
[0] => 0
[1] => 140
)

[entities] => stdClass Object
    (
        [hashtags] => Array
            (
            )

        [symbols] => Array
            (
            )

        [user_mentions] => Array
            (
            )

        [urls] => Array
            (
            )

        [media] => Array
            (
                [0] => stdClass Object
                    (
                        [id] => 785835547004731393
                        [id_str] => 785835547004731393
                        [indices] => Array
                            (
                                [0] => 141
                                [1] => 164
                            )

                        [media_url] => 
                        [media_url_https] => 
                        [url] => 
                        [display_url] => 
                        [expanded_url] => 
                        [type] => photo
                        [sizes] => stdClass Object
                            (
                                [small] => stdClass Object
                                    (
                                        [w] => 680
                                        [h] => 680
                                        [resize] => fit
                                    )

                                [thumb] => stdClass Object
                                    (
                                        [w] => 150
                                        [h] => 150
                                        [resize] => crop
                                    )

                                [large] => stdClass Object
                                    (
                                        [w] => 800
                                        [h] => 800
                                        [resize] => fit
                                    )

                                [medium] => stdClass Object
                                    (
                                        [w] => 800
                                        [h] => 800
                                        [resize] => fit
                                    )

                            )

                    )

            )

    )

[extended_entities] => stdClass Object
    (
        [media] => Array
            (
                [0] => stdClass Object
                    (
                        [id] => 785835547004731393
                        [id_str] => 785835547004731393
                        [indices] => Array
                            (
                                [0] => 141
                                [1] => 164
                            )

                        [media_url] => 
                        [media_url_https] => 
                        [url] => 
                        [display_url] => 
                        [expanded_url] => 
                        [type] => photo
                        [sizes] => stdClass Object
                            (
                                [small] => stdClass Object
                                    (
                                        [w] => 680
                                        [h] => 680
                                        [resize] => fit
                                    )

                                [thumb] => stdClass Object
                                    (
                                        [w] => 150
                                        [h] => 150
                                        [resize] => crop
                                    )

                                [large] => stdClass Object
                                    (
                                        [w] => 800
                                        [h] => 800
                                        [resize] => fit
                                    )

                                [medium] => stdClass Object
                                    (
                                        [w] => 800
                                        [h] => 800
                                        [resize] => fit
                                    )

                            )

                    )

            )

    )

[source] => Twitter Web Client
[in_reply_to_status_id] => 
[in_reply_to_status_id_str] => 
[in_reply_to_user_id] => 
[in_reply_to_user_id_str] => 
[in_reply_to_screen_name] => 
[user] => stdClass Object
    (
        [id] => 453781759
        [id_str] => 453781759
        [name] => Die Socialisten Dev2
        [screen_name] => socialistendev2
        [location] => Vienna
        [description] => 
        [url] => 
        [entities] => stdClass Object
            (
                [url] => stdClass Object
                    (
                        [urls] => Array
                            (
                                [0] => stdClass Object
                                    (
                                        [url] => 
                                        [expanded_url] => 
                                        [display_url] => 
                                        [indices] => Array
                                            (
                                                [0] => 0
                                                [1] => 22
                                            )

                                    )

                            )

                    )

                [description] => stdClass Object
                    (
                        [urls] => Array
                            (
                            )

                    )

            )

        [protected] => 
        [followers_count] => 8
        [friends_count] => 6
        [listed_count] => 1
        [created_at] => Tue Jan 03 08:29:06 +0000 2012
        [favourites_count] => 2
        [utc_offset] => 7200
        [time_zone] => Amsterdam
        [geo_enabled] => 
        [verified] => 
        [statuses_count] => 214
        [lang] => en
        [contributors_enabled] => 
        [is_translator] => 
        [is_translation_enabled] => 
        [profile_background_color] => C0DEED
        [profile_background_image_url] => 
        [profile_background_image_url_https] => 
        [profile_background_tile] => 
        [profile_image_url] => 
        [profile_image_url_https] => 
        [profile_link_color] => 0084B4
        [profile_sidebar_border_color] => C0DEED
        [profile_sidebar_fill_color] => DDEEF6
        [profile_text_color] => 333333
        [profile_use_background_image] => 1
        [has_extended_profile] => 
        [default_profile] => 1
        [default_profile_image] => 
        [following] => 
        [follow_request_sent] => 
        [notifications] => 
    )

[geo] => 
[coordinates] => 
[place] => 
[contributors] => 
[is_quote_status] => 
[retweet_count] => 0
[favorite_count] => 0
[favorited] => 
[retweeted] => 
[possibly_sensitive] => 
[possibly_sensitive_appealable] => 
[lang] => en

)

Best regards

Martin


Missing media entities in the API result from time to time