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

# Get user profile

> Get user profile information by username.



## OpenAPI

````yaml /openapi-spec/xshot.yaml get /twitter/user/info
openapi: 3.0.3
info:
  title: Xshot REST API
  version: 1.0.0
  description: >
    Twitter/X data API. Access user profiles, tweets, communities, lists,
    spaces, and trends.


    All endpoints require authentication via `api_key` query parameter,
    `x-api-key` header, or `Authorization: Bearer` header.
  contact:
    name: Xshot
    url: https://api.xshot.fun
servers:
  - url: https://api.xshot.fun
    description: Production
security:
  - ApiKeyQuery: []
  - ApiKeyHeader: []
  - BearerAuth: []
paths:
  /twitter/user/info:
    get:
      tags:
        - Users
      summary: Get user profile
      description: Get user profile information by username.
      operationId: getUserInfo
      parameters:
        - name: username
          in: query
          required: true
          schema:
            type: string
          example: elonmusk
      responses:
        '200':
          description: User profile
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    User:
      type: object
      properties:
        id:
          type: string
          example: '44196397'
        name:
          type: string
          example: Elon Musk
        username:
          type: string
          example: elonmusk
        description:
          type: string
        location:
          type: string
        created_at:
          type: string
        followers_count:
          type: integer
          example: 237614000
        following_count:
          type: integer
          example: 1305
        tweet_count:
          type: integer
        like_count:
          type: integer
        media_count:
          type: integer
        verified:
          type: boolean
        is_blue_verified:
          type: boolean
        profile_image:
          type: string
        profile_banner:
          type: string
        pinned_tweet_ids:
          type: array
          items:
            type: string
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    ApiKeyQuery:
      type: apiKey
      in: query
      name: api_key
    ApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
    BearerAuth:
      type: http
      scheme: bearer

````