This page exists to document information about the upcoming V2 API and is intended to be viewed by GW2.NET developers only.
The API follows the general pattern of enumerating possible values of the subsequent path segment, with the fully qualified path yielding a JSON object of the type being enumerated.
For example, /v2/colors will yield:
[1, 2, 3, ... ]
which can be used to create the fully qualified path of:
The following paths are exposed by this API:
- /v2/accounts (disabled)
- /v2/build (disabled)
- /v2/colors (localizable) (disabled)
- /v2/commerce/exchange (disabled)
- /v2/commerce/listings (disabled)
- /v2/continents (disabled)
- /v2/events (localizable) (disabled)
- /v2/events-state (disabled)
- /v2/files (disabled)
- /v2/floors (localizable) (disabled)
- /v2/items (localizable) (disabled)
- /v2/leaderboards (disabled)
- /v2/maps (localizable) (disabled)
- /v2/recipes (disabled)
- /v2/skins (localizable) (disabled)
- /v2/worlds (localizable) (disabled)
- /v2/wvw/matches (disabled)
- /v2/wvw/objectives (localizable) (disabled)
APIs that are locale aware accept the ?lang=<langId>
option. For example:
Possible locale 'langId' values include:
All APIs offer bulk expansion. There are several ways to do so. The simplest is by specifying multiple ids via query parameter, as in:
One may also specify 'all' to expand all ids. For example:
: not all APIs support the 'all' keyword as it may be too expensive.
Another approach to bulk expansion is through pages. Use the
parameter to specify the requeste page. Optionally, you can also provide a
value to adjust to your preferred page size.
Sample usage is:
Pay attention to response headers which provide additional metadata about the underlying collection, pagination info, and links.
Successful requests will result in HTTP status code 200 (OK).
The response content is a JSON object that describes the requested data.
Failed requests will result in HTTP status code 400 (Bad request).
The response content is a JSON object that describes the error message. Error messages are always in English.
"text" : "This human-readable text describes an error."