Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Guild Wars 2 APIs

bookworm438bookworm438 Member Posts: 647

Anet has released some API's for their game over on their forums.

 

https://forum-en.guildwars2.com/forum/community/api

 

One of the stickied topics details the available APIs and what data they return. Apparently more intensive APIs will be released in the future.

Comments

  • VorchVorch Member UncommonPosts: 793
    Wait...from this, you can essentially know exactly what events are going on in the game at what time from where ever, even if you are not logged in?

    "As you read these words, a release is seven days or less away or has just happened within the last seven days— those are now the only two states you’ll find the world of Tyria."...Guild Wars 2

  • NitthNitth Member UncommonPosts: 3,904


    Originally posted by Vorch
    Wait...from this, you can essentially know exactly what events are going on in the game at what time from where ever, even if you are not logged in?
    Thats what it says..


    Dynamic Events API – BETA
    https://api.guildwars2.com/v1/events.json?world_id=1001
    Optional parameters: world_id, map_id, event_id

    This API returns an object with an “events” array. Each element contains the world_id, map_id, event_id, and state of an event. The ids can be translated to strings using the APIs listed below. The optional parameters can be used to filter the results to a desired scope of events.


    The possible event states are:
    Active – The event is running now
    Success – The event has succeeded
    Fail – The event has failed
    Warmup – The event is inactive, and will only become active once certain criteria are met
    Preparation – The criteria for the event to start have been met, but certain activities (such as an NPC dialogue) have not completed yet. After the activites have been completed, the event will become Active.


    image
    TSW - AoC - Aion - WOW - EVE - Fallen Earth - Co - Rift - || XNA C# Java Development

  • bookworm438bookworm438 Member Posts: 647
    Originally posted by Vorch
    Wait...from this, you can essentially know exactly what events are going on in the game at what time from where ever, even if you are not logged in?

    According to subsequent posts on that forum, yes. It updates in real time, so if an event starts/stops the data will update as well. So those using the API could do a new call ever 30 seconds or so. 

    It does not display events or items that have not been discovered by any players, though. So if there is an event out there that absolute no one has played in the game, it will not show up in the api data.

    Apparently these APIs are hosted on very well equipped servers to handle high concurrency of calls.

Sign In or Register to comment.