---
title: "Get general stats for the given player"
method: GET
path: "/bf2/stats/"
tags: ["Battlefield 2"]
---

# Get general stats for the given player

`GET /bf2/stats/`

## Request

- Base URL: `https://api.gametools.network`
- URL: `https://api.gametools.network/bf2/stats/`
- Auth: none declared

## Query parameters

- `name` string, nullable: Name of the player to get stats for
- `playerid` integer, nullable: ID of the player to get stats for
- `platform` 'bf2hub' | 'playbf2': Platform/service the player uses

## Response `200`

General stats of the given player

- Bf2MainStats
  - `Rank` string, required
  - `SPM` integer, required
  - `KPM` integer, required
  - `Win` string, required
  - `Accuracy` string, required
  - `Kills` integer, required
  - `Deaths` integer, required
  - `Wins` integer, required
  - `Loses` integer, required

## Other responses

- `404`: if something went wrong getting stats
- `422`: Validation Error

## Changes

- **2026-10-12** `b2afa0359da3`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2024-12-09** `50a8d1931dbd`: 1 breaking, 3 info
  - the `query` request parameter `platform` was restricted to a list of enum values
  - added the new enum value `bf2hub` to the `query` request parameter `platform`
  - added the new enum value `playbf2` to the `query` request parameter `platform`
  - for the `query` request parameter `platform`, the type was generalized from no type to `string`

[Operation history](https://skmtc.dev/gametools/apis/stats-api-for-the-battlefield-series/changes/bf2/stats/get.md)

---

[API](https://skmtc.dev/gametools/apis/stats-api-for-the-battlefield-series.md) - [All operations](https://skmtc.dev/gametools/apis/stats-api-for-the-battlefield-series/llms.txt) - [OpenAPI document](https://skmtc.dev/gametools/apis/stats-api-for-the-battlefield-series/revisions/3d36a829b247?raw)
