About this account
The data behind X's "About this account" panel (account location, join date, username changes and similar).
/user/about/{username}Parameters
usernamepath · string · requiredHandle, 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'import httpx
# No SDK method for this endpoint yet, so this is a plain HTTP call.
resp = httpx.get(
"https://api.twittrapi.com/user/about/jack",
headers={"X-API-KEY": "YOUR_API_KEY"},
timeout=60,
)
data = resp.json()import { TwittrAPI } from "twittrapi";
const client = new TwittrAPI({ apiKey: process.env.TWITTRAPI_API_KEY });
// No wrapper method for this endpoint yet; client.get() sends the same authenticated GET.
const data = await client.get({
path: "/user/about/jack",
});curl 'https://twitter-aio.p.rapidapi.com/user/about/jack' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
--header 'x-rapidapi-host: twitter-aio.p.rapidapi.com'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"
}
}
}
}
}
}{
"data": {
"id": "2244994945",
"username": "XDevelopers",
"name": "Developers",
"description": "",
"location": "",
"url": null,
"createdAt": "2013-12-14T04:35:55Z",
"avatarUrl": "https://pbs.twimg.com/profile_images/1683501992314798080/xl1POYLw.jpg",
"bannerUrl": null,
"verified": true,
"verifiedType": "Business",
"protected": false,
"counts": {
"followers": 0,
"following": 0,
"tweets": 0,
"likes": 0,
"media": 0,
"listed": 0
},
"pinnedTweetIds": [],
"isAutomated": false,
"about": {
"accountBasedIn": "United States",
"locationAccurate": true,
"createdCountryAccurate": true,
"source": "Web",
"usernameChanges": 1,
"lastUsernameChangeAt": "2023-07-26T01:33:12Z",
"affiliateUsername": "X",
"identityVerified": false,
"verifiedSince": "2014-03-21T18:15:00Z"
}
}
}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.