# Guild Wars 2 API

> Returns Guild Wars 2 game data: build number, worlds, items, achievements, titles and professions.

Category: Sports & Gaming. Region: global. 15 endpoints at `https://api.hoshime.com/v1/guildwars2/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/guildwars2
## GET /v1/guildwars2/build

The current game build number, which changes with each patch.

Scope: `social:read` · Units: 1 · Cached: 5 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string)

```bash
curl "https://api.hoshime.com/v1/guildwars2/build" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/guildwars2/worlds

All Guild Wars 2 worlds (servers) with their name and population level.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string), `name` (string), `population` (string)

```bash
curl "https://api.hoshime.com/v1/guildwars2/worlds" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/guildwars2/item

One Guild Wars 2 item by id: name, type, rarity, level, vendor value and icon.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | integer | yes | Item id, such as 19976 for Mystic Coin. (e.g. 19976) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `chatLink` (string), `description` (string), `icon` (string), `id` (string), `level` (integer (int64)), `name` (string), `rarity` (string), `type` (string), `vendorValue` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/guildwars2/item?id=19976" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/guildwars2/achievements

Achievements by id, up to 200 at once: name, description, requirement and type.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `ids` | string | yes | Comma-separated achievement ids, such as 1,2. (e.g. 1,2) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `description` (string), `flags` (Term[]), `flags[].name` (string), `id` (string), `name` (string), `requirement` (string), `tiers` (integer (int64)), `type` (string)

```bash
curl "https://api.hoshime.com/v1/guildwars2/achievements?ids=1%2C2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/guildwars2/titles

Titles by id, up to 200 at once, with the achievement each one is earned from.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `ids` | string | yes | Comma-separated title ids, such as 1,2. (e.g. 1,2) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `achievementId` (string), `id` (string), `name` (string)

```bash
curl "https://api.hoshime.com/v1/guildwars2/titles?ids=1%2C2" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/guildwars2/professions

The nine Guild Wars 2 professions with their icons and the weapons each can use.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `icon` (string), `id` (string), `name` (string), `weapons` (Term[]), `weapons[].name` (string)

```bash
curl "https://api.hoshime.com/v1/guildwars2/professions" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/guildwars2/price

The trading post prices of one item: the best buy order and sell listing, and their quantities.

Scope: `social:read` · Units: 1 · Cached: 2 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | integer | yes | Item id, such as 19684. (e.g. 19684) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `buyQuantity` (integer (int64)), `buyUnitPrice` (integer (int64)), `id` (string), `sellQuantity` (integer (int64)), `sellUnitPrice` (integer (int64)), `whitelisted` (boolean)

```bash
curl "https://api.hoshime.com/v1/guildwars2/price?id=19684" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/guildwars2/pvpSeasons

The PvP seasons of Guild Wars 2 with their start and end dates and whether they are active.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `active` (boolean), `end` (string), `id` (string), `name` (string), `start` (string)

```bash
curl "https://api.hoshime.com/v1/guildwars2/pvpSeasons" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/guildwars2/continents

The continents of Tyria and the Mists with their zoom range and floors.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `floors` (integer (int64)[]), `id` (string), `maxZoom` (integer (int64)), `minZoom` (integer (int64)), `name` (string)

```bash
curl "https://api.hoshime.com/v1/guildwars2/continents" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/guildwars2/recipeSearch

The ids of the recipes that craft an item; read one with the recipe endpoint.

Scope: `social:read` · Units: 1 · Cached: 360 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `output` | integer | yes | Id of the item the recipes make, such as 19684. (e.g. 19684) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string)

```bash
curl "https://api.hoshime.com/v1/guildwars2/recipeSearch?output=19684" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/guildwars2/recipe

One recipe by id: the item it makes, the crafting disciplines and the ingredients.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | integer | yes | Recipe id, such as 18. (e.g. 18) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `craftMillis` (integer (int64)), `disciplines` (Term[]), `disciplines[].name` (string), `id` (string), `ingredients` (Ingredient[]), `ingredients[].count` (integer (int64)), `ingredients[].itemId` (string), `minRating` (integer (int64)), `outputCount` (integer (int64)), `outputItemId` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/guildwars2/recipe?id=18" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/guildwars2/gemExchange

The gold needed to buy a number of gems on the trading post, in copper coins, and the price of one gem.

Scope: `social:read` · Units: 1 · Cached: 5 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `gems` | integer | yes | Number of gems to buy, from 100 to 100000. (e.g. 1000) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `coins` (integer (int64)), `coinsPerGem` (integer (int64)), `gems` (any)

```bash
curl "https://api.hoshime.com/v1/guildwars2/gemExchange?gems=1000" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/guildwars2/listings

The buy orders and sell listings of one item on the trading post, each price with its listing count and quantity.

Scope: `social:read` · Units: 1 · Cached: 2 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | integer | yes | Item id, such as 19976. (e.g. 19976) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `buys` (Offer[]), `buys[].listings` (integer (int64)), `buys[].quantity` (integer (int64)), `buys[].unitPrice` (integer (int64)), `id` (string), `sells` (Offer[]), `sells[].listings` (integer (int64)), `sells[].quantity` (integer (int64)), `sells[].unitPrice` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/guildwars2/listings?id=19976" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/guildwars2/specializations

The core and elite specializations of Guild Wars 2, optionally of one profession, with their icons.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `profession` | string | no | Profession name, such as Guardian or Mesmer. Empty lists every specialization. (e.g. Guardian) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `elite` (boolean), `icon` (string), `id` (string), `name` (string), `profession` (string)

```bash
curl "https://api.hoshime.com/v1/guildwars2/specializations?profession=Guardian" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/guildwars2/wvwMatches

The World versus World matches of the current week: each match's three worlds, scores, victory points, kills and deaths.

Scope: `social:read` · Units: 1 · Cached: 5 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `deaths` (WvwTeams), `deaths.blue` (integer (int64)), `deaths.green` (integer (int64)), `deaths.red` (integer (int64)), `endsAt` (string), `id` (string), `kills` (WvwTeams), `kills.blue` (integer (int64)), `kills.green` (integer (int64)), `kills.red` (integer (int64)), `scores` (WvwTeams), `scores.blue` (integer (int64)), `scores.green` (integer (int64)), `scores.red` (integer (int64)), `startedAt` (string), `victoryPoints` (WvwTeams), `victoryPoints.blue` (integer (int64)), `victoryPoints.green` (integer (int64)), `victoryPoints.red` (integer (int64)), `worlds` (WvwTeamWorlds), `worlds.blue` (string), `worlds.green` (string), `worlds.red` (string)

```bash
curl "https://api.hoshime.com/v1/guildwars2/wvwMatches" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
