API:2/guild/:id/storage

From Guild Wars 2 Wiki
< API:2‎ | guild‎ | :id
Jump to navigationJump to search

/v2/guild/:id/storage

HTTP method
GET
Format
json
API version
version 2
Release date
?
Scope
account
guilds
Optional
none

This resource returns information about the items in a guild's storage. The endpoint requires the scope guilds, and will only work if the API key is from the guild leader's account.

Parameters

  • access_token (optional) – Can be used to specify an API key for the request if it is not given in the request header.

Response

The endpoint must be requested with :id replaced with a valid guild ID. The endpoint will return an array of objects, each describing a consumable present in that guild's storage. Each object has the following properties:

  • id (number) - ID of the guild consumable.
  • count (number) - Amount of the consumable in storage.

Example

https://api.guildwars2.com/v2/guild/4BBB52AA-D768-4FC6-8EDE-C299F2822F0F/storage
Authorization: Bearer <API key>
 [
   {
     "id" : 73,
     "count" : 8
   },
   // ...
 ]