Home » News » New is:reply search operator for premium and enterprise

New is:reply search operator for premium and enterprise

@Aurelia wrote:

Today, we are excited to announce the launch of a new search operator: is:reply is now available to use with the paid premium and enterprise search endpoints. This operator is already available with enterprise PowerTrack and enterprise Historical PowerTrack.

is:reply is a Boolean operator that can be used to filter all replies to Tweets, or to filter out explicit replies that match a rule. This operator functions in the same way as the is:retweet operator. Remember that all is: and has: operators must be used in conjunction with a standalone operator like a keyword or a hashtag.

Note that the is:reply operator is not available in sandbox (free) environments. More information is available in the documentation on our developer website.

We’re excited to see what you build with this new operator. Please feel free to ask questions via the Premium category.

Example cURL command

Request:

curl --request POST --url https://api.twitter.com/1.1/tweets/search/fullarchive/<ENV>.json --header 'authorization: Bearer <BEARER-TOKEN> --header 'content-type: application/json' --data '{"query": "from:TwitterUK is:reply","fromDate": "201811290000","toDate": "201812020000","maxResults": "500"}'

Response:

{
  "results": [
    {
      "created_at": "Sat Dec 01 10:55:20 +0000 2018",
      "id": 1068820840521834500,
      "id_str": "1068820840521834496",
      "text": "@iPugsieHD @SquarePlayGames https://t.co/OcNk6RtWKg",
      "display_text_range": [
        27,
        27
      ],
      "source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>",
      "truncated": false,
      "in_reply_to_status_id": 1068820704903217200,
      "in_reply_to_status_id_str": "1068820704903217157",
      "in_reply_to_user_id": 462334778,
      "in_reply_to_user_id_str": "462334778",
      "in_reply_to_screen_name": "iPugsieHD",
      "user": {
        "id": 277761722,
        "id_str": "277761722",
        "name": "Twitter UK",
        "screen_name": "TwitterUK",
        "location": "London, England",
        "url": "https://www.twitter.com",
        "description": "What Britain Tweets.",
        "translator_type": "regular",
        "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": true,
        "followers_count": 438976,
        "friends_count": 316,
        "listed_count": 1598,
        "favourites_count": 1744,
        "statuses_count": 5676,
        "created_at": "Wed Apr 06 00:11:41 +0000 2011",
        "utc_offset": null,
        "time_zone": null,
        "geo_enabled": true,
        "lang": "en",
        "contributors_enabled": false,
        "is_translator": false,
        "profile_background_color": "9BC0DE",
        "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": true,
        "profile_link_color": "1B95E0",
        "profile_sidebar_border_color": "FFFFFF",
        "profile_sidebar_fill_color": "A0C5C7",
        "profile_text_color": "333333",
        "profile_use_background_image": true,
        "profile_image_url": "http://pbs.twimg.com/profile_images/941622204827078657/gGPNg67y_normal.jpg",
        "profile_image_url_https": "https://pbs.twimg.com/profile_images/941622204827078657/gGPNg67y_normal.jpg",
        "profile_banner_url": "https://pbs.twimg.com/profile_banners/277761722/1544711281",
        "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,
      "quote_count": 0,
      "reply_count": 1,
      "retweet_count": 0,
      "favorite_count": 1,
      "entities": {
        "hashtags": [],
        "urls": [],
        "user_mentions": [
          {
            "screen_name": "iPugsieHD",
            "name": "Scarlett",
            "id": 462334778,
            "id_str": "462334778",
            "indices": [
              0,
              10
            ]
          },
          {
            "screen_name": "SquarePlayGames",
            "name": "al",
            "id": 760124689,
            "id_str": "760124689",
            "indices": [
              11,
              27
            ]
          }
        ],
        "symbols": [],
        "media": [
          {
            "id": 1068820825166540800,
            "id_str": "1068820825166540801",
            "indices": [
              28,
              51
            ],
            "media_url": "http://pbs.twimg.com/tweet_video_thumb/DtU24KyXcAEpF38.jpg",
            "media_url_https": "https://pbs.twimg.com/tweet_video_thumb/DtU24KyXcAEpF38.jpg",
            "url": "https://t.co/OcNk6RtWKg",
            "display_url": "pic.twitter.com/OcNk6RtWKg",
            "expanded_url": "https://twitter.com/TwitterUK/status/1068820840521834496/photo/1",
            "type": "photo",
            "sizes": {
              "thumb": {
                "w": 150,
                "h": 150,
                "resize": "crop"
              },
              "large": {
                "w": 498,
                "h": 348,
                "resize": "fit"
              },
              "medium": {
                "w": 498,
                "h": 348,
                "resize": "fit"
              },
              "small": {
                "w": 498,
                "h": 348,
                "resize": "fit"
              }
            }
          }
        ]
      },
      "extended_entities": {
        "media": [
          {
            "id": 1068820825166540800,
            "id_str": "1068820825166540801",
            "indices": [
              28,
              51
            ],
            "media_url": "http://pbs.twimg.com/tweet_video_thumb/DtU24KyXcAEpF38.jpg",
            "media_url_https": "https://pbs.twimg.com/tweet_video_thumb/DtU24KyXcAEpF38.jpg",
            "url": "https://t.co/OcNk6RtWKg",
            "display_url": "pic.twitter.com/OcNk6RtWKg",
            "expanded_url": "https://twitter.com/TwitterUK/status/1068820840521834496/photo/1",
            "type": "animated_gif",
            "video_info": {
              "aspect_ratio": [
                83,
                58
              ],
              "variants": [
                {
                  "bitrate": 0,
                  "content_type": "video/mp4",
                  "url": "https://video.twimg.com/tweet_video/DtU24KyXcAEpF38.mp4"
                }
              ]
            },
            "sizes": {
              "thumb": {
                "w": 150,
                "h": 150,
                "resize": "crop"
              },
              "large": {
                "w": 498,
                "h": 348,
                "resize": "fit"
              },
              "medium": {
                "w": 498,
                "h": 348,
                "resize": "fit"
              },
              "small": {
                "w": 498,
                "h": 348,
                "resize": "fit"
              }
            }
          }
        ]
      },
      "favorited": false,
      "retweeted": false,
      "possibly_sensitive": false,
      "filter_level": "low",
      "lang": "und",
      "matching_rules": [
        {
          "tag": null
        }
      ]
    }
  ],
  "requestParameters": {
    "maxResults": 500,
    "fromDate": "201811290000",
    "toDate": "201812020000"
  },
  "responseMetadata": {
    "newestId": "1068820840521834496",
    "oldestId": "1068820840521834496"
  }
}

Posts: 3

Participants: 2

Read full topic

source https://twittercommunity.com/t/new-is-reply-search-operator-for-premium-and-enterprise/120812

Leave a Reply