---
title: "Get weapon stats from the given player for bf4"
method: GET
path: "/bf4/weapons/"
tags: ["Battlefield 4"]
---

# Get weapon stats from the given player for bf4

`GET /bf4/weapons/`

## Request

- Base URL: `https://api.gametools.network`
- URL: `https://api.gametools.network/bf4/weapons/`
- Auth: none declared

Available options for platform: pc, ps3, ps4, xbox360, xboxone.

for nametypes you only have to fill in one of them: name (normal playername), or playerid (same as id in what it returns - fastest method).

if you dont know what you need to use, just use 'name', just fill the playername in there: **/stats/?name=iiTzArcur&platform=pc

## Query parameters

- `format_values` boolean: If precentage values have to be returned as string, example: '50%' (enabled by default for backwards compatability)
- `name` string, nullable: Name of the player to get stats for
- `playerid` integer, nullable: ID of the player to get stats for
- `platform` string: Platform the player uses

## Response `200`

weaponlist of the given player

- BattlelogWeaponStats
  - `avatar` string, nullable
  - `id` integer, required
  - `userName` string, nullable
  - `userId` integer, nullable
  - `weapons` BattlelogWeaponInfo[], required
    - `weaponName` string, required
    - `type` string, required
    - `image` string, required
    - `kills` integer, required
    - `killsPerMinute` integer, required
    - `headshots` string, required
    - `accuracy` string, required
    - `altImage` string, required

## Other responses

- `404`: if player cant be found while getting stats
- `422`: Validation Error
- `502`: if something went wrong getting stats

## 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-03-23** `cd73c8baf4c9`: 1 info
  - added the optional property `userId` to the response with the `200` status

[Operation history](https://skmtc.dev/gametools/apis/stats-api-for-the-battlefield-series/changes/bf4/weapons/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)
