Talk:WebAPI/GetSchema

From Team Fortress Wiki
Jump to: navigation, search

Schema`s update?

What happend with data field «item_type_name», «item_name» and «item_description»? Why now it looks like

  • "item_type_name": "#DOTA_WearableType_Glaive",
  • "item_name": "#DOTA_Item_AntiMages_Glaive",
  • "item_description": "#DOTA_Item_Desc_AntiMages_Glaives"

???

Is it a Valve`s mistake?--Ohar (talk) 14:16, 18 October 2013 (PDT)

Oh, I am sorrry, my mistake. I omitted «language» attribute at the query. Phew.--Ohar (talk) 14:42, 18 October 2013 (PDT)

Dota item qualities

Can anyone clarify why most of dota items has item_quality="4"? How can i get item rare or uncommon quality here?--Ohar 09:46, 10 May 2013 (PDT)

Because quality isn't the same as rarity. You'll have to look at the client schema for the rarity. -- Lagg Backpack Stickybomb Launcher.png 11:45, 10 May 2013 (PDT)
Whats an «client schema»?--Ohar 11:43, 21 May 2013 (PDT)

HTTP Last-Modified header not appearing

I can't seem to get HTTP Last-Modified header to appear on GetSchema. Has anyone successfully used that header?

Below is one of my curl attempts.

curl -v -H "If-Modified-Since: Wed, 24 Aug 2011 11:08:08 GMT" http://api.steampowered.com/ITFItems_440/GetSchema/v0001/?key=<MY_KEY>&language=en

Trying 63.228.223.110... connected Connected to api.steampowered.com (63.228.223.110) port 80 (#0) GET /ITFItems_440/GetSchema/v0001/?key=<MY_KEY> HTTP/1.1 User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3 Host: api.steampowered.com Accept: */* If-Modified-Since: Wed, 24 Aug 2011 11:08:08 GMT

HTTP/1.1 200 OK expires: Thu, 25 Aug 2011 06:25:05 GMT Content-Type: application/json; charset=UTF-8 Via: 1.1 api.steampowered.com Content-Length: 649245 Date: Thu, 25 Aug 2011 06:45:07 GMT X-Varnish: 1197263039 Age: 0 Via: 1.1 varnish Connection: keep-alive

VMDX 23:36, 24 August 2011 (PDT)

[netshroud@Helios:~] $ curl -I http://api.steampowered.com/ITFItems_440/GetSchema/v0001/?key=[REDACTED]&language=en
[1] 4508
[netshroud@Helios:~] $ HTTP/1.1 200 OK
expires: Thu, 25 Aug 2011 06:34:07 GMT
Content-Type: application/json; charset=UTF-8
Via: 1.1 api.steampowered.com
Date: Thu, 25 Aug 2011 06:32:06 GMT
X-Varnish: 1300007865
Age: 0
Via: 1.1 varnish
Content-Length: 649245
Connection: Keep-Alive

^C
[1]+  Done                    curl -I http://api.steampowered.com/ITFItems_440/GetSchema/v0001/?key=[REDACTED]
[netshroud@Helios:~] $ curl -I http://api.steampowered.com/IEconItems_440/GetSchema/v0001/?key=[REDACTED]&language=en
[1] 4510
[netshroud@Helios:~] $ HTTP/1.1 200 OK

expires: Thu, 25 Aug 2011 06:34:21 GMT
last-modified: Wed, 24 Aug 2011 14:01:20 GMT
Content-Type: application/json; charset=UTF-8
Via: 1.1 api.steampowered.com
Date: Thu, 25 Aug 2011 06:32:19 GMT
X-Varnish: 1300013588
Age: 0
Via: 1.1 varnish
Content-Length: 693145
Connection: Keep-Alive

^C
[1]+  Done                    curl -I http://api.steampowered.com/IEconItems_440/GetSchema/v0001/?key=[REDACTED]
[netshroud@Helios:~] $ curl -H "if-modified-since: Wed, 24 Aug 2011 14:01:20 GMT" -I http://api.steampowered.com/IEconItems_440/GetSchema/v0001/?key=[REDACTED]
HTTP/1.1 304 Not Modified
Date: Thu, 25 Aug 2011 06:56:42 GMT
Via: 1.1 varnish
X-Varnish: 1197551004
Last-Modified: Wed, 24 Aug 2011 14:01:20 GMT
Expires: Thu, 25 Aug 2011 06:36:40 GMT
Connection: Keep-Alive

[netshroud@Helios:~] $
Looks like it only support IEconItems, not ITFItems. (By the way, I only just realised why curl keeps running in the background like that. Stupid ampersand.) -- Netshroud Killicon backstab.png (talk | contribs) 23:43, 24 August 2011 (PDT)


Woah, cool! I didn't even know IEconItems existed... when did this happen, and why? Is ITFItems deprecated? VMDX 23:59, 24 August 2011 (PDT)
IEconItems launched with Portal 2. ITFItems isn't deprecated as far as I know, but no new root fields (e.g. particle names, items_game URL) are added to it. I'm not sure about subfields, the ITFItems might have a frozen structure, but I don't know. -- Netshroud Killicon backstab.png (talk | contribs) 00:12, 25 August 2011 (PDT)
It is deprecated. Assume it will stop working at any time. This is why I don't maintain it's documentation anymore. -- Lagg Backpack Stickybomb Launcher.png 10:23, 25 August 2011 (PDT)
Ah, I see. Thanks so much for your help :) VMDX 00:14, 25 August 2011 (PDT)

