# Compare X Profile Location and Account Region

**Use case:** 

Compare the location written on an X profile with the country or region X shows under About this account. Try two public profiles, then export the two location fields and X user IDs for your own research.

## Input

```json
{
  "screenNames": [
    "https://x.com/apify",
    "https://x.com/BBCWorld"
  ]
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "requested_screen_name": {
    "label": "Requested username",
    "format": "string"
  },
  "requested_user_id": {
    "label": "Requested user ID",
    "format": "string"
  },
  "user_id": {
    "label": "User ID",
    "format": "string"
  },
  "screen_name": {
    "label": "Username",
    "format": "string"
  },
  "name": {
    "label": "Name",
    "format": "string"
  },
  "profile_url": {
    "label": "Profile URL",
    "format": "string"
  },
  "description": {
    "label": "Bio",
    "format": "string"
  },
  "location": {
    "label": "Location",
    "format": "string"
  },
  "website_url": {
    "label": "Website",
    "format": "string"
  },
  "bio_links": {
    "label": "Bio links",
    "format": "array"
  },
  "account_based_in": {
    "label": "Account based in",
    "format": "string"
  },
  "account_source": {
    "label": "Account source",
    "format": "string"
  },
  "created_country_accurate": {
    "label": "Country accurate",
    "format": "boolean"
  },
  "account_location_accurate": {
    "label": "Account location accurate",
    "format": "boolean"
  },
  "verification_type": {
    "label": "Verification type",
    "format": "string"
  },
  "affiliate_username": {
    "label": "Affiliate username",
    "format": "string"
  },
  "affiliation_name": {
    "label": "Affiliation name",
    "format": "string"
  },
  "affiliation_url": {
    "label": "Affiliation URL",
    "format": "string"
  },
  "affiliation_badge_url": {
    "label": "Affiliation badge",
    "format": "string"
  },
  "account_label": {
    "label": "Account label",
    "format": "string"
  },
  "professional_type": {
    "label": "Professional type",
    "format": "string"
  },
  "professional_categories": {
    "label": "Professional categories",
    "format": "array"
  },
  "username_changes_count": {
    "label": "Username changes",
    "format": "integer"
  },
  "username_last_changed_at": {
    "label": "Last username change",
    "format": "string"
  },
  "username_last_changed_at_msec": {
    "label": "Last username change (milliseconds)",
    "format": "integer"
  },
  "account_created_at": {
    "label": "Account created",
    "format": "string"
  },
  "followers_count": {
    "label": "Followers",
    "format": "integer"
  },
  "following_count": {
    "label": "Following",
    "format": "integer"
  },
  "tweets_count": {
    "label": "Posts",
    "format": "integer"
  },
  "media_count": {
    "label": "Media posts",
    "format": "integer"
  },
  "likes_count": {
    "label": "Likes",
    "format": "integer"
  },
  "listed_count": {
    "label": "Listed",
    "format": "integer"
  },
  "verified": {
    "label": "Verified",
    "format": "boolean"
  },
  "blue_verified": {
    "label": "Blue verified",
    "format": "boolean"
  },
  "protected": {
    "label": "Protected",
    "format": "boolean"
  },
  "possibly_sensitive": {
    "label": "Possibly sensitive",
    "format": "boolean"
  },
  "business_affiliates_count": {
    "label": "Business affiliates",
    "format": "integer"
  },
  "creator_subscriptions_count": {
    "label": "Creator subscriptions",
    "format": "integer"
  },
  "profile_image_url": {
    "label": "Profile image",
    "format": "string"
  },
  "profile_banner_url": {
    "label": "Profile banner",
    "format": "string"
  },
  "pinned_tweet_ids": {
    "label": "Pinned Tweet IDs",
    "format": "array"
  },
  "profile_interstitial_type": {
    "label": "Profile warning type",
    "format": "string"
  },
  "default_profile_image": {
    "label": "Default profile image",
    "format": "boolean"
  },
  "can_media_tag": {
    "label": "Can be media tagged",
    "format": "boolean"
  },
  "withheld_scope": {
    "label": "Withheld scope",
    "format": "string"
  },
  "withheld_description": {
    "label": "Withheld description",
    "format": "string"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The X / Twitter Account Origin Intelligence Actor is ready to run with the inputs already set for "Compare X Profile Location and Account Region". [Sign up or log in](https://console.apify.com/create-task-from-example/Y73QAgY3XJyzeFDR2) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compare X Profile Location and Account Region" task

The X / Twitter Account Origin Intelligence Actor will start running based on the input automatically. You can also change all the input fields, like x usernames or profile urls, to match your specific use case.

### 3. Receive the "Compare X Profile Location and Account Region" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as status, requested username, requested user id, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Compare X Profile Location and Account Region" task via API](https://apify.com/arjun_code/x-twitter-account-origin-scraper.md).

## FAQ

### How do the two location fields differ?

The X location comparison shows the location written in the profile and the country or region shown by X under About this account. Both fields can vary across accounts.

### Why is a location or region blank?

The X location comparison leaves a field empty when X provides no value. Check the lookup status before comparing the available location fields.

### Can I compare my own list of profiles?

The X location comparison accepts profile links or X usernames, one per line. The export includes a stable user ID for each available profile so you can join the results to another file.

## About this Actor

This example demonstrates how to use [X / Twitter Account Origin Intelligence](https://apify.com/arjun_code/x-twitter-account-origin-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/arjun_code/x-twitter-account-origin-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/arjun_code/x-twitter-account-origin-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
