---
title: "SofaScore player national team record"
method: GET
path: "/sofascore/player-national-team-statistics"
tags: ["SofaScore"]
---

# SofaScore player national team record

`GET /sofascore/player-national-team-statistics`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/sofascore/player-national-team-statistics`
- Auth: API key in header `x-api-key`

Returns a player's national team record: for each national team the appearances, goals and debut date. An empty `teams` list is a valid response for a player who never played internationally.

## Query parameters

- `id` string, required

## Headers

- `x-api-key` string, required

## Response `200`

OK

- SofascorePlayerNationalTeamStatisticsResponseDoc
  - `code` integer
  - `data` SofascorePlayerNationalTeamStatisticsResponse
    - `count` integer
    - `fetched_at` string
    - `player_id` integer
    - `source_url` string
    - `teams` SofascorePlayerNationalTeamRecord[]
      - `appearances` integer
      - `debut_date` string
      - `debut_timestamp` integer
      - `goals` integer
      - `team` SofascoreTeamRef
        - `country` string: Country the team belongs to.
        - `id` integer: SofaScore team id. Use it with the team endpoints.
        - `name` string: Full team name.
        - `national` boolean: True for a national team.
        - `short_name` string: Shortened team name.
        - `slug` string: URL slug of the team on SofaScore.
  - `msg` string

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `429`: Too Many Requests
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/0497899e2016?raw)
