API:2/races
From Guild Wars 2 Wiki
< API:2
Jump to navigationJump to search
/v2/races
- HTTP method
- GET
- Format
- json
- API version
- version 2
- Release date
- 2017-03-01
- Scope
- none
- Optional
- none
Endpoints
- None - Requests an array of strings containing the name of all playable races.
id
- (Optional) Request the racial skillsids
for the specific race. Cannot be used when specifying theids
parameter.
Resource response
For each requested race id
, an object with the following properties is returned:
id
(string) - The id/name of the race.skills
(array of numbers) - An array of skillids
resolvable against v2/skills.
Examples
https://api.guildwars2.com/v2/races
[ "Human", "Asura", "Sylvari", "Charr", "Norn" ]
https://api.guildwars2.com/v2/races/Asura
{ "id": "Asura", "skills": [ 12320, 12319, 12318, 12324, 12323, 12325, 10800 ] }