> ## 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.

# ユーザー検索

> キーワードやフレーズでTwitter/Xアカウントを検索します。一致するプロフィールのユーザー名、表示名、自己紹介、フォロワー統計、認証状態を返します。`next_cursor`でページネーションできます。



## OpenAPI

````yaml /openapi-ja.json post /search-users
openapi: 3.0.3
info:
  contact: {}
  title: Sorsa.io API
  version: '3.0'
servers:
  - url: https://api.sorsa.io/v3
security: []
paths:
  /search-users:
    post:
      tags:
        - 検索
      summary: ユーザー検索
      description: >-
        キーワードやフレーズでTwitter/Xアカウントを検索します。一致するプロフィールのユーザー名、表示名、自己紹介、フォロワー統計、認証状態を返します。`next_cursor`でページネーションできます。
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/search.SearchUsersReq'
        description: queryは必須。next_cursorは任意。
        required: true
        x-originalParamName: payload
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/common.UsersResponse'
          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:
    search.SearchUsersReq:
      properties:
        next_cursor:
          example: JKHSJFHADUYJKSDy2y3u123
          type: string
        query:
          example: elonmusk
          type: string
      type: object
    common.UsersResponse:
      properties:
        next_cursor:
          description: 次のページを取得するカーソル。続きがなければnullまたは省略。
          type: string
        users:
          description: ユーザープロフィールの配列。
          items:
            $ref: '#/components/schemas/common.User'
          type: array
      type: object
    handler.ErrorResponse:
      properties:
        message:
          type: string
      type: object
    common.User:
      properties:
        bio_urls:
          description: 自己紹介内のURL。
          items:
            type: string
          type: array
        can_dm:
          description: アカウントがDMを受け付けているか。
          example: false
          type: boolean
        created_at:
          description: アカウント作成日時。ISO 8601形式。
          example: '2009-06-02T20:12:29Z'
          type: string
        description:
          description: プロフィールの自己紹介文。
          example: Bio text
          type: string
        display_name:
          description: ユーザーの表示名。
          example: Elon Musk
          type: string
        favourites_count:
          description: このユーザーが「いいね」したツイートの総数。
          example: 1200
          type: integer
        followers_count:
          description: このユーザーをフォローしているアカウント数。
          example: 100000
          type: integer
        followings_count:
          description: このユーザーがフォローしているアカウント数。
          example: 500
          type: integer
        id:
          description: 一意のTwitter/XユーザーID。
          example: '44196397'
          type: string
        location:
          description: ユーザーがプロフィールに記載した所在地。
          example: Austin, TX
          type: string
        media_count:
          description: このユーザーが投稿したメディアの総数。
          example: 300
          type: integer
        pinned_tweet_ids:
          description: ユーザーの固定ツイートのID。
          items:
            type: string
          type: array
        possibly_sensitive:
          description: センシティブな内容を含む可能性があると指定されているか。
          example: false
          type: boolean
        profile_background_image_url:
          description: ユーザーのプロフィール背景画像のURL。
          example: https://pbs.twimg.com/profile_banners/44196397/123
          type: string
        profile_image_url:
          description: ユーザーのアバター画像のURL。
          example: https://pbs.twimg.com/profile_images/123/photo.jpg
          type: string
        protected:
          description: アカウントのツイートが保護されている（非公開）か。
          example: false
          type: boolean
        tweets_count:
          description: このユーザーが投稿したツイートの総数。
          example: 5000
          type: integer
        username:
          description: 現在のTwitter/Xユーザー名（@なし）。
          example: elonmusk
          type: string
        verified:
          description: アカウントに認証バッジがあるか。
          example: true
          type: boolean
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: ApiKey
      type: apiKey

````