Item Subclass API

Hello! I’ve been a long time player, fan, and stockholder. I have been interested in building iOS Apps for Blizzard games for a while now. I have been putting it off until recently, due to the API migration.

One of the things I wanted to tinker with was a WOW Item Browser app. I got excited when I saw the list of Item APIs because it sounded perfect for this use case.

My POC app starts with a list showing Item classes (using /data/wow/item-class/index). When you tap an item class, I load that item class to display it’s item subclasses (using /data/wow/item-class/{itemClassId}).

The problem I run into is when I load an item subclass (using /data/wow/item-class/{itemClassId}/item-subclass/{itemSubclassId}). The response for this route is extremely minimal. I was expecting that I would be returned a list of items in the item subclass, but instead I get the same exact data that is returned for this subclass that I already had from the Item Class response.

Onto My Questions:

  1. I’m struggling to see the point of this API call in it’s current state. Is it fully implemented?

  2. Is there another way to see the list of items in an item subclass?

Cheers!

Jeff

1 Like

I believe it is fully implemented, the fact you receive the same data is because this endpoint have a very small data set and it is probably separated from the main item class endpoint to follow a pattern (I guess).

Yes, you can use the item search endpoint using the item_subclass.id field:
https://us.api.blizzard.com/data/wow/search/item?namespace=static-us&orderby=id&_page=1&item_subclass.id=10&access_token=<YOUR TOKEN>

2 Likes

This does work, so first off - thank you for replying.

In case it helps anyone else later - item subclass ids are not unique, so you need to also include the item class id too. https://us.api.blizzard.com/data/wow/search/item?namespace=static-us&orderby=id&_page=1&item_subclass.id=10&item_class.id=1&access_token=<YOUR TOKEN>

1 Like