Docs
About this account

About this account

The data behind X's "About this account" panel (account location, join date, username changes and similar).

GET/user/about/{username}

Parameters

  • usernamepath · string · required

    Handle, with or without a leading @. 2 to 15 characters: letters, digits and underscore.

Example request

curl 'https://api.twittrapi.com/user/about/jack' \
  --header 'X-API-KEY: YOUR_API_KEY'

Base URL https://api.twittrapi.com, key in the X-API-KEY header. Python and Node.js use the official SDKs.

Response

Raw JSON of X's AboutAccountQuery.

Simple format (?format=simple or X-Response-Format: simple): {data: User with an about object}: accountBasedIn, locationAccurate, createdCountryAccurate, source, usernameChanges, lastUsernameChangeAt, affiliateUsername, identityVerified, verifiedSince. X sends no counts here, so counts are 0. Schema.

{
  "data": {
    "user_result_by_screen_name": {
      "id": "VXNlclJlc3VsdHM6MjI0NDk5NDk0NQ==",
      "result": {
        "__typename": "User",
        "about_profile": {
          "account_based_in": "United States",
          "affiliate_username": "X",
          "created_country_accurate": true,
          "learn_more_url": "https://help.twitter.com/managing-your-account/about-twitter-verified-accounts",
          "location_accurate": true,
          "source": "Web",
          "username_changes": {
            "count": "1",
            "last_changed_at_msec": "1690335192280"
          }
        },
        "affiliates_highlighted_label": {
          "label": {
            "badge": {
              "url": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_bigger.jpg"
            },
            "description": "X",
            "url": {
              "url": "https://twitter.com/X",
              "urlType": "DeepLink"
            },
            "userLabelDisplayType": "Badge",
            "userLabelType": "BusinessLabel"
          }
        },
        "avatar": {
          "image_url": "https://pbs.twimg.com/profile_images/1683501992314798080/xl1POYLw_normal.jpg"
        },
        "core": {
          "created_at": "Sat Dec 14 04:35:55 +0000 2013",
          "name": "Developers",
          "screen_name": "XDevelopers"
        },
        "id": "VXNlcjoyMjQ0OTk0OTQ1",
        "identity_profile_labels_highlighted_label": {
          "label": {
            "badge": {
              "url": "https://pbs.twimg.com/profile_images/1955359038532653056/OSHY3ewP_bigger.jpg"
            },
            "description": "X",
            "url": {
              "url": "https://twitter.com/X",
              "urlType": "DeepLink"
            },
            "userLabelDisplayType": "Badge",
            "userLabelType": "BusinessLabel"
          }
        },
        "is_blue_verified": true,
        "privacy": {
          "protected": false
        },
        "profile_image_shape": "Square",
        "rest_id": "2244994945",
        "verification": {
          "verified": false,
          "verified_type": "Business"
        },
        "verification_info": {
          "id": "VXNlclZlcmlmaWNhdGlvbkluZm86MjI0NDk5NDk0NQ==",
          "is_identity_verified": false,
          "reason": {
            "verified_since_msec": "1395425700472"
          }
        }
      }
    }
  }
}

In the raw format, field names and nesting come from X and can change without notice. See Response format; the simple format keeps a fixed schema.

Errors

  • 422The username is not 2 to 15 letters, digits or underscores.

Errors every endpoint can return (401, 402, 403, 404, 408, 409, 429, 5xx), and which of them are charged, are on the Errors page. Calls that fail with 400, 408, 409 or a 5xx error are refunded.