---
title: "Player history against one opponent"
method: GET
path: "/v1/players/{id}/vs-team/{teamId}"
tags: ["players"]
---

# Player history against one opponent

`GET /v1/players/{id}/vs-team/{teamId}`

## Request

- Base URL: `https://api.bigballsdata.com`
- URL: `https://api.bigballsdata.com/v1/players/{id}/vs-team/{teamId}`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Solo or higher. NBA and NHL game history with a win-loss summary and
per-game averages. A known player who has not faced this team returns
200 with `games=[]` and `games_played=0`. NHL historical opponent
attribution uses the player's current team and can be wrong after a
transfer; do not interpret it as a historical roster record.

## Path parameters

- `id` string, uuid, required
- `teamId` string, uuid, required

## Response `200`

Opponent summary and game rows.

- object
  - `data` object, required
    - `player` object, required
      - `id` string, uuid
      - `name` string
      - `sport` string, nullable
      - `team` object, nullable
    - `opponent` object, required
      - `id` string, uuid
      - `name` string
      - `abbreviation` string, nullable
    - `supported` boolean, required
    - `summary` object, required
      - `games_played` integer
      - `record` object
        - `wins` integer
        - `losses` integer
      - `per_game` object
    - `games` object[], required
      - `match_id` string, uuid
      - `game_date` string, date
      - `season` integer
      - `venue` string
      - `result` string
      - `team_score` integer, nullable
      - `opp_score` integer, nullable
      - `stats` object
    - `as_of` string, date-time, required
  - `meta` object, required
    - `cached` boolean
    - `cache_age_ms` integer

## Other responses

- `400`: Invalid player or team id.
- `403`: Solo plan or sport entitlement required.
- `404`: Player or team id not found.

---

[API](https://skmtc.dev/bigballsdata/apis/big-ball-sports-api.md) · [All operations](https://skmtc.dev/bigballsdata/apis/big-ball-sports-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bigballsdata/apis/big-ball-sports-api/revisions/31fb54ac414e?raw)
