---
title: "Search sports player"
method: GET
path: "/search/player/{playerName}"
tags: ["V2 API Search"]
---

# Search sports player

`GET /search/player/{playerName}`

## Request

- Base URL: `https://www.thesportsdb.com/api/v2/json`
- URL: `https://www.thesportsdb.com/api/v2/json/search/player/{playerName}`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/thesportsdb/apis/thesportsdb-v2-api/docs/search/player/:playerName/get.ts> (a function with typed inputs; its response is checked against the schema)

Search for any sports person using a text string.

## Path parameters

- `playerName` string, required

## Response `200`

Player details matching query

- PlayerSearchResponse
  - `search` Player[]
    - `idPlayer` string
    - `strPlayer` string
    - `idTeam` string
    - `strTeam` string
    - `dateBorn` string, date
    - `strThumb` string, uri
    - `strSport` string

---

[API](https://skmtc.dev/thesportsdb/apis/thesportsdb-v2-api.md) - [All operations](https://skmtc.dev/thesportsdb/apis/thesportsdb-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/thesportsdb/apis/thesportsdb-v2-api/revisions/f529422e54bf?raw)
