API data does not match the in-game data — Guild Wars 2 Forums

API data does not match the in-game data

Almost all of the JSON data from https://api.guildwars2.com/v2/wvw/matches/1-2 appears to be accurate with the exception of "kills" and "deaths" when compared to the in-game GUI. Is the game providing false data or is the API incorrect?


  • Mighty Cole.7849Mighty Cole.7849 Member ✭✭✭

    I'd also like to point out that the examples from https://wiki.guildwars2.com/wiki/API:2/wvw/matches/stats/:id/teams only returns []. I'm just curious if these anomalies are on my end or if there is a problem with the API itself. Please let me know if anyone else is having these issues.

  • 1: Yes, they use different sources (the ingame view was added much later): the API version tracks death- and kill-event-logs from the game and submits them to the API. The API version also has some caching issues (so expect no refreshes in kills for some minutes to hours).

    2: the Team/Guild stats never worked properly and have been disabled for quite some time.

  • Mighty Cole.7849Mighty Cole.7849 Member ✭✭✭

    Thanks for the feedback @werdernator.6105. Hopefully, if anything, this has brought some attention to the problem and a Dev will look in to fixing it. It's a shame that all of the data isn't correct because people have developed some pretty amazing websites and apps to display the information. :(

  • Jey.2349Jey.2349 Member ✭✭
    edited August 31, 2019

    @werdernator.6105 said:
    The API version also has some caching issues

    The caching issue seems like a major issue for the wvw api.
    I gathered some raw data by saving the api results every minute for more than a whole week. These are the results:

    Other errors: 17/12097 - 0.14 % (API returns an error state)
    Cache errors: 4484/12097 - 37.07 %
    All errors: 4501/12097 - 37.21 %
    Mean cache error length (in minutes): 37.68 +- 19.60

    I determined the number of cache errors by calculating the activity of all servers (adding kills+deaths) and checking if the activity does not change for more than 5 minutes. (So possibly there are false-positives in there where no one died in a time slot of 5 minutes, but there are also possible excluded false-negatives where the cache error were shorter than 5 minutes)
    Interestingly the length of these cache outages differ almost uniformly from 1 minute up to more than one hour:

    I also described the issue here: https://en-forum.guildwars2.com/discussion/73928/wvw-api
    Would be great if this gets fixed soon.

©2010–2018 ArenaNet, LLC. All rights reserved. Guild Wars, Guild Wars 2, Heart of Thorns, Guild Wars 2: Path of Fire, ArenaNet, NCSOFT, the Interlocking NC Logo, and all associated logos and designs are trademarks or registered trademarks of NCSOFT Corporation. All other trademarks are the property of their respective owners.