Recent Match Details

Retrieve recent match information from the last 20 games played.

Multiplayer

import { ModernWarfare, platforms } from "call-of-duty-api";

try {
   let data = await ModernWarfare.combatHistory(gamertag: string, platform: platforms)
} catch(Error) {
    //Handle Exception
}

Warzone

import { Warzone, platforms } from "call-of-duty-api";

try {
   let data = await Warzone.combatHistory(gamertag: string, platform: platforms)
} catch(Error) {
    //Handle Exception
}

Last updated