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

# ユーザーIDからユーザー名へ変換

> 数値のTwitter/XユーザーIDを現在のユーザー名に変換します。保存済みIDを読みやすい名前に戻す場合や、名前が変わった可能性がある場合に便利です。



## OpenAPI

````yaml /openapi-ja.json get /id-to-username/{user_id}
openapi: 3.0.3
info:
  contact: {}
  title: Sorsa.io API
  version: '3.0'
servers:
  - url: https://api.sorsa.io/v3
security: []
paths:
  /id-to-username/{user_id}:
    get:
      tags:
        - ユーティリティ
      summary: ユーザーIDからユーザー名へ変換
      description: >-
        数値のTwitter/XユーザーIDを現在のユーザー名に変換します。保存済みIDを読みやすい名前に戻す場合や、名前が変わった可能性がある場合に便利です。
      parameters:
        - description: user_idは必須
          in: path
          name: user_id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/technical.HandleRes'
          description: 成功
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: 不正なリクエスト
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: 認証失敗
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: アクセス拒否
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: 見つかりません
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: リクエスト過多
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/handler.ErrorResponse'
          description: 内部サーバーエラー
      security:
        - ApiKeyAuth: []
components:
  schemas:
    technical.HandleRes:
      properties:
        handle:
          description: 現在のTwitter/Xユーザー名（@なし）。
          example: elonmusk
          type: string
      type: object
    handler.ErrorResponse:
      properties:
        message:
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: ApiKey
      type: apiKey

````