API:2/currencies
From Guild Wars 2 Wiki
< API:2
Jump to navigationJump to search
/v2/currencies
- HTTP method
- GET
- Format
- json
- API version
- version 2
- Release date
- 2015-08-27
- Scope
- none
- Optional
- none
This resource returns a list of the currencies contained in the account wallet.
Parameters
lang
– Request localized information.
Response
When accessed without any parameters, the endpoint will return an array of ids for each type of currency. When multiple ids are requested using the ids parameter, a list of response objects is returned.
Each object returned contains the following properties:
id
(number) – The currency's ID.name
(string) – The currency's name.description
(string) – A description of the currency.icon
(string) – A URL to an icon for the currency.order
(number) – A number that can be used to sort the list of currencies when ordered from least to greatest.
Example
Request
https://api.guildwars2.com/v2/currencies?ids=all
Response
[ { "id": 1, "name": "Coin", "description": "The primary currency of Tyria. Spent at vendors throughout the world.", "order": 10, "icon": "https://render.guildwars2.com/file/98457F504BA2FAC8457F532C4B30EDC23929ACF9/619316.png" }, ... ]