API:2/wvw/matches/stats/:id/teams
/v2/wvw/matches/stats/teams
- HTTP method
- GET
- Format
- json
- API version
- version 2
- Release date
- 2017-05-16
- Scope
- none
- Optional
- none
This resource returns specific details pertaining to guilds in the current selected matchup.
Parameters
An array of information from the top 10 guilds can be selected from the current matchup through a set of parameters.
Response
/v2/wvw/matches/stats/1-1/teams
will return the array [ "red", "blue", "green" ]
in order to select which team color should be examined. /v2/wvw/matches/stats/1-1/teams/red
will return the array ["top"]
to select the filtering options for stats. /v2/wvw/matches/stats/1-1/teams/red/top
will return the array ["kills", "kdr"]
.
Selecting kills
will return the top 10 guilds, sorted by the sum of kills. kdr
will return the top 10 guilds, sorted by Wilson score of kills.
For both final endpoint the following structure is given in an array of objects
guild_id
(string) – The guild id, can be resolved against v2/guildsdeaths
(object)red
(number) - The sum of deaths the selected team has suffered at the hands of red.blue
(number) - The sum of deaths the selected team has suffered at the hands of blue.green
(number) - The sum of deaths the selected team has suffered at the hands of green.
kills
(object)red
(number) - The sum of kills the selected team has dealt to red.blue
(number) - The sum of kills the selected team has dealt to blue.green
(number) - The sum of kills the selected team has dealt to green.
wilson
(number)(kdr endpoint only) - The wilson score for the guild.
Example
https://api.guildwars2.com/v2/wvw/matches/stats/1-1/teams/red/top/kills
[ { "guild_id": "GUILDIDWILLBEHERE", "deaths": { "red": 0, "blue": 824, "green": 0 }, "kills": { "red": 0, "blue": 1183, "green": 0 } }, ... ]
https://api.guildwars2.com/v2/wvw/matches/stats/1-1/teams/red/top/kdr
[ { "guild_id": "GUILDIDWILLBEHERE", "deaths": { "red": 0, "blue": 0, "green": 0 }, "kills": { "red": 0, "blue": 0, "green": 158 }, "wilson": 0.9668818783569118 }, ... ]