Missing "Inventory_Type" ID on WoW ItemAPI

Hi, I was wondering why the Inventory_Type of WoW retail items do not have any ID.
Take this item (186282) as example:

https://us.api.blizzard.com/data/wow/item/186282?namespace=static-us&locale=en_US&access_token={accessToken}
Item JSON
{
  "_links": {
    "self": {
      "href": "https://us.api.blizzard.com/data/wow/item/186282?namespace=static-9.1.5_40764-us"
    }
  },
  "id": 186282,
  "name": "Sacrificer's Sacramental Cassock",
  "quality": {
    "type": "EPIC",
    "name": "Epic"
  },
  "level": 226,
  "required_level": 60,
  "media": {
    "key": {
      "href": "https://us.api.blizzard.com/data/wow/media/item/186282?namespace=static-9.1.5_40764-us"
    },
    "id": 186282
  },
  "item_class": {
    "key": {
      "href": "https://us.api.blizzard.com/data/wow/item-class/4?namespace=static-9.1.5_40764-us"
    },
    "name": "Armor",
    "id": 4
  },
  "item_subclass": {
    "key": {
      "href": "https://us.api.blizzard.com/data/wow/item-class/4/item-subclass/1?namespace=static-9.1.5_40764-us"
    },
    "name": "Cloth",
    "id": 1
  },
  "inventory_type": {
    "type": "ROBE",
    "name": "Chest"
  },
  "purchase_price": 4157482,
  "sell_price": 831496,
  "max_count": 0,
  "is_equippable": true,
  "is_stackable": false,
  "preview_item": {
    "item": {
      "key": {
        "href": "https://us.api.blizzard.com/data/wow/item/186282?namespace=static-9.1.5_40764-us"
      },
      "id": 186282
    },
    "sockets": [
      {
        "socket_type": {
          "type": "DOMINATION",
          "name": "Domination Socket"
        }
      }
    ],
    "quality": {
      "type": "EPIC",
      "name": "Epic"
    },
    "name": "Sacrificer's Sacramental Cassock",
    "media": {
      "key": {
        "href": "https://us.api.blizzard.com/data/wow/media/item/186282?namespace=static-9.1.5_40764-us"
      },
      "id": 186282
    },
    "item_class": {
      "key": {
        "href": "https://us.api.blizzard.com/data/wow/item-class/4?namespace=static-9.1.5_40764-us"
      },
      "name": "Armor",
      "id": 4
    },
    "item_subclass": {
      "key": {
        "href": "https://us.api.blizzard.com/data/wow/item-class/4/item-subclass/1?namespace=static-9.1.5_40764-us"
      },
      "name": "Cloth",
      "id": 1
    },
    "inventory_type": {
      "type": "ROBE",
      "name": "Chest"
    },
    "binding": {
      "type": "ON_ACQUIRE",
      "name": "Binds when picked up"
    },
    "armor": {
      "value": 58,
      "display": {
        "display_string": "58 Armor",
        "color": {
          "r": 255,
          "g": 255,
          "b": 255,
          "a": 1
        }
      }
    },
    "stats": [
      {
        "type": {
          "type": "INTELLECT",
          "name": "Intellect"
        },
        "value": 81,
        "display": {
          "display_string": "+81 Intellect",
          "color": {
            "r": 255,
            "g": 255,
            "b": 255,
            "a": 1
          }
        }
      },
      {
        "type": {
          "type": "STAMINA",
          "name": "Stamina"
        },
        "value": 149,
        "display": {
          "display_string": "+149 Stamina",
          "color": {
            "r": 255,
            "g": 255,
            "b": 255,
            "a": 1
          }
        }
      },
      {
        "type": {
          "type": "HASTE_RATING",
          "name": "Haste"
        },
        "value": 99,
        "is_equip_bonus": true,
        "display": {
          "display_string": "+99 Haste",
          "color": {
            "r": 0,
            "g": 255,
            "b": 0,
            "a": 1
          }
        }
      },
      {
        "type": {
          "type": "MASTERY_RATING",
          "name": "Mastery"
        },
        "value": 43,
        "is_equip_bonus": true,
        "display": {
          "display_string": "+43 Mastery",
          "color": {
            "r": 0,
            "g": 255,
            "b": 0,
            "a": 1
          }
        }
      }
    ],
    "spells": [
      {
        "spell": {
          "key": {
            "href": "https://us.api.blizzard.com/data/wow/spell/357347?namespace=static-9.1.5_40764-us"
          },
          "name": "Blood Link",
          "id": 357347
        },
        "description": "Bonus: Socket 3 Blood Shards to gain Blood Link while in the Maw.\r\n\r\nBlood Link drains health from your enemies and redistributes it to you and your allies.",
        "display_color": {
          "r": 128,
          "g": 128,
          "b": 128,
          "a": 1
        }
      }
    ],
    "sell_price": {
      "value": 831496,
      "display_strings": {
        "header": "Sell Price:",
        "gold": "83",
        "silver": "14",
        "copper": "96"
      }
    },
    "requirements": {
      "level": {
        "value": 60,
        "display_string": "Requires Level 60"
      }
    },
    "level": {
      "value": 226,
      "display_string": "Item Level 226"
    },
    "durability": {
      "value": 165,
      "display_string": "Durability 165 / 165"
    }
  },
  "purchase_quantity": 1
}

If you look closely you can find that the only parameter that specifies the type of the armor (Chest, Head, etc) is the that one:

"inventory_type": {
    "type": "ROBE",
    "name": "Chest"
  },

But it’s not followed by any ID, just a “name” string? Looks weird for me taking into account the whole document, which includes ID’s for every type.
Also the name will be null if the locale parameter of the URL is diferent to en_US.

I’m missing something? Is this designed on porpouse? Why?
I’ve found in Wowpedia the corresponding ID’s but only for Enhancement(?):

https://wowpedia.fandom.com/wiki/ItemType#8:_Item_Enhancement

Exists a posiblity to add those ID’s to the inventory_type parameter as ID? Thanks!

First and most important: NEVER include your credentials or access_tokens on public posts. Please edit your post as this is a violation of the API ToS.

That is because some fields like inventory_type, faction and a few others are treated like an enumeration rather than a actual entity by the API.

The type field is a constant value always in English and uppercase and won’t change despite the locale you pass. You can use this field as an unique identifier if you want to make a relational database like I do in https://wow-query.dev

Inventory type is not the same as item type/subtype, inventory type denotes in which slot you can equip the item.

Based on the amount of feedback we are receiving lately from Blizzard plus the many years old bug reports still not addressed I wouldn’t count on that. :frowning_face:

Damn, completely forgot about that, thanks and edited ^^

That’s what I’m currently using in fact ^^

How is possible I didn’t know about this site O.O! <3

Sad but understandble.

Many thanks @Schiller! ^^

It is just a side project and it is pretty outdated. I’m working on v2.0, meanwhile if you need an updated version of any of the API data you can find me on the API discord