gw2treasures.com provides a public API. The API contains data not available in the official Guild Wars 2 API, for example deleted or community contributed content.
The API is available at https://api.gw2treasures.com/
.
API Key
All requests to the gw2treasures.com API require an API key. This API key is used for per application rate limiting and versioning. Some endpoints may require approval before an application can use them in the future.
You can create as many applications as you want. After creating a new application you can access its API key. You can view all your applications on the Developer page.
The API key can be passed as header (Authorization: Bearer <api-key>
) or as apiKey
query parameter.
fetch('https://api.gw2treasures.com/items', {
headers: {
Authorization: `Bearer ${apiKey}`
}
})
Endpoints
Endpoint | Description |
---|---|
/achievements | Get a list of all achievement IDs |
/achievements/:id/data | Get data of an achievement (same format as returned by the official Guild Wars 2 API) |
/items | Get a list of all item IDs |
/items/:id/data | Get data of an item (same format as returned by the official Guild Wars 2 API) |
GET /achievements
Get a list of all achievement IDs.
GET /achievements/:id/data
Get data of an achievement (same format as returned by the official Guild Wars 2 API).
The HTTP response will contain a X-Created-At
header with an ISO 8601 timestamp of when the item was first discovered.
Parameter | Description |
---|---|
lang | The language of the achievement (de / en / es / fr ) |
GET /items
Get a list of all item IDs.
Parameter | Description |
---|---|
type | Filter the item type . Examples: Weapon, Armor, … |
subtype | Filter the item subtype (provided in details.type ). Examples: Axe, Coat, … |
rarity | Filter the item rarity . Examples: Exotic, Ascended, … |
weight | Filter the item weight. Only returns items with type Armor. Examples: Light, Medium, Heavy |
GET /items/:id/data
Get data of an item (same format as returned by the official Guild Wars 2 API).
The HTTP response will contain a X-Created-At
header with an ISO 8601 timestamp of when the item was first discovered.
Parameter | Description |
---|---|
lang | The language of the item (de / en / es / fr ) |