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

# Search — Players

> Player search by query string.



## OpenAPI

````yaml /openapi.json get /cricket/api/v2/search/player
openapi: 3.1.0
info:
  title: SportXAPI Cricket API
  version: 2.0.0
  description: >-
    SportXAPI is a low-latency cricket data API delivering realtime ball-by-ball
    commentary, live scores, detailed match scorecards, tournaments, team/player
    statistics, ICC rankings, and news.
servers:
  - url: https://apiv2.sportxapi.com
    description: Production API (Paid keys)
  - url: https://api.sportxapi.com
    description: Demo & Testing API (Free/Demo tier)
security: []
paths:
  /cricket/api/v2/search/player:
    get:
      tags:
        - Search
      summary: Search — Players
      description: Player search by query string.
      operationId: search_player
      parameters:
        - name: query
          in: query
          required: false
          description: Free-text query.
          schema:
            type: string
            example: virat
      responses:
        '200':
          description: Successful Response (JSON)
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
              example:
                - playerID: '119'
                  playerName: Virat Kohli
                  playerImage: >-
                    https://cdn.sportxapi.com/assets/uploads/2026/03/virat-kohli.png?_sxcdn=20260831
                - playerID: '48481'
                  playerName: Virat Singh
                  playerImage: >-
                    https://cdn.sportxapi.com/assets/uploads/2023/11/Virat-Singh.png?_sxcdn=20260831
        '401':
          description: Unauthorized - Missing or invalid X-API-Key header
          content:
            application/json:
              example:
                error: 'Unauthorized: Missing or invalid API key'
        '429':
          description: Too Many Requests - Rate limit or monthly quota exceeded
          content:
            application/json:
              example:
                error: Quota limit exceeded for current billing cycle
      security: []

````

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