diff --git a/docs/index.html b/docs/index.html index da7a082..5f32368 100644 --- a/docs/index.html +++ b/docs/index.html @@ -381,7 +381,7 @@ data-styled.g138[id="sc-iIUQWv"]{content:"liFvtQ,"}/*!sc*/ -

ToneAPI (2.0)

Download OpenAPI specification:Download

Stats tracking API for Titanfall 2 Northstar

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

client

Routes accessibles by everyone

-

Your GET endpoint

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

+

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

@@ -428,7 +428,7 @@ data-styled.g138[id="sc-iIUQWv"]{content:"liFvtQ,"}/*!sc*/
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": {
    }
}

Your GET endpoint

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

+

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

@@ -436,7 +436,7 @@ data-styled.g138[id="sc-iIUQWv"]{content:"liFvtQ,"}/*!sc*/
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": {
    }
}

Your GET endpoint

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

+

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

@@ -454,7 +454,7 @@ data-styled.g138[id="sc-iIUQWv"]{content:"liFvtQ,"}/*!sc*/

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
}