API:2/legendaryarmory

From Guild Wars 2 Wiki
Jump to navigationJump to search

/v2/legendaryarmory

HTTP method
GET
Format
json
API version
version 2
Release date
2021-07-14
Scope
none
Optional
none

This resource returns information about Legendary Armory items that are available in-game. For a specific account's legendary armory items, see v2/account/legendaryarmory.

Endpoints

  • None - Request the list of all available Legendary Armory item ids when the root endpoint (v2/legendaryarmory) has been accessed.
  • id - (Optional) Request the details for the specified id when accessing the endpoint (v2/legendary/id). Cannot be used when specifying the ids parameter.

Parameters

  • lang - (Optional) Request localized information.
  • page - (Optional; integer)
  • page_size - (Optional; integer)
  • ids - (Optional; Comma Delimited List|all) Request an array of Legendary Armory items for the specified ids or all Legendary Armory items. Cannot be used when accessing the id endpoint.

Response

For each requested item id, an object with the following properties is returned:

  • id (integer) (default/null value: 0) - The item id of the Legendary Armor item.
  • max_count (integer) - The maximum quantity of Legendary Armory items that can be stored on an account. Possible values:
    • 1 - Armor items, Back items and most Trinkets (except the ring Conflux)
    • 2 - Focus, Greatsword, Hammer, Harpoon, Longbow, Rifle, Scepter, Shield, Short bow, Speargun, Staff, Torch, Trident and Warhorn. Also applies to Conflux.
    • 4 - Axe, Dagger, Mace, Pistol, Sword
    • 7 - Rune
    • 8 - Sigil

Example

https://api.guildwars2.com/v2/legendaryarmory

[
  83162,
  93105,
  80111,
  ...
  74155
]

https://api.guildwars2.com/v2/legendaryarmory/81462

{
  "id": 81462,
  "max_count": 1
}

https://api.guildwars2.com/v2/legendaryarmory?ids=74155

[
  {
    "id": 74155,
    "max_count": 1
  }
]

https://api.guildwars2.com/v2/legendaryarmory?ids=74155,81462

[
  {
    "id": 81462,
    "max_count": 1
  },
  {
    "id": 74155,
    "max_count": 1
  }
]

https://api.guildwars2.com/v2/legendaryarmory?ids=all

[
  {
    "id": 83162,
    "max_count": 1
  },
  {
    "id": 93105,
    "max_count": 2
  },
  {
    "id": 80111,
    "max_count": 1
  },
  ...
  {
    "id": 74155,
    "max_count": 1
  }
]