API:2/achievements/groups

From Guild Wars 2 Wiki
Jump to navigationJump to search

/v2/achievements/groups

HTTP method
GET
Format
json
API version
version 2
Release date
2015-12-02
Scope
none
Optional
none

This resource returns all the top-level groups for achievements.

Parameters

  • lang (optional) – The language to query for.

Response

If the root endpoint (/v2/achievements/groups) 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 requested group id, an object with the following properties is returned:

  • id (string) - The group's GUID.
  • name (string) – The group name.
  • description (string) – The group description.
  • order (number) – A number describing where to sort this group among other groups. Lowest numbers go first, highest numbers go last.
  • categories (array) – An array containing a number of category IDs that this group contains. (See /v2/achievements/categories.)

Example

https://api.guildwars2.com/v2/achievements/groups/65B4B678-607E-4D97-B458-076C3E96A810
{
  "id": "65B4B678-607E-4D97-B458-076C3E96A810",
  "name": "Heart of Thorns",
  "description": "Achievements for accomplishments throughout the jungle.",
  "order": 4,
  "categories": [108, 109, 110, 111, 112, 116]
}