Search full_text tweets in Sandbox premium acct


#1

i need to do opinion mining among tweets about specific tourism keywords for academic research, hence full_text tweets would be great for my purpose and tokenizing words.
its possible to use tweet_mode parameter in Standard search but not in sandbox.

kindly advise as confused what to do and my 250 free monthly query gone one by one :frowning:


#2

Hi @Hamedhamedf - as outlined in our documentation, you do not need to use the tweet_mode parameter with the premium sandbox version of the API. The full_text of a Tweet is automatically returned in the response payload, under the extended_tweet section of the response payload.

You can see this in the example response payload below:

{
  "results": [
    {
      "created_at": "Mon Nov 26 12:07:07 +0000 2018",
      "id": 1067026966983966720,
      "id_str": "1067026966983966720",
      "text": "This is for demonstration purposes. This is longer than 140 characters. The full text of the Tweet will, therefore,… https:\/\/t.co\/ytPIhelYUI",
      "source": "<a href=\"https:\/\/twitter.com\/re_testing\" rel=\"nofollow\">test_aurelia<\/a>",
      "truncated": true,
      "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": 1029741837916012544,
        "id_str": "1029741837916012544",
        "name": "Aurelia",
        "screen_name": "re_testing",
        "location": "London, England",
        "url": null,
        "description": "I like travelling 🐪🌴☀️",
        "translator_type": "none",
        "derived": {
          "locations": [
            {
              "country": "United Kingdom",
              "country_code": "GB",
              "locality": "London",
              "region": "England",
              "sub_region": "Greater London",
              "full_name": "London, England, United Kingdom",
              "geo": {
                "coordinates": [
                  -0.12574,
                  51.50853
                ],
                "type": "point"
              }
            }
          ]
        },
        "protected": false,
        "verified": false,
        "followers_count": 1,
        "friends_count": 8,
        "listed_count": 0,
        "favourites_count": 3,
        "statuses_count": 16,
        "created_at": "Wed Aug 15 14:49:20 +0000 2018",
        "utc_offset": null,
        "time_zone": null,
        "geo_enabled": false,
        "lang": "en",
        "contributors_enabled": false,
        "is_translator": false,
        "profile_background_color": "000000",
        "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_link_color": "ABB8C2",
        "profile_sidebar_border_color": "000000",
        "profile_sidebar_fill_color": "000000",
        "profile_text_color": "000000",
        "profile_use_background_image": false,
        "profile_image_url": "http:\/\/pbs.twimg.com\/profile_images\/1029742489090121728\/-83RqB5N_normal.jpg",
        "profile_image_url_https": "https:\/\/pbs.twimg.com\/profile_images\/1029742489090121728\/-83RqB5N_normal.jpg",
        "profile_banner_url": "https:\/\/pbs.twimg.com\/profile_banners\/1029741837916012544\/1534344864",
        "default_profile": false,
        "default_profile_image": false,
        "following": null,
        "follow_request_sent": null,
        "notifications": null
      },
      "geo": null,
      "coordinates": null,
      "place": null,
      "contributors": null,
      "is_quote_status": false,
      "extended_tweet": {
        "full_text": "This is for demonstration purposes. This is longer than 140 characters. The full text of the Tweet will, therefore, be returned in the extended_tweet field of the JSON payload. Make sure to look for this information in the correct place and read our docs: https:\/\/t.co\/mzAeWIOGmc",
        "display_text_range": [
          0,
          279
        ],
        "entities": {
          "hashtags": [],
          "urls": [
            {
              "url": "https:\/\/t.co\/mzAeWIOGmc",
              "expanded_url": "https:\/\/developer.twitter.com\/en\/docs\/tweets\/tweet-updates.html",
              "display_url": "developer.twitter.com\/en\/docs\/tweets…",
              "unwound": {
                "url": "https:\/\/developer.twitter.com\/en\/docs\/tweets\/tweet-updates.html",
                "status": 200,
                "title": "Tweet updates",
                "description": "This document outlines developer guidance around changes to Tweets that have been put in place to allow people to express even more on the platform. On September 26, 2017, Twitter announced an experiment enabling Tweets with more characters, available to a small group of users. For JSON received from enterprise products, these Tweets are encoded in JSON as an extended Tweet (see below for more information). See the bottom of this page for a sample JSON payload from the enterprise 30-day Search API."
              },
              "indices": [
                256,
                279
              ]
            }
          ],
          "user_mentions": [],
          "symbols": []
        }
      },
      "quote_count": 0,
      "reply_count": 0,
      "retweet_count": 0,
      "favorite_count": 0,
      "entities": {
        "hashtags": [],
        "urls": [
          {
            "url": "https:\/\/t.co\/ytPIhelYUI",
            "expanded_url": "https:\/\/twitter.com\/i\/web\/status\/1067026966983966720",
            "display_url": "twitter.com\/i\/web\/status\/1…",
            "indices": [
              117,
              140
            ]
          }
        ],
        "user_mentions": [],
        "symbols": []
      },
      "favorited": false,
      "retweeted": false,
      "possibly_sensitive": false,
      "filter_level": "low",
      "lang": "en",
      "matching_rules": [
        {
          "tag": null
        }
      ]
    }