When searshing a tweet the image is not sent in json but is visible in twitter web site, no media/extended media entity

restapi
media
bug
bugreporting
api

#1

if you do a show status https://api.twitter.com/1.1/statuses/show.json?id=984347894055661568

you will get the following json, therefore if you open the tweet itself you will see that there is a photo in the tweet ! is this a bug on the API ?

here is the Tweet https://twitter.com/ElNacionalWeb/status/984347894055661568

{
    "created_at": "Thu Apr 12 08:30:00 +0000 2018",
    "id": 984347894055661568,
    "id_str": "984347894055661568",
    "text": "[FOTOS] ¿Cuáles son los mejores zapatos de la #NBA? Dragon Ball  y Los Simpsons figuraron con estos diseños |… https://t.co/ljaA9tMCgV",
    "truncated": true,
    "entities": {
        "hashtags": [
            {
                "text": "NBA",
                "indices": [
                    46,
                    50
                ]
            }
        ],
        "symbols": [],
        "user_mentions": [],
        "urls": [
            {
                "url": "https://t.co/ljaA9tMCgV",
                "expanded_url": "https://twitter.com/i/web/status/984347894055661568",
                "display_url": "twitter.com/i/web/status/9…",
                "indices": [
                    111,
                    134
                ]
            }
        ]
    },
    "source": "<a href=\"https://about.twitter.com/products/tweetdeck\" rel=\"nofollow\">TweetDeck</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": 15007299,
        "id_str": "15007299",
        "name": "El Nacional",
        "screen_name": "ElNacionalWeb",
        "location": "Caracas - Venezuela",
        "description": "Te informamos sobre las noticias más recientes de Venezuela y el mundo ¡Tu opinión es importante! Síguenos en Instagram y Telegram como Elnacionalweb 📲",
        "url": "https://t.co/STnmQpA87I",
        "entities": {
            "url": {
                "urls": [
                    {
                        "url": "https://t.co/STnmQpA87I",
                        "expanded_url": "http://www.el-nacional.com",
                        "display_url": "el-nacional.com",
                        "indices": [
                            0,
                            23
                        ]
                    }
                ]
            },
            "description": {
                "urls": []
            }
        },
        "protected": false,
        "followers_count": 4530988,
        "friends_count": 359581,
        "listed_count": 18134,
        "created_at": "Wed Jun 04 17:03:00 +0000 2008",
        "favourites_count": 6543,
        "utc_offset": -14400,
        "time_zone": "La Paz",
        "geo_enabled": true,
        "verified": true,
        "statuses_count": 5861545,
        "lang": "es",
        "contributors_enabled": false,
        "is_translator": false,
        "is_translation_enabled": true,
        "profile_background_color": "2C2B59",
        "profile_background_image_url": "http://pbs.twimg.com/profile_background_images/378800000150120234/4Yd9-n15.jpeg",
        "profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/378800000150120234/4Yd9-n15.jpeg",
        "profile_background_tile": true,
        "profile_image_url": "http://pbs.twimg.com/profile_images/938538423924805633/sSHzCbvm_normal.jpg",
        "profile_image_url_https": "https://pbs.twimg.com/profile_images/938538423924805633/sSHzCbvm_normal.jpg",
        "profile_banner_url": "https://pbs.twimg.com/profile_banners/15007299/1523455552",
        "profile_link_color": "1B95E0",
        "profile_sidebar_border_color": "000000",
        "profile_sidebar_fill_color": "FFFFFF",
        "profile_text_color": "222222",
        "profile_use_background_image": true,
        "has_extended_profile": false,
        "default_profile": false,
        "default_profile_image": false,
        "following": false,
        "follow_request_sent": false,
        "notifications": false,
        "translator_type": "regular"
    },
    "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,
    "lang": "es"
}

#2

Use tweet_mode=extended on your API call to statuses/show and you will see the complete Tweet object including media entities.


#3

@andypiper - Thank you so much for your quick reply! all working now :+1:

Just for share the knowledge

:wink:


#4