Norwegian (no)

2011.9.11.10.31 - The Norwegian (no) language does not seem to work. It instead returns data as if there is no language variable sent. All other random two letter combinations returns english. The preceding unsigned comment was added by Zeros (talk) • (contribs) 15:20, 11 September 2011


2011.9.11.13.14 - Tested this with the Team Fortress 2 Public Beta gameID and it shows up correctly. Perhaps this is something that will be added in the near future. The preceding unsigned comment was added by Zeros (talk) • (contribs) 17:15, 11 September 2011

No, the output is just plain broken, no has worked before. I'll contact Valve about it. ~ Ath (talk) 16:54, 11 September 2011 (PDT)

Store_bundle

Seems like in the item_set section this seems to be missing on both the list of items and list of item sets The preceding unsigned comment was added by Stormreaper (talk) • (contribs)

Fixed, thanks -- Lagg Backpack Stickybomb Launcher.png 06:52, 13 January 2012 (PST)

item_levels, kill_eater_ranks, kill_eater_score_types

Hi,

Just stumbled upon this, and I'm a bit puzzled as to how these are used. Seems like item_levels has 2 different ranks one for killeater and another for spiritofgiving, both of which don't seem to be referenced anywhere. kill_eater_ranks has all the ranks for kill_eater which are also the same as the ones in item_levels but also don't seem to be referenced. Also some items seem to use kill_eater_score_type attribute where as others don't i'm guessing this would be all items prior to kill_eater_score_type? Most confusing is the spirit of giving item, which references both kill_eater and kill_eater_score_type but no reference to what type of ranking it uses. I think objects in item_levels are supposed to be referenced somewhere from item_levels in some sort of an attribute? Oh and there's no documentation for kill_eater_ranks and kill_eater_score_types.

Hope someone can clear this up The preceding unsigned comment was added by Stormreaper (talk) • (contribs) 15:07, 14 January 2012 (UTC)

kill_eater_ranks is deprecated and was removed a while ago, it is only kept there for backwards compatibility as far as I know. The ones in item_levels is what you should be using, and no there is currently no where that defines which set of levels to use and unfortunately currently requires you to hard code the check for the gift badge. There is more than one kill eater score type attribute, and some items will use one or the other but they have no specific meaning between them besides allowing items to have more than one kill eater score. As for the documentation of kill_eater_ranks, I removed it and probably won't add it back, as I said use item_levels because it is deprecated and will most likely be removed at some point, as for kill_eater_score_types, when I was removing the afore mentioned set I apparently accidentally removed that as well. It is now fixed. Thanks for letting me know. Also please sign your posts with ~~~~ -- Lagg Backpack Stickybomb Launcher.png 08:22, 14 January 2012 (PST)