twitter.place.country_code

note icon

NoteTwitter location data is available only if a Twitter user chooses to activate it. For each individual Tweet, they can choose whether or not to include location data and which location they want to specify, regardless of their real location. For example, a user in New York City could select Edinburgh, Scotland as the purported origin of a Tweet. If they choose not to include location data, all the twitter.place.* targets are unpopulated for that Tweet.

The two-character country code that corresponds to the location the Twitter user supplied for an individual Tweet.

You can learn more about country codes at this International Standards Organization page.

See also twitter.place.country.

Examples

  1. Filter for Tweets for which the user-supplied location information is in Canada:

twitter.place.country_code == "CA"

Resource information

Target service: Twitter

Target object: Twitter: Place

Type: string

Array: No

Always exists: No