X (Twitter): Get a profile
A profile on X (Twitter) by its handle: its name, bio, links, follower and tweet counts, verification, affiliation and images, read with your connected X account.
curl https://api.lobstr.io/v2/run \ -H "Authorization: Bearer $LOBSTR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "source": "x", "operation": "profiles/get", "options": { "profile": "nasa" } }'
An example answer, from the contract. Run it on your own input with your API key.
{ "object": "run", "id": "run_k6utvrozzq4rto4t6cvlf23tuy", "livemode": true, "source": "x", "operation": "profiles/get", "version": "1.1.0", "schema_url": "https://api.lobstr.io/v2/catalog/x/profiles/get", "options": { "profile": "nasa" }, "fields": null, "status": "succeeded", "count": 1, "has_more": false, "next": null, "cost": { "credits": 1 }, "results": [ { "object": "profile", "id": "11348282", "handle": "NASA", "name": "NASA", "url": "https://x.com/NASA", "description": "Making the seemingly impossible, possible. ✨", "description_language": "en", "description_urls": [], "location": "Pale Blue Dot", "website_url": "http://www.nasa.gov/", "created_at": "2007-12-19T20:20:32Z", "follower_count": 92233097, "following_count": 115, "tweet_count": 74544, "media_count": 28250, "like_count": 17111, "is_blue_verified": true, "is_verified": false, "verified_type": "government", "is_protected": false, "is_possibly_sensitive": false, "professional": null, "avatar_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_normal.jpg", "banner_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290", "avatar_shape": "square", "pinned_tweet_ids": [], "affiliation": null, "is_identity_verified": false, "verified_since": "2009-08-07T19:53:50Z", "verification_reason": "This account is verified because it is a government or multilateral organization account. Learn more", "affiliate_count": 85, "parody_label": null, "interstitial": null, "highlighted_tweet_count": 292, "subscription_count": 0, "has_hidden_subscriptions": false, "is_subscribable": false, "birthdate": { "day": 1, "month": 10, "year": 1958 }, "observed_at": "2026-11-17T15:00:00Z" } ] }
48 fields per profile
Every call returns them for each record, in the results of its JSON answer.
Get a profile
48 fields- object
- text
- profile
- id
- id
- The account's id: it stays when the handle changes.
11348282- handle
- text
- Its @handle, without the @, in the case the account wrote it.
- NASA
- name
- text
- The display name.
- NASA
What it costs
Billed by the call: 1 credit. Pick how many calls a month.
1 credit a call
Calls a month
100
Built to run
Every call counts; a day is green at 99.5% successful.
- Successful calls
- 97.14%
- Median call
- 1.5 s
A call fails when the site does not answer or we cannot read its answer; a wrong input is not counted.
Frequently asked questions
What people ask before calling x/profiles/get.
Get a profile
When do I use it?
You want who an account on X is and how big: pass its handle (nasa, @nasa) or its profile's address. One call, one profile. A protected profile is given as any other (is_protected): only its posts are kept from those who do not follow it. It needs one of your X accounts connected (POST /v2/accounts), and X counts each account's requests: about 150 profiles for 15 minutes. For what the account posts, use x/tweets/list with the same handle.
What do I give it?
profile(required): The profile: its handle, with or without the @ (nasa, @nasa), or its address on x.com (https://x.com/nasa). Not its display name.account: The connected X account to read with (GET /v2/accounts). Left out, the platform takes the first of your X accounts with a free slot.
What does it return?
A profile on X (Twitter) by its handle: its name, bio, links, follower and tweet counts, verification, affiliation and images, read with your connected X account. Every record has the same fields, empty ones included: they are all listed above.
Can I run it on a list?
Yes: call it once per item, or run it as a batch, on a list and every day if you like, from the button at the top of this page.
Pricing
What does a call cost?
1 credit per call that returns the profile. A failed call (no such profile, a suspended one) and a busy account are free.
When is a call free?
- a call that fails
- a call the account is too busy for (it answers with retry_after)
Errors
What can go wrong?
invalid_profile(422): Pass a profile's handle (nasa, @nasa) or its address (https://x.com/nasa).profile_not_found(404): X has no profile with this handle (not charged).profile_unavailable(404): X does not show this profile, suspended or withheld (not charged).account_required(422): You have no connected X account. Connect one with POST /v2/accounts {"site": "x", "cookies": ...}: the cookies of a browser where you are logged in to x.com (https://docs.lobstr.io/accounts).account_rate_limited(429, retry): This X account cannot read a profile right now: it pauses a couple of seconds between two profiles, and X counts each account's requests (about 150 profiles for 15 minutes).retry_aftersays when it can again, in seconds. Retrying before then gets this same answer: nothing is queued.account_unusable(409): X logged this account out, or locked it. Open x.com in the browser the account comes from, then connect it again with POST /v2/accounts and fresh cookies (the same account keeps its id).site_unavailable(503, retry): X did not answer properly; retry later (not charged).unexpected_answer(424): X answered in a shape we do not read yet; we are told and fix it (not charged).
How long can a call take?
30 seconds at most by default, up to 60 with timeout_s. A call past it answers timeout (408), is not charged, and can be sent again.
API and agents
Can my AI agent run it?
Yes: connect the lobstr.io MCP server (https://api.lobstr.io/v2/mcp, your API key as a Bearer token); its run_operation tool runs x/profiles/get. Its page for agents, in Markdown: x/profiles/get.md.
Where is its full description?
The contract, as JSON: https://api.lobstr.io/v2/catalog/x/profiles/get: every option, every field, the price and the errors. This page is drawn from it.
Ready to call it?
An API key in a minute, then the call above, from your code or your agent.