---
title: "Get leaderboard of bf2"
method: GET
path: "/bf2/leaderboard/"
tags: ["Battlefield 2"]
---

# Get leaderboard of bf2

`GET /bf2/leaderboard/`

## Request

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

## Query parameters

- `platform` 'bf2hub' | 'playbf2': Platform/service to use for the leaderboard

## Response `200`

Get leaderboard of bf2

- Bf2Leaderboard
  - `players` Bf2LeaderboardPlayer[], required
    - `name` string, required
    - `id` integer, required
    - `score` integer, required
    - `rank` integer, required
    - `countryCode` string, required
    - `secondsPlayed` integer, required
    - `timePlayed` string, 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/leaderboard/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)
