Get an X profile
xcrap_get_userFetch a public X/Twitter profile by handle: display name, bio, location, website, join date, verification, avatar/banner URLs, and follower/following/post counts. Use it to identify an account or check if it exists.
Instructions
Fetch a public X/Twitter profile by handle: display name, bio, location, website, join date, verification status, avatar and banner URLs, and follower/following/post counts.
Use this to answer "who is @x", to check whether an account exists, or to get follower counts. It returns the profile only — not the account's posts.
When to use this instead of the alternatives:
Use xcrap_get_user_tweets to read what the account has actually posted.
Use xcrap_get_tweet if you have a link to a specific post rather than an account.
Args:
handle (string, required): "jack", "@jack" or "https://x.com/jack". Handles are 1-15 letters, digits or underscores; a display name will not work.
format ('markdown' | 'json'): default 'markdown'.
Returns (markdown): name and handle heading, bio, and a table of followers, following, posts, media count, join date, verification and website. Returns (json): { id, screen_name, name, url, description, location, website, avatar_url, banner_url, joined, verified, verified_type, protected, metrics{posts,followers,following,likes,media} }.
Errors: 404 means no such account, or it is suspended or private.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format. 'markdown' (default) is compact, human-readable and costs roughly a tenth of the tokens of the same data as JSON — prefer it for reading and summarising. Use 'json' only when you need exact field access: numeric ids, media URLs, per-metric values, or provenance metadata. | markdown |
| handle | Yes | X handle, @handle or profile URL, e.g. "jack", "@jack", "https://x.com/jack". |