Tweet object returned from GET statuses/show/:id is missing extended tweet member


#1

Example tweet:

JSON response:

{
    "created_at": "Sun Oct 14 01:30:00 +0000 2018",
    "id": 1051283950784647169,
    "id_str": "1051283950784647169",
    "text": "SUNDAY: Don't miss White House Economic Adviser @larry_kudlow on @FoxNewsSunday. Check your local listings and tune… https://t.co/vqSCf3QGpW",
    "truncated": true,
    "entities": {
        "hashtags": [],
        "symbols": [],
        "user_mentions": [
            {
                "screen_name": "larry_kudlow",
                "name": "Larry Kudlow",
                "id": 44401911,
                "id_str": "44401911",
                "indices": [
                    48,
                    61
                ]
            },
            {
                "screen_name": "FoxNewsSunday",
                "name": "FoxNewsSunday",
                "id": 18805644,
                "id_str": "18805644",
                "indices": [
                    65,
                    79
                ]
            }
        ],
        "urls": [
            {
                "url": "https://t.co/vqSCf3QGpW",
                "expanded_url": "https://twitter.com/i/web/status/1051283950784647169",
                "display_url": "twitter.com/i/web/status/1…",
                "indices": [
                    117,
                    140
                ]
            }
        ]
    },
    "source": "<a href=\"https://studio.twitter.com\" rel=\"nofollow\">Media Studio</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": 1367531,
        "id_str": "1367531",
        "name": "Fox News",
        "screen_name": "FoxNews",
        "location": "U.S.A.",
        "description": "America’s Strongest Primetime Lineup Anywhere! Follow America's #1 cable news network, delivering you breaking news, insightful analysis, and must-see videos.",
        "url": "http://t.co/ZYG58XZtAC",
        "entities": {
            "url": {
                "urls": [
                    {
                        "url": "http://t.co/ZYG58XZtAC",
                        "expanded_url": "http://www.foxnews.com",
                        "display_url": "foxnews.com",
                        "indices": [
                            0,
                            22
                        ]
                    }
                ]
            },
            "description": {
                "urls": []
            }
        },
        "protected": false,
        "followers_count": 18167588,
        "friends_count": 398,
        "listed_count": 64725,
        "created_at": "Sat Mar 17 19:01:26 +0000 2007",
        "favourites_count": 0,
        "utc_offset": null,
        "time_zone": null,
        "geo_enabled": true,
        "verified": true,
        "statuses_count": 413859,
        "lang": "en",
        "contributors_enabled": false,
        "is_translator": false,
        "is_translation_enabled": true,
        "profile_background_color": "0E2331",
        "profile_background_image_url": "http://abs.twimg.com/images/themes/theme1/bg.png",
        "profile_background_image_url_https": "https://abs.twimg.com/images/themes/theme1/bg.png",
        "profile_background_tile": false,
        "profile_image_url": "http://pbs.twimg.com/profile_images/918480715158716419/4X8oCbge_normal.jpg",
        "profile_image_url_https": "https://pbs.twimg.com/profile_images/918480715158716419/4X8oCbge_normal.jpg",
        "profile_banner_url": "https://pbs.twimg.com/profile_banners/1367531/1492649996",
        "profile_link_color": "183A52",
        "profile_sidebar_border_color": "FFFFFF",
        "profile_sidebar_fill_color": "F4F4F4",
        "profile_text_color": "000000",
        "profile_use_background_image": true,
        "has_extended_profile": false,
        "default_profile": false,
        "default_profile_image": false,
        "following": true,
        "follow_request_sent": false,
        "notifications": false,
        "translator_type": "regular"
    },
    "geo": null,
    "coordinates": null,
    "place": null,
    "contributors": null,
    "is_quote_status": false,
    "retweet_count": 7,
    "favorite_count": 11,
    "favorited": false,
    "retweeted": false,
    "possibly_sensitive": false,
    "possibly_sensitive_appealable": false,
    "lang": "en"
}

So, the tweet is missing the extended_tweet member containing the extended >140-character text.


#2

Hi @Claire. Thank you for letting us know. Could you share the query you passed through to get this tweet so I can understand what happened?

Hamza


#3

https://api.twitter.com/1.1/statuses/show.json?id=1051283950784647169


#4

If I’m understanding your question correctly, you just need to add &tweet_mode=extended to the end of your query to get back the full tweet body, otherwise it returns a payload that is truncated.

Try running https://api.twitter.com/1.1/statuses/show.json?id=1051283950784647169&tweet_mode=extended and see if that works to return the result you were wanting.

Hamza


#5

That did it. Thanks!!