API:2/wvw/objectives

From Guild Wars 2 Wiki
< API:2‎ | wvw
Jump to navigationJump to search

/v2/wvw/objectives

HTTP method
GET
Format
json
API version
version 2
Release date
2015-09-10
Scope
none
Optional
none

This resource returns details about World vs. World objectives such as camps, towers, and keeps.

Parameters

  • lang (string, optional) – Request localized responses.

Response

If the root endpoint (/v2/wvw/objectives) is accessed without specifying an id, a list of all ids is returned. When multiple ids are requested using the ids parameter, a list of response objects is returned.

For each objective requested, the following object is returned as a response:

  • id (string) – The objective id.
  • name (string) – The name of the objective.
  • type (string) – The type of the objective. Possible values include:
    • Camp
    • Castle
    • Keep
    • Mercenary
    • Tower
    • Ruins
    • Resource
    • Generic
    • Spawn
  • sector_id – The map sector the objective can be found in. (See /v2/continents.)
  • map_id (number) – The ID of the map that this objective can be found on.
  • map_type (string) – The map that this objective can be found on. One of: GreenHome, BlueHome, RedHome, Center, or EdgeOfTheMists.
  • coord (array) – An array of three numbers representing the X, Y and Z coordinates of the objectives marker on the map.
  • label_coord (array) – An array of two numbers representing the X and Y coordinates of the sector centroid.
  • marker (string) – The icon link
  • chat_link (string) - The chat code for the observed objective.
  • upgrade_id (number)(optional) - The upgrade id to be resolved against v2/wvw/upgrades.

Example

https://api.guildwars2.com/v2/wvw/objectives/38-6
{
 "id": "38-6",
 "name": "Speldan Clearcut",
 "sector_id": 844,
 "type": "Camp",
 "map_type": "Center",
 "map_id": 38,
 "upgrade_id": 35,
 "coord": [
   9841.05,
   13545.8,
   -508.295
 ],
 "label_coord": [
   9739.81,
   13586.9
 ],
  "marker": "https://render.guildwars2.com/file/015D365A08AAE105287A100AAE04529FDAE14155/102532.png",
  "chat_link": "[&DAYAAAAmAAAA]"

}