This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.5
PTR
10.2.0
Sourcemore JSON documentation
Post Reply
Return to board index
Post by
encoded
Is there any documentation for the sourcemore JSON object within the json element of the XML version of an item in the DB? I've searched the forums, but been unable to find it. Some of it is self-explanatory, but other fields, such as "t", "ti", and "dd" are more opaque.
I assume "z" is the id of the zone in which the source can be found?
Thanks!
Post by
Zalambar
At a glance it looks like:
"ti" gives the id of the spell or quest the item is created by or a reward for.
"c' identifies a spell sub-category (ie browse by database - spells, class skills, talents, professions, .."
"s" and "c2" can identify the sub category of the item's source (something in the form wowhead.com/?category=c.c2 so category="spells", c="11", c2="164" gives blacksmithing spells )
Sorry I can't offer a complete answer. Also, who put a property named "classs" in there?
Post by
encoded
My guess is that it's a way to work around the fact that class is a reserved word in JavaScript.
"dd" appears to be dungeon difficulty with no value indicating both heroic and normal:
* None -- both normal and heroic
* 1 -- normal
* 2 -- heroic
"source" appears to have the following values:
* 1 -- crafted
* 2 -- drop
* 5 -- badges
Post by
Zalambar
"source" appears to have the following values:
* 1 -- crafted
* 2 -- drop
* 5 -- badges
3 -- pvp/arena reward
4 -- quest reward
Post by
283614
This post was from a user who has deleted their account.
Post by
127920
This post was from a user who has deleted their account.
Post by
Gryphon
Possibly when the the feed is officially supported.
Post by
127920
This post was from a user who has deleted their account.
Post by
Erorus
It should be obvious that the json data isn't there for public consumption, but for the development of a Wowhead tool. It might be used for the item comparison tool that's out already, or it might be for the unreleased Profiler or something else. They won't give documentation on it because they want the flexibility to change it if their development requires it.
Post by
PoetikDragon
It was added because people requested direct access to the json; it is not used for any of our tools. However, it uses the json exactly as we have it stored in the database with no modifications. The source information you see is structured the way it is because of the various lists throughout the site that show where an item is obtained (either in a "Source" column or when there are too many columns, underneath the item's name). As mentioned above, sourcemore is only for items that have a single source, giving us something useful we can display in the list.
And yes, 'classs' is because 'class' is reserved.
Post by
127920
This post was from a user who has deleted their account.
Post by
Malgayne
Not as it stands currently, no. We weren't (and aren't, yet) in a position where we have the time and capability to support a real API like this. The last time someone asked about this, we didn't provide access to the data at all. They asked, and we said "Well, what if we provided you access to the data exactly how we use it, and we just let you guys figure it out on your own?" They told us that this was better than nothing, so we provided access. We haven't made this stuff public just because we don't have the ability to support it right now.
We ARE planning on developing out our XML support in the future—we just have a few things we want to knock out first. :)
Post by
127920
This post was from a user who has deleted their account.
Post by
iamcal
If you're looking to use the jsonEquip.socketbonus property, it appears to be a mapping into a table that's not exposed anywhere, rather than an encoded value. The parts of the map that I've extracted can be found here:
http://hunterloot.com/misc/wowhead_socket_bonuses.txt
You can see that certain bonuses have multiple possible keys, but it doesn't seem to be either quality, slot or gem specific. It might be some combination of all of those, but it's not clear.
This list only contains values I need for
http://hunterloot.com
, so it's not a complete set.
Post by
301757
This post was from a user who has deleted their account.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.