Call Of Duty API
  • Call Of Duty API
  • Getting Started
  • How to Login
  • Modern Warfare
    • Lifetime Statistics
    • Recent Match Details
    • Match Information
    • Map List
    • Battle Pass Progress
  • Modern Warfare 2
    • Lifetime Statistics
    • Recent Match Details
    • Match Information
  • Warzone 2
    • Lifetime Statistics
    • Recent Match Details
    • Match Information
  • Modern Warfare 3
    • Lifetime Statistics
    • Recent Match Details
    • Match Information
  • Cold War
    • Lifetime Statistics
    • Recent Match Details
    • Match Information
    • Map List
    • Battle Pass Progress
  • Vanguard
    • Lifetime Statistics
    • Recent Match Details
    • Match Information
    • Map List
    • Battle Pass Progress
  • Store
    • Get Store Content
    • Get Bundle Information
    • Battle Pass Tiers
  • User
    • Cod Points
    • Connected Accounts
    • Event Feed
    • Identities
    • Settings
  • Misc
    • Fuzzy Search
Powered by GitBook
On this page
  • Migrating from 2.x.x to 3.x.x
  • Installation
  • Initialize
  • Platforms

Was this helpful?

Getting Started

How to get started with the API.

Migrating from 2.x.x to 3.x.x

LogoMigration GuideAPI Migration Guide
Migration guide for 2.x.x. to 3.x.x

Installation

npm install call-of-duty-api@latest

Initialize

import { login } from "call-of-duty-api";
login(ssoToken: string);
// or alternatively
import API from "call-of-duty-api";
API.login(ssoToken: string);

Platforms

import { platforms } from "call-of-duty-api";
PreviousCall Of Duty APINextHow to Login

Last updated 3 years ago

Was this helpful?