Public
Documentation Settings

Call of Duty: Modern Warfare (2019) - API

Author: Andries 'iShot' Verbanck

Contact: Discord


This API is being consumed by my free Modern Warfare Discord Bot

Public

GETPlayer info

https://my.callofduty.com/api/papi-client/stats/cod/:version/title/:game/platform/:platform/gamer/:username/profile/type/mp

Pull a variaty of data from a certain player, this includes but is not limited to:

  • Total suicides (lol)
  • Accuracy
  • Wins / losses
  • KDR
  • Stats for each seperate gamemode
  • Time played total & for each seperate gamemode
  • Score per minute
  • Much, MUCH more...
PATH VARIABLES
version

v1

The version of the API you're trying to contact (options: 'v1' (for mw), 'v2' (for wwii and bo4)

game

mw

The game you want to pull the information for (options: 'mw', 'wwii', 'bo4')

platform

battle

The platform of choice (most likely either 'battle' (for mw and bo4), 'steam' (for wwii)

username

iShot%2321899

A URI encoded string of the player name as mentioned on the chosen platform

GETPlayer info of all player's friends

https://my.callofduty.com/api/papi-client/stats/cod/:version/title/:game/platform/:platform/gamer/:username/profile/friends/type/mp

Similar to the 'Player info' call, this gets the same set of data but from the whole friendslist of the specified player

PATH VARIABLES
version

v1

The version of the API you're trying to contact (options: 'v1' (for mw), 'v2' (for wwii and bo4)

game

mw

The game you want to pull the information for (options: 'mw', 'wwii', 'bo4')

platform

battle

The platform of choice (most likely either 'battle' (for mw and bo4), 'steam' (for wwii)

username

iShot%2321899

A URI encoded string of the player name as mentioned on the chosen platform

GETGamemode availability per map

https://my.callofduty.com/api/papi-client/ce/:version/title/:game/platform/:platform/gameType/mp/communityMapData/availability

List all of the multiplayer (casual) maps available and their gamemode. Keep in mind that 'war' means Team Deathmatch, 'arm' means Ground War, 'arena' means 2v2

PATH VARIABLES
version

v1

The version of the API you're trying to contact (options: 'v1' (for mw), 'v2' (for wwii and bo4)

game

mw

The game you want to pull the information for (options: 'mw', 'wwii', 'bo4')

platform

battle

The platform of choice (most likely either 'battle' (for mw and bo4), 'steam' (for wwii)

Loading