-
Notifications
You must be signed in to change notification settings - Fork 6
Skills
Tyler Lartonoix edited this page Mar 30, 2018
·
6 revisions
Endpoint | Description |
---|---|
/skills | Returns a collection of all skills. |
/skills/{idOrSlug} | Returns a skill matching the specified ID or slug. |
Field | Type | Description |
---|---|---|
id | Integer | The skill's ID |
slug | String | A human readable unique identifier |
name | String | The skill's name |
description | String | A short description of the skill |
ranks | Collection<SkillRank> | A collection of available ranks for the skill, in ascending level order |
curl -G https://mhw-db.com/skills
Output:
[
{
"name": "Poison Resistance",
"ranks": [
{
"skill": 1,
"level": 1,
"description": "Reduces the duration of poison by 30%.",
"modifiers": [
],
"id": 1,
"slug": "poison-resistance-rank-1"
},
{
"skill": 1,
"level": 2,
"description": "Reduces the duration of poison by 60%.",
"modifiers": [
],
"id": 2,
"slug": "poison-resistance-rank-2"
},
{
"skill": 1,
"level": 3,
"description": "Prevents poison.",
"modifiers": [
],
"id": 3,
"slug": "poison-resistance-rank-3"
}
],
"description": "Grants protection against the effects of poison.",
"id": 1,
"slug": "poison-resistance"
},
...
]
curl -G https://mhw-db.com/skills/1
curl -G https://mhw-db.com/skills/poison-resistance
Output:
{
"name": "Poison Resistance",
"ranks": [
{
"skill": 1,
"level": 1,
"description": "Reduces the duration of poison by 30%.",
"modifiers": [
],
"id": 1,
"slug": "poison-resistance-rank-1"
},
{
"skill": 1,
"level": 2,
"description": "Reduces the duration of poison by 60%.",
"modifiers": [
],
"id": 2,
"slug": "poison-resistance-rank-2"
},
{
"skill": 1,
"level": 3,
"description": "Prevents poison.",
"modifiers": [
],
"id": 3,
"slug": "poison-resistance-rank-3"
}
],
"description": "Grants protection against the effects of poison.",
"id": 1,
"slug": "poison-resistance"
}
curl -G https://mhw-db.com/skills --data-urlencode 'q={"ranks.modifiers.attack": {"$exists": true}}'
Output:
[
{
"name": "Attack Boost",
"ranks": [
{
"skill": 15,
"level": 1,
"description": "Attack +3",
"modifiers": {
"attack": "3"
},
"id": 39,
"slug": "attack-boost-rank-1"
},
{
"skill": 15,
"level": 2,
"description": "Attack +6",
"modifiers": {
"attack": "6"
},
"id": 40,
"slug": "attack-boost-rank-2"
},
{
"skill": 15,
"level": 3,
"description": "Attack +9",
"modifiers": {
"attack": "9"
},
"id": 41,
"slug": "attack-boost-rank-3"
},
{
"skill": 15,
"level": 4,
"description": "Attack +12 Affinity +5%",
"modifiers": {
"attack": "12",
"affinity": "5%"
},
"id": 42,
"slug": "attack-boost-rank-4"
},
{
"skill": 15,
"level": 5,
"description": "Attack +15 Affinity +5%",
"modifiers": {
"attack": "15",
"affinity": "5%"
},
"id": 43,
"slug": "attack-boost-rank-5"
},
{
"skill": 15,
"level": 6,
"description": "Attack +18 Affinity +5%",
"modifiers": {
"attack": "18",
"affinity": "5%"
},
"id": 44,
"slug": "attack-boost-rank-6"
},
{
"skill": 15,
"level": 7,
"description": "Attack +21 Affinity +5%",
"modifiers": {
"attack": "21",
"affinity": "5%"
},
"id": 45,
"slug": "attack-boost-rank-7"
}
],
"description": "Increases attack power. Also improves affinity at higher levels.",
"id": 15,
"slug": "attack-boost"
},
...
]
These documents are currently a work in progress. If you notice any mistakes, typos, or if you find any issues in the API itself, please open an issue, or contact me at [email protected].