> ## Documentation Index
> Fetch the complete documentation index at: https://docs.konbiniapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get user profile

> Returns profile information for a public X account including bio, follower counts, verification flags, and profile images.

## What it does

Returns profile information for a public X account including bio, follower counts, verification flags, and profile images.

## Tool details

| Field | Value |
| - | - |
| Tool name | `x_get_user` |
| Platform | X |
| REST endpoint | `GET /v1/x/users/{username}` |
| Result type | Detail tool |

## Parameters

| Parameter | Type | Required | Description |
| - | - | - | - |
| `username` | `string` | Yes | X username (with or without @ symbol) |
| `projection_preset` | `string` | No | Defaults to `minimal`. Allowed values: `full`, `minimal`, `identity`, `engagement`, `content`. |
| `data_fields` | `string[]` | No | Adds top-level keys from `data` on top of the selected `projection_preset`. |

## Example

```json theme={null}
{
  "name": "x_get_user",
  "arguments": {
    "username": "khaby.lame",
    "projection_preset": "minimal",
    "data_fields": [
      "entityId",
      "name",
      "preferredUsername",
      "published"
    ]
  }
}
```

## Available data fields

* `@context`
* `type`
* `id`
* `url`
* `entityId`
* `name`
* `preferredUsername`
* `summary`
* `attachment`
* `published`
* `isPrivate`
* `isVerified`
* `isPaidVerified`
* `followerCount`
* `followingCount`
* `likeCount`
* `postCount`
* `mediaCount`
* `listedCount`
* `location`
* `icon`
* `image`

## Response notes

Successful calls return a JSON object with a top-level `data` field and, when
available, `metadata.creditsUsed` and `metadata.creditsRemaining`. See
[response format](/getting-started/response-format),
[pagination](/getting-started/pagination), and [credits](/getting-started/credits).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.