API

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

EndpointDescription
/achievementsGet a list of all achievement IDs
/achievements/:id/dataGet data of an achievement (same format as returned by the official Guild Wars 2 API)
/itemsGet a list of all item IDs
/items/:id/dataGet 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.

ParameterDescription
langThe language of the achievement (de / en / es / fr)

GET /items

Get a list of all item IDs.

ParameterDescription
typeFilter the item type. Examples: Weapon, Armor, …
subtypeFilter the item subtype (provided in details.type). Examples: Axe, Coat, …
rarityFilter the item rarity. Examples: Exotic, Ascended, …
weightFilter 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.

ParameterDescription
langThe language of the item (de / en / es / fr)
This site is not affiliated with ArenaNet, Guild Wars 2, or any of their partners. All copyrights reserved to their respective owners.
© 2014 ArenaNet, Inc. All rights reserved. NCsoft, the interlocking NC logo, ArenaNet, Guild Wars, Guild Wars Factions, Guild Wars Nightfall, Guild Wars: Eye of the North, Guild Wars 2, and all associated logos and designs are trademarks or registered trademarks of NCsoft Corporation. All other trademarks are the property of their respective owners.