API:1/skin_details
From Guild Wars 2 Wiki
< API:1
Jump to navigationJump to search
/v1/skin_details.json
- HTTP method
- GET
- Format
- json
- API version
- version 1
- Release date
- ?
- Scope
- none
- Optional
- none
This resource returns details about a single skin.
Parameters
- Required parameters
skin_id– The item to query for.
- Optional parameters
lang– The language to display the texts in.
Response
The response is an object with the following properties:
skin_id(number) – The skin id.name(string) – The name of the skin.type(string) – The skin type, eitherArmor,Weapon, orBack.flags(array of string) – Additional skin flags. Possible flags are:ShowInWardrobe– When displayed in the account wardrobe (set for all skins listed in the API).NoCost– When applying the skin is free.HideIfLocked– When the skin is hidden until it is unlocked.
restrictions(array of string) – Race restrictions that apply to the skin, e.g.Humanwill be a listed restriction, if the skin can only be applies to human characters.icon_file_id(string) – The icon file id to be used with the render service.icon_file_signature(string) – The icon file signature to be used with the render service.description(string) – Optional skin description.
Armor
Armor type skins have another property armor which is an object with the following properties:
type(string) – The armor type (slot).weight_class(string) – The armor weight, eitherLight,MediumorHeavy.
Weapons
Weapon type skins have another property weapon which is an object with the following properties:
type(string) – The weapon type.damage_type(string) – The damage type, eitherPhysical,Fire,Lightning, orIce.
Example
https://api.guildwars2.com/v1/skin_details.json?skin_id=1350
{
"skin_id": "1350",
"name": "Zodiac Light Vest",
"type": "Armor",
"flags": [
"ShowInWardrobe"
],
"restrictions": [],
"icon_file_id": "740312",
"icon_file_signature": "021048C317DFFFB6727E0955A2D6C7EFFBE9425B",
"armor": {
"type": "Coat",
"weight_class": "Light"
}
}