---
title: "GET /2/users/:id"
method: GET
path: "/2/users/{id}"
tags: ["/2 Compatibility"]
---

# GET /2/users/:id

`GET /2/users/{id}`

## Path parameters

- `id` string, required

## Query parameters

- `user.fields` string

## Response `200`

Successful official-compatible response.

- OfficialEnvelope
  - `data` union
    - OfficialUserObject
      - `id` string, required
      - `name` string
      - `username` string
      - `created_at` string, date-time
      - `description` string
      - `location` string
      - `profile_image_url` string
      - `protected` boolean
      - `verified` boolean
      - `public_metrics` object
        - `followers_count` integer
        - `following_count` integer
        - `tweet_count` integer
    - OfficialTweetObject
      - `id` string, required
      - `text` string, required
      - `edit_history_tweet_ids` string[], required
      - `author_id` string
      - `conversation_id` string
      - `created_at` string, date-time
      - `in_reply_to_user_id` string
      - `lang` string
      - `possibly_sensitive` boolean
      - `public_metrics` object
        - `retweet_count` integer
        - `reply_count` integer
        - `like_count` integer
        - `quote_count` integer
        - `bookmark_count` integer
      - `entities` object
        - `hashtags` string[]
        - `urls` string[]
        - `mentions` string[]
      - `referenced_tweets` object[]
        - `type` 'quoted'
        - `id` string
    - OfficialUserObject[]
      - `id` string, required
      - `name` string
      - `username` string
      - `created_at` string, date-time
      - `description` string
      - `location` string
      - `profile_image_url` string
      - `protected` boolean
      - `verified` boolean
      - `public_metrics` object
        - `followers_count` integer
        - `following_count` integer
        - `tweet_count` integer
    - OfficialTweetObject[]
      - `id` string, required
      - `text` string, required
      - `edit_history_tweet_ids` string[], required
      - `author_id` string
      - `conversation_id` string
      - `created_at` string, date-time
      - `in_reply_to_user_id` string
      - `lang` string
      - `possibly_sensitive` boolean
      - `public_metrics` object
        - `retweet_count` integer
        - `reply_count` integer
        - `like_count` integer
        - `quote_count` integer
        - `bookmark_count` integer
      - `entities` object
        - `hashtags` string[]
        - `urls` string[]
        - `mentions` string[]
      - `referenced_tweets` object[]
        - `type` 'quoted'
        - `id` string
  - `includes` object
    - `users` OfficialUserObject[]
      - `id` string, required
      - `name` string
      - `username` string
      - `created_at` string, date-time
      - `description` string
      - `location` string
      - `profile_image_url` string
      - `protected` boolean
      - `verified` boolean
      - `public_metrics` object
        - `followers_count` integer
        - `following_count` integer
        - `tweet_count` integer
  - `errors` OfficialProblem[]
    - `type` string, required
    - `title` string, required
    - `detail` string
    - `resource_id` string
    - `parameter` string
    - `resource_type` 'tweet' | 'user'
    - `value` string
  - `meta` object
    - `result_count` integer
    - `next_token` string

## Other responses

- `400` — Invalid request.
- `401` — Missing, invalid, or revoked API key.
- `402` — Insufficient credits.
- `404` — Resource or endpoint not found.
- `429` — Rate limited.
- `500` — Internal error.
- `503` — Service unavailable.

---

[API](https://skmtc.net/xfetch/apis/xfetch-public-api.md) · [All operations](https://skmtc.net/xfetch/apis/xfetch-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xfetch/xfetch-public-api/versions/76c9c96abfd8/schema)
