API:1/guild_details

From Guild Wars 2 Wiki
Jump to navigationJump to search

/v1/guild_details.json

HTTP method
GET
Format
json
API version
version 1
Release date
?
Scope
none
Optional
none

This resource returns a details about a guild.

Parameters

Required parameters
  • guild_id – The guild id to query for.
  • guild_name – The guild name to query for.

Note: Only one parameter is required; if both are set, the guild id takes precedence.

Response

The response is an object with the following properties:

  • guild_id (string) – The guild id.
  • guild_name (string) – The guild name.
  • tag (string) – The guild tag.
  • emblem (object) – If present, it holds detailed information about the guilds emblem.
    • background_id (number) – The id of the background image.
    • foreground_id (number) – The id of the foreground image.
    • flags (list) – A list of additional flags, possible values are: FlipBackgroundHorizontal, FlipBackgroundVertical, FlipForegroundHorizontal and FlipForegroundVertical
    • background_color_id (number) – The background color id (see API:1/colors).
    • foreground_primary_color_id (number) – The primary foreground color id.
    • foreground_seconday_color_id (number) – The secondary foreground color id.

Example

https://api.guildwars2.com/v1/guild_details.json?guild_id=75FD83CF-0C45-4834-BC4C-097F93A487AF

 {
   "guild_id": "75FD83CF-0C45-4834-BC4C-097F93A487AF",
   "guild_name": "Veterans Of Lions Arch",
   "tag": "LA",
   "emblem": {
     "background_id": 27,
     "foreground_id": 114,
     "flags": [],
     "background_color_id": 11,
     "foreground_primary_color_id": 584,
     "foreground_secondary_color_id": 64
   }
 }