Skip to content

A server for getting data from MTG Arena process through http requests

License

Notifications You must be signed in to change notification settings

frcaton/mtga-tracker-daemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mtga-tracker-daemon

An HTTP server for getting game data from MTG Arena.

Usage is very straightforward;

./mtga-tracker-daemon.exe -p 9000

GET /status

Check if the MTGA process is running or not and whether is updating itself or not, and get its Process ID. (some apps use this to get other metrics or data like the window position and size)

Response

{
  isRunning: Boolean,
  daemonVersion: String,
  updating: Boolean,
  processId: Number | -1,
}

POST /shutdown

Stops the daemon

Response:

{
  result: String,
}

POST /checkForUpdates

Tells the daemon to check for updates

Response:

{
  updatesAvailable: Boolean,
}

GET /cards

Get a list (array) of all cards owned by the current player.

Response:

{
  cards: [
    {
      grpId: Number,
      owned: Number,
    }
  ],
  elapsedTime: Number,
}

GET /playerId

Return the current ID (wizards account ID)

Response:

{
  playerId: String,
  elapsedTime: Number,
}

GET /inventory

Return the state of the player inventory

Response:

{
  gems: Number,
  gold: Number,
  elapsedTime: Number,
}

About

A server for getting data from MTG Arena process through http requests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages