API:2/legends
From Guild Wars 2 Wiki
< API:2
Jump to navigationJump to search
/v2/legends
- HTTP method
- GET
- Format
- json
- API version
- version 2
- Release date
- 2016-04-22
- Scope
- none
- Optional
- none
This resource returns information about the Revenant Legends that are in the game.
Endpoints
- None - Request the list of all available Legend
idswhen the root endpoint (v2/legends) has been accessed. id- (Optional) Request the Legend for the specificedidwhen accessing the endpoint (v2/legends/id). Cannot be used when specifying theidsparameter.
Parameters
lang– (Optional) Request localized information.page- (Optional; integer)page_size- (Optional; integer)ids- (Optional; Comma Delimited List|all) Request an array of Legends for the specifiedidsor all Legends. Cannot be used when using theidendpoint.
Response
For each requested Legend id, an object with the following properties is returned:
id(string) (default/null value: "") - Theidof the Legend.code(number) - The legend code for a build template link. Available on schema version2019-12-19T00:00:00.000Zor later.swap(integer) (default/null value: 0) - Theidof the profession (swap Legend) skill resolvable againstv2/skills.heal(integer) (default/null value: 0) - Theidof the heal skill resolvable againstv2/skills.elite(integer) (default/null value: 0) - Theidof the elite skill resolvable againstv2/skills.utilities(array of integers) - List ofidsof the utility skills resolvable againstv2/skills.
Example
https://api.guildwars2.com/v2/legends
[ "Legend1", "Legend2", "Legend3", "Legend4", "Legend5", "Legend6", "Legend7", "Legend8" ]
https://api.guildwars2.com/v2/legends/Legend2
{
"id":"Legend2",
"swap":27659,
"heal":26937,
"elite":28406,
"utilities":[
29209,
28231,
27107
]
}
https://api.guildwars2.com/v2/legends?ids=Legend4
[
{
"id":"Legend4",
"swap":28376,
"heal":28219,
"elite":28287,
"utilities":[
27322,
27505,
27917
]
}
]