API:2/characters/:id/specializations
From Guild Wars 2 Wiki
< API:2 | characters
Jump to navigationJump to search
/v2/characters/:id/specializations
- HTTP method
- GET
- Format
- json
- API version
- version 2
- Release date
- 2015-05-22
- Scope
- account
builds
characters - Optional
- none
This resource returns information about the specializations equipped on a character attached to a specific account.
Parameters
access_token
- (optional) If the API key is not specified in the request header, it can be specified here.
Response
specializations
(object) - contains the pve, pvp, and wvw objects for the current specializations and traits equipped.pve
(array) - contains the information on each slotted specialization and trait for PvEid
(integer) - Specialization id, can be resolved against /v2/specializations.traits
(array of integers) - returns ids for each selected trait, can be resolved against /v2/traits.
pvp
(array) - contains the information on each slotted specialization and trait for PvPid
(integer) - Specialization id, can be resolved against /v2/specializations.traits
(array of integers) - returns ids for each selected trait, can be resolved against /v2/traits.
wvw
(array) - contains the information on each slotted specialization and trait for WvWid
(integer) - Specialization id, can be resolved against /v2/specializations.traits
(array of integers) - returns ids for each selected trait, can be resolved against /v2/traits.
Example
Request
https://api.guildwars2.com/v2/characters/<character name>/specializations Authorization: Bearer <API key> https://api.guildwars2.com/v2/characters/<character name>/specializations?access_token=<API key>
Response
"specializations": { "pve": [ { "id": 31, "traits": [ 296, 325, 1510 ] }, {...}, { "id": 48, "traits": [ 1952, 2015, 1986 ] } ], "pvp": [...], "wvw": [...] } }