API talk:1/item details

From Guild Wars 2 Wiki
Jump to navigationJump to search

Item examples[edit]

Response examples are important to understand correctly this API function, and I think a talk page is not the correct page to write those informations, so I moved all the content here. Erebo85 (talk) 21:00, 28 March 2014 (UTC)

Back type[edit]

Hi All,

today i did a full sync with the api and discovered a new "type" which is "Back"

I'd add it to the page and add more information as soon as i find them, but i am not allowed to edit the site.

For example, please see https://api.guildwars2.com/v1/item_details.json?item_id=37007 speedmann (talk) 17:38, 1 April 2014 (UTC)

It's not new, it was just omitted from the list here. —Dr Ishmael User Dr ishmael Diablo the chicken.png 18:23, 1 April 2014 (UTC)

Container types[edit]

Does anyone know the difference between container type Default and GiftBox? I'm analyzing the API and it seems that GiftBox are Unidentified Dye (with various color variation), gear boxes like Warrior Gear,Tequatl's Hoard,Tixx's Toybox,Scarlet's Spare Keys and Pile of Regurgitated Armor. All the others containers are type "Default". It seems not to be a "clean/logic" separations... Alcarin (talk) 22:34, 5 May 2014 (UTC)

XML tags in descriptions[edit]

In description string there could be some XML tag. Here a list of tags that I've found:

<c=@flavor></c>

<c=@reminder></c>

<br>

The preceding unsigned comment was added by Alcarin (talkcontribs).

<c=...> is a custom color tag for Anet's text engine; the @foo portion is a parameter/variable for a specific color code. These have been used since GW1.
The last one is simply an HTML line-break tag; I've also seen some escape sequences \n. Not sure why both forms are represented in the game text, but my Perl module recognizes both forms and translates them into 0x0A linefeeds. —Dr Ishmael User Dr ishmael Diablo the chicken.png 23:44, 12 May 2014 (UTC)
Do you think could be usefull to create a page about this type of tag? I've stumbled upon them trying to recreating in-game tooltip, I think it could be useful to describe them all in detail (I don't know how many they are, I've only found this two until now). Alcarin (talk) 21:25, 13 May 2014 (UTC)
In my database, I can find four @colors:
  • @flavor, used everywhere in item descriptions
  • @reminder, used in a few places:
    • on Flame Legion armor coat descriptions to state that they hide leg or shoulder armor
    • in sigils' buff_descriptions
  • @warning, only used on Twisted Watchwork Portal Device's description
  • @abilitytype, used on toys
If you want to create a page to describe these, list it under API:Main#Help topics. —Dr Ishmael User Dr ishmael Diablo the chicken.png 21:55, 13 May 2014 (UTC)

Missing types[edit]

I noticed that a bunch of type names are missing from the documentation.

  • Item types: Trait
  • Weapon types: Toy, TwoHandedToy, SmallBundle, LargeBundle

~Steven (talk) 22:37, 20 July 2014 (UTC)

HoT items not appearing[edit]

I thought I'd go ahead and point out that as of writing this, items from the Heart of Thorns expansion aren't being returned by this endpoint.

JamEngulfer (talk) 17:32, 26 October 2015 (UTC)

We know. It's not something the wiki editors can do anything about, though. ("We" are not ArenaNet.) —Dr Ishmael User Dr ishmael Diablo the chicken.png 19:04, 26 October 2015 (UTC)
Oh yeah, I get that this isn't a "bug fix api plz" place. I just thought it needed mentioning given that it's not immediately obvious without actually manually getting an item id from an item in HoT and probing the API yourself. I'm wondering if there shouldn't be a note about this on the main API page actually. JamEngulfer (talk) 19:12, 26 October 2015 (UTC)