Rest search api: i am searching for filter:'native_video', but i also want the thumbnail for each video

search
api

#1

I am using twitter api with applicaiton only authorization. I got the bearer token

        https://api.twitter.com/1.1/search/tweets.json?
        bearer_token: 'kjskdjskljlk**********'
        filter:'native_video',
        q:'video/1',
        result_type:'recent',
        count:'40',
        include_entities:'false',
        trim_user:'true'

and the sample output is:

      {
        "created_at": "Sat Mar 31 04:17:25 +0000 2018",
        "id": 979935673963593700,
        "id_str": "979935673963593733",
        "text": "Heritage hunting in Singapore https://t.co/fn2QszVnbx https://t.co/8enlq2vsfr",
        "truncated": false,
        "metadata": {
          "iso_language_code": "en",
          "result_type": "recent"
        },
        "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": 37874853,
          "id_str": "37874853",
          "name": "The Straits Times",
          "screen_name": "STcom",
          "location": "Singapore",
          "description": "Breaking news from the online site of Singapore's most widely read newspaper",
          "url": "http://t.co/7447yWAzRb",
          "entities": {
            "url": {
              "urls": [
                {
                  "url": "http://t.co/7447yWAzRb",
                  "expanded_url": "http://www.straitstimes.com",
                  "display_url": "straitstimes.com",
                  "indices": [
                    0,
                    22
                  ]
                }
              ]
            },
            "description": {
              "urls": []
            }
          },
          "protected": false,
          "followers_count": 997921,
          "friends_count": 129,
          "listed_count": 5746,
          "created_at": "Tue May 05 06:48:23 +0000 2009",
          "favourites_count": 41,
          "utc_offset": 28800,
          "time_zone": "Singapore",
          "geo_enabled": true,
          "verified": true,
          "statuses_count": 297177,
          "lang": "en",
          "contributors_enabled": false,
          "is_translator": false,
          "is_translation_enabled": false,
          "profile_background_color": "F5F5F5",
          "profile_background_image_url": "http://pbs.twimg.com/profile_background_images/378800000050586586/376ef21f601fe5f01acd95dae6783f6b.png",
          "profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/378800000050586586/376ef21f601fe5f01acd95dae6783f6b.png",
          "profile_background_tile": false,
          "profile_image_url": "http://pbs.twimg.com/profile_images/630988935720648704/HkmsHBTM_normal.jpg",
          "profile_image_url_https": "https://pbs.twimg.com/profile_images/630988935720648704/HkmsHBTM_normal.jpg",
          "profile_banner_url": "https://pbs.twimg.com/profile_banners/37874853/1506739836",
          "profile_link_color": "00427A",
          "profile_sidebar_border_color": "FFFFFF",
          "profile_sidebar_fill_color": "DDEEF6",
          "profile_text_color": "333333",
          "profile_use_background_image": true,
          "has_extended_profile": false,
          "default_profile": false,
          "default_profile_image": false,
          "following": null,
          "follow_request_sent": null,
          "notifications": null,
          "translator_type": "regular"
        },
        "geo": null,
        "coordinates": null,
        "place": null,
        "contributors": null,
        "is_quote_status": false,
        "retweet_count": 1,
        "favorite_count": 3,
        "favorited": false,
        "retweeted": false,
        "possibly_sensitive": false,
        "lang": "en"
      },
      {
        "created_at": "Sat Mar 31 02:30:00 +0000 2018",
        "id": 979908641460453400,
        "id_str": "979908641460453377",
        "text": "For their caregivers, these elderly inmates, are just patients. https://t.co/rOkDDqH6yl",
        "truncated": false,
        "metadata": {
          "iso_language_code": "en",
          "result_type": "recent"
        },
        "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": 4970411,
          "id_str": "4970411",
          "name": "Al Jazeera English",
          "screen_name": "AJEnglish",
          "location": "Doha, Qatar",
          "description": "Everyone has a story worth hearing. Follow @AJENews for the latest news.",
          "url": "https://t.co/D38RZjLnhI",
          "entities": {
            "url": {
              "urls": [
                {
                  "url": "https://t.co/D38RZjLnhI",
                  "expanded_url": "http://aljazeera.com",
                  "display_url": "aljazeera.com",
                  "indices": [
                    0,
                    23
                  ]
                }
              ]
            },
            "description": {
              "urls": []
            }
          },
          "protected": false,
          "followers_count": 4852279,
          "friends_count": 249,
          "listed_count": 51946,
          "created_at": "Tue Apr 17 08:23:08 +0000 2007",
          "favourites_count": 2131,
          "utc_offset": 3600,
          "time_zone": "London",
          "geo_enabled": true,
          "verified": true,
          "statuses_count": 200875,
          "lang": "en",
          "contributors_enabled": false,
          "is_translator": false,
          "is_translation_enabled": true,
          "profile_background_color": "FFFFFF",
          "profile_background_image_url": "http://pbs.twimg.com/profile_background_images/435161658852257792/GQQnmlD_.jpeg",
          "profile_background_image_url_https": "https://pbs.twimg.com/profile_background_images/435161658852257792/GQQnmlD_.jpeg",
          "profile_background_tile": true,
          "profile_image_url": "http://pbs.twimg.com/profile_images/875638617606987776/YBOKib96_normal.jpg",
          "profile_image_url_https": "https://pbs.twimg.com/profile_images/875638617606987776/YBOKib96_normal.jpg",
          "profile_banner_url": "https://pbs.twimg.com/profile_banners/4970411/1518801529",
          "profile_link_color": "234D8C",
          "profile_sidebar_border_color": "FFFFFF",
          "profile_sidebar_fill_color": "DDDDDD",
          "profile_text_color": "000000",
          "profile_use_background_image": false,
          "has_extended_profile": false,
          "default_profile": false,
          "default_profile_image": false,
          "following": null,
          "follow_request_sent": null,
          "notifications": null,
          "translator_type": "none"
        },
        "geo": null,
        "coordinates": null,
        "place": null,
        "contributors": null,
        "is_quote_status": false,
        "retweet_count": 23,
        "favorite_count": 31,
        "favorited": false,
        "retweeted": false,
        "possibly_sensitive": false,
        "lang": "en"
      },

I want to show some thumbnail for each of the video.

I dont find any thumbnail. how to get the thumbnail.


#2

You’re excluding entities, so the sections of the Tweet object that contain the media data will not show up.