Skip to content

Decorations

Tyler Lartonoix edited this page Mar 13, 2018 · 2 revisions

Endpoints

Endpoint Description
/decorations Returns a collection of all decorations.
/decorations/{idOrSlug} Returns a decoration matching the specified ID or slug.

Fields

Field Type Description
id Integer The decoration's ID
slug String A human readable unique identifier
name String The name of the decoration
rarity Integer The decoration's rarity level
slot Integer The decoration slot that the decoration fits into
skill Integer The ID of the skill that the decoration provides

Examples

Retrieve all decorations

curl -G https://mhw-db.com/decorations

Output:

[
  {
    "name": "Antidote Jewel 1",
    "rarity": 5,
    "slot": 1,
    "skill": 1,
    "id": 1,
    "slug": "antidote-jewel-1"
  },
  ...
]

Retrieve decoration by ID or slug

curl -G https://mhw-db.com/decorations/1
curl -G https://mhw-db.com/decorations/antidote-jewel-1

Output:

{
  "name": "Antidote Jewel 1",
  "rarity": 5,
  "slot": 1,
  "skill": 1,
  "id": 1,
  "slug": "antidote-jewel-1"
}

Retrieve decorations that fit slot 3

curl -G https://mhw-db.com/decorations --data-urlencode 'q={"slot": 3}'

Output:

[
  {
    "name": "Brace Jewel 3",
    "rarity": 6,
    "slot": 3,
    "skill": 91,
    "id": 46,
    "slug": "brace-jewel-3"
  },
  ...
]

Retrieve decorations that augment attack

curl -G https://mhw-db.com/decorations --data-urlencode 'q={"skill.ranks.modifiers.attack": {"$exists": true}}'

Output:

[
  {
    "name": "Attack Jewel 1",
    "rarity": 7,
    "slot": 1,
    "skill": 15,
    "id": 82,
    "slug": "attack-jewel-1"
  },
  ...
]