New endpoints: more PvP-related goodies

New endpoints: more PvP-related goodies

in API Development

Posted by: Lawton Campbell

Lawton Campbell

Web Programmer

Next

Been turning these on gradually over the past week or so and figured there was enough functionality between them to make an announcement post. So, without further ado, some new endpoints:

/v2/pvp/seasons (github)

Provides bulk-expanded unauthenticated access to PvP season data. The season ids are referenced from both /v2/pvp/games (ranked games playing during a season will have a season_id field) and /v2/pvp/standings. It doesn’t currently indicate which season is the current season (or the start/end dates) — that functionality will land in a future release.

/v2/pvp/standings (github)

Provides authenticated access to your PvP season standings (including past seasons). This currently only includes the division standings (not leaderboard position) — hoping to get the leaderboard bits in at a later date.

/v2/guild/:id/teams (github)

Provides authenticated access to your guilds’ teams. Currently only available to guild leaders (though I’m debating relaxing that restriction for this endpoint). It provides aggregate match data (similar to /v2/pvp/stats). Hoping to add per-team game history at some point in the future, but that will likely be a separate endpoint.

Let me know if you have any questions/concerns or find any bugs!

New endpoints: more PvP-related goodies

in API Development

Posted by: sookya.8625

sookya.8625

Yeah – thank you lawton Seen it yesterday and implemented it. Thank you very much.

2 Questions:
- Is it possible to add start/end date/time of the seasons (i.e. Season 2 from Feb 23th to April 18th).
- Is there any chance that the /v2/pvp/games api delivers pips won/lost per game? Otherwise I have to calculate this by my own…

Moona @Kodash[DE]
GuildWars2 sPvP-Tracker: http://www.gw2pvp.de
Tradingpost in your Pocket: http://www.tp2go.de

(edited by sookya.8625)

New endpoints: more PvP-related goodies

in API Development

Posted by: Lawton Campbell

Previous

Lawton Campbell

Web Programmer

- Is it possible to add start/end date/time of the seasons (i.e. Season 2 from Feb 23th to April 18th).

Yeah — I’m gonna need to hardcode them (the season times are config-based and only store the current season start/end, iirc), but there are few enough seasons/year that maintaining it shouldn’t be an issue. Should have done that to start with.

- Is there any chance that the /v2/pvp/games api delivers pips won/lost per game? Otherwise I have to calculate this by my own…

It’s on my backlog, but there are some technical issues to work through. I’m not sure I’ll be able to get more detailed match data (including per-match pip changes) in by the end of the season. My recommendation is to use /v2/pvp/standings to compute it in the meanwhile (which is very suboptimal, but alas).