Aller au contenu
GET /v1/currencies

In-game currencies

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/gw2-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/gw2-api/v1/currencies" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gw2-api/v1/currencies", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gw2-api/v1/currencies");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/gw2-api/v1/currencies",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "count": 79,
        "currencies": [
            {
                "id": 4,
                "icon": "https://render.guildwars2.com/file/220061640ECA41C0577758030357221B4ECCE62C/502065.png",
                "name": "Gem",
                "description": "Purchased and spent via the Black Lion Trading Company."
            },
            {
                "id": 1,
                "icon": "https://render.guildwars2.com/file/98457F504BA2FAC8457F532C4B30EDC23929ACF9/619316.png",
                "name": "Coin",
                "description": "The primary currency of Tyria. Spent at vendors throughout the world."
            },
            {
                "id": 2,
                "icon": "https://render.guildwars2.com/file/94953FA23D3E0D23559624015DFEA4CFAA07F0E5/155026.png",
                "name": "Karma",
                "description": "Earned through various activities. Spent at vendors throughout the world."
            },
            {
                "id": 23,
                "icon": "https://render.guildwars2.com/file/0AD608DE7FDEE0B909905C0AF9401321CF65CD94/1010701.png",
                "name": "Spirit Shard",
                "description": "Used by Miyani to maintain the Mystic Forge."
            },
            {
                "id": 3,
                "icon": "https://render.guildwars2.com/file/A1BD345AD9192C3A585BE2F6CB0617C5A797A1E2/619317.png",
                "name": "Laurel",
                "description": "Obtained from Wizard's Vault rewards. Used to purchase various rewards from laurel merchants."
            },
            {
                "id": 16,
                "icon": "https://render.guildwars2.com/file/1DB12CF3E9D8D3CF77DA805B2008D417EA32C172/699005.png",
                "name": "Guild Commendation",
                "description": "Earned through Guild Missions. Spent in Lion's Arch. Used to purchase various rewards."
            },
            {
                "id": 18,
                "icon": "https://render.guildwars2.com/file/66A42690C2EA05235C4090372B975117F60EE7E3/779571.png",
                "name": "Transmutation Charge",
                "description": "Purchased via the Black Lion Trading Company. Spent in the wardrobe to change appearance."
            },
            {
                "id": 61,
                "icon": "https://render.guildwars2.com/file/BC2EACDA78BC950263F901E8EBA6E74D08E97E23/2596976.png",
                "name": "Research Note",
                "description": "Acquired by deconstructing crafted items with research kits. Used at vendors in Cantha, the Horn of Maguuma, and Janthir, and to craft newer recipes."
            },
            {
                "id": 68,
                "icon": "https://render.guildwars2.com/file/D312AE6DB1AE2ECC2494772DF1D312D13B501D4E/2596974.png",
                "name": "Imperial Favor",
                "description": "Acquired by assisting in events throughout Cantha. Used at vendors in Cantha."
            },
            {
                "
…