ToneAPI (2.0)

Download OpenAPI specification:Download

Stats tracking API for Titanfall 2 Northstar

All query params can be negated using !. Example : (https://toneapi.ovh/v2/client/gamemodes?gamemode=!sns)

client

Routes accessibles by everyone

List of hosts

An object with host ID as keys and host name as values

Responses

Response samples

Content type
application/json
{
  • "1": "Fvnkhead",
  • "2": "Legonzaur"
}

List of servers

A JSON object with server names as keys and server data as values

query Parameters
server
string
Example: server=fvnkhead's 3v3

Fetch data for specific server

player
integer
Example: player=1005930844007

Fetch data for specific player

weapon
string
Example: weapon=epg

Fetch data for specific weapon

map
string
Example: map=lf_stacks

Fetch data for specific map

gamemode
string
Example: gamemode=aitdm

Fetch data for specific gamemode

host
integer
Example: host=1

Fetch data for specific host

Responses

Response samples

Content type
application/json
{
  • "fvnkhead's 3v3": {
    },
  • "fvnkhead's 7v7": {
    }
}

Statistics for all weapons

A JSON Object with weapon IDs as keys and weapon data as values

query Parameters
server
string
Example: server=fvnkhead's 3v3

Fetch data for specific server

player
integer
Example: player=1005930844007

Fetch data for specific player

weapon
string
Example: weapon=epg

Fetch data for specific weapon

map
string
Example: map=lf_stacks

Fetch data for specific map

gamemode
string
Example: gamemode=aitdm

Fetch data for specific gamemode

host
integer
Example: host=1

Fetch data for specific host

Responses

Response samples

Content type
application/json
{
  • "autopistol": {
    },
  • "car": {
    }
}

Statistics for all players

A JSON Object with player IDs as keys and player data as values

query Parameters
weapon
string
Example: weapon=epg

Fetch data for specific weapon

server
string
Example: server=fvnkhead's 3v3

Fetch data for specific server

player
integer
Example: player=1005930844007

Fetch data for specific player

gamemode
string
Example: gamemode=aitdm

Fetch data for specific gamemode

map
string
Example: map=lf_stacks

Fetch data for specific map

host
integer
Example: host=1

Fetch data for specific host

Responses

Response samples

Content type
application/json
{
  • "2250125460": {
    }
}

Statistics for all maps

A JSON Object with map IDs as keys and map data as values

query Parameters
host
integer
Example: host=1

Fetch data for specific host

gamemode
string
Example: gamemode=aitdm

Fetch data for specific gamemode

map
string
Example: map=lf_stacks

Fetch data for specific map

weapon
string
Example: weapon=epg

Fetch data for specific weapon

player
integer
Example: player=1005930844007

Fetch data for specific player

server
string
Example: server=fvnkhead's 3v3

Fetch data for specific server

Responses

Response samples

Content type
application/json
{
  • "lf_meadow": {
    },
  • "lf_township": {
    }
}

Statistics for all gamemodes

A JSON Object with gamemodes IDs as keys and gamemodes data as values

query Parameters
host
integer
Example: host=1

Fetch data for specific host

gamemode
string
Example: gamemode=aitdm

Fetch data for specific gamemode

map
string
Example: map=lf_stacks

Fetch data for specific map

weapon
string
Example: weapon=epg

Fetch data for specific weapon

player
integer
Example: player=1005930844007

Fetch data for specific player

server
string
Example: server=fvnkhead's 3v3

Fetch data for specific server

Responses

Response samples

Content type
application/json
{
  • "ps": {
    },
  • "aitdm": {
    }
}

server

Routes accessibles only to server owners

post-servers-serverId

Used to test auth

Authorizations:
Auth_Token

Responses

Post kills

Allows a Northstar server to record kills on the database

Authorizations:
Auth_Token
Request Body schema: application/json
tone_version
string
match_id
string
game_mode
string
map
string
game_time
string <time>
player_count
integer
attacker_name
string
attacker_id
integer
attacker_current_weapon
string
attacker_current_weapon_mods
integer
attacker_weapon_1
string
attacker_weapon_1_mods
integer
attacker_weapon_2
string
attacker_weapon_2_mods
integer
attacker_weapon_3
string
attacker_weapon_3_mods
integer
attacker_offhand_weapon_1
integer
attacker_offhand_weapon_2
integer
victim_name
string
victim_id
integer
victim_current_weapon
string
victim_current_weapon_mods
integer
victim_weapon_1
string
victim_weapon_1_mods
integer
victim_weapon_2
string
victim_weapon_2_mods
integer
victim_weapon_3
string
victim_weapon_3_mods
integer
victim_offhand_weapon_1
integer
victim_offhand_weapon_2
integer
cause_of_death
required
string
distance
number

Responses

Request samples

Content type
application/json
{
  • "tone_version": "string",
  • "match_id": "string",
  • "game_mode": "string",
  • "map": "string",
  • "game_time": "14:15:22Z",
  • "player_count": 0,
  • "attacker_name": "string",
  • "attacker_id": 0,
  • "attacker_current_weapon": "string",
  • "attacker_current_weapon_mods": 0,
  • "attacker_weapon_1": "string",
  • "attacker_weapon_1_mods": 0,
  • "attacker_weapon_2": "string",
  • "attacker_weapon_2_mods": 0,
  • "attacker_weapon_3": "string",
  • "attacker_weapon_3_mods": 0,
  • "attacker_offhand_weapon_1": 0,
  • "attacker_offhand_weapon_2": 0,
  • "victim_name": "string",
  • "victim_id": 0,
  • "victim_current_weapon": "string",
  • "victim_current_weapon_mods": 0,
  • "victim_weapon_1": "string",
  • "victim_weapon_1_mods": 0,
  • "victim_weapon_2": "string",
  • "victim_weapon_2_mods": 0,
  • "victim_weapon_3": "string",
  • "victim_weapon_3_mods": 0,
  • "victim_offhand_weapon_1": 0,
  • "victim_offhand_weapon_2": 0,
  • "cause_of_death": "string",
  • "distance": 0
}