COD Tracker
A lightweight Node.js application to track and display Call of Duty stats across multiple game titles.
Overview
COD Tracker provides a clean interface to fetch, display, and export Call of Duty player statistics. The application supports multiple COD titles including Modern Warfare, Warzone, Modern Warfare 2, Warzone 2, Modern Warfare 3, Cold War, Vanguard, and Warzone Mobile.
Features
- Player stats lookup across all supported COD titles
- Match history retrieval
- Individual match details
- User profile information
- Player search functionality
- Export data as JSON or YAML
- Time format conversion options
- Duration display for time-based statistics
Prerequisites
- Node.js (v14.x or higher)
- npm (comes with Node.js)
- Call of Duty account with API security settings set to "ALL"
Authentication Setup
Changing Account API Privacy Settings
To use this application, you need to update your Call of Duty profile settings:
- Log in to Call of Duty
- Navigate to the Privacy & Security tab
- Scroll down to Game Data and Profile Privacy section
- Set the following options to ALL:
- Game Tag Searchable
- Game Play Data
Obtaining Your SSO Token
The application requires an authentication token to access the Call of Duty API:
|
|
Token Expiration
The SSO token typically expires after 24 hours. If you encounter authentication errors, repeat Step 2 to obtain a fresh token.
Installation
-
Clone the repository:
git clone https://git.rimmyscorner.com/Rim/codtracker-js.git && cd codtracker-js
-
Start the application:
npm run start
-
Open your browser and navigate to:
http://127.0.0.1:3513
Usage
- Enter your Call of Duty SSO Token in the token field (required for authentication)
- Select the desired game, platform, and enter a username
- Use the tabs to navigate between different types of information:
- Stats: View player lifetime statistics
- Matches: Retrieve recent match history
- Match Info: Look up details for a specific match ID
- User: Access player profile information
- Search: Find players by username
Configuration Options
- Sanitize: Remove HTML tags and other unwanted content from results
- Replace Keys: Convert internal key names to more readable formats and time durations
- Convert Times: Transform epoch timestamps to readable date/time format
- Output Format: Select between JSON and YAML for data display and export