You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BO4.getMultiplayerMatchesStats({ username, platform, start, end }) .then(matches => { const [ match ] = matches; })
BO4.getBlackoutMatchesStats({ username, platform, start, end }) .then(matches => { const [ match ] = matches; })
BO4.getZombiesMatchesStats({ username, platform, start, end }) .then(matches => { const [ match ] = matches; })
These endpoints are not yet populated with data on the official call of duty api:
getSoloBlackoutStats
getDuoBlackoutStats
getQuadBlackoutStats
Legacy COD Titles
Methods for titles released before Black Ops 4
Get Profile
{
// Do something...
console.log(response);
})
.catch(err => {
// Do something with this error
console.log(err);
});">import { LegacyCOD } from 'cod-api';
LegacyCOD.getProfile({ title, platform, username }) .then(response => { // Do something... console.log(response); }) .catch(err => { // Do something with this error console.log(err); });
{
// Do something...
console.log(response);
})
.catch(err => {
// Do something with this error
console.log(err);
});">import { LegacyCOD } from 'cod-api';
LegacyCOD.getRecentMatches({ title, platform, username, days }) .then(response => { // Do something... console.log(response); }) .catch(err => { // Do something with this error console.log(err); });
{
// Do something...
console.log(response);
})
.catch(err => {
// Do something with this error
console.log(err);
});">import { LegacyCOD } from 'cod-api';
LegacyCOD.getRecentSummary({ title, platform, username, days }) .then(response => { // Do something... console.log(response); }) .catch(err => { // Do something with this error console.log(err); });
{
// Do something...
console.log(response);
})
.catch(err => {
// Do something with this error
console.log(err);
});">import { LegacyCOD } from 'cod-api';
LegacyCOD.getLeaderboards({ title, platform, time, type, mode, username }) .then(response => { // Do something... console.log(response); }) .catch(err => { // Do something with this error console.log(err); });