Armors 请求路由

简介

This route fetches a list of all armor pieces that can be encountered in Elden Ring, and outputs that in JSON format. The user can define his own pagination and also use search queries to find the desired output.

响应

参数名称类型描述
idstringId of the armor piece
namestringName of the armor piece
imagestringImage URL of the armor piece
descriptionstringShort description of the armor piece
categorystringCategory of the armor piece. Example: Leg Piece, Helmet, etc.
weightnumberHow much this armor piece weights in your invetory
dmgNegation{name: string, amount: number}How much damage this armor piece negates. Example: { "name": "Strike", amount: 6 }
resistance{name: string, amount: number}How much resistance wearing this armor piece provides. Example: { "name": "Poise", amount: 10 }

响应示例

{
success: true,
count: 2,
data: [{
id: "17f696e0685l0i0nblzy58h0qvewk",
name: "All-knowing Greaves",
image: "https://eldenring-api.vercel.app/images/armors/17f696e0685l0i0nblzy58h0qvewk.png",
description: "Greaves set with countless eyes and ears. Worn by Gideon Ofnir, the All-Knowing. Knowledge begins with the recognition of one's ignorance. The realization that the search for knowledge is unending. But when Gideon glimpsed into the will of Queen Marika, he shuddered in fear. At the end that should not be.",
category: "Leg Armor",
dmgNegation: [{
name: "Phy",
amount: 7
},
{
name: "Strike",
amount: 6
},
{
name: "Slash",
amount: 7
},
{
name: "Pierce",
amount: 6
},
{
name: "Magic",
amount: 7
},
{
name: "Fire",
amount: 5
},
{
name: "Ligt",
amount: 5
},
{
name: "Holy",
amount: 5
}
],
resistance: [{
name: "Immunity",
amount: 17
},
{
name: "Robustness",
amount: 29
},
{
name: "Focus",
amount: 13
},
{
name: "Vitality",
amount: 13
},
{
name: "Poise",
amount: 10
}
],
weight : 6.6
},
{
id: "17f69515b49l0i0nbno079cqzlskebf",
name: "All-knowing Armor",
image: "https://eldenring-api.vercel.app/images/armors/17f69515b49l0i0nbno079cqzlskebf.png",
description: "Armor set with countless eyes and ears. Worn by Gideon Ofnir, the All-Knowing. Knowledge begins with the recognition of one's ignorance. The realization that the search for knowledge is unending. But when Gideon glimpsed into the will of Queen Marika, he shuddered in fear. At the end that should not be.",
category: "Chest Armor",
dmgNegation: [{
name: "Phy",
amount: 12
},
{
name: "Strike",
amount: 11
},
{
name: "Slash",
amount: 13
},
{
name: "Pierce",
amount: 11
},
{
name: "Magic",
amount: 12
},
{
name: "Fire",
amount: 9
},
{
name: "Ligt",
amount: 10
},
{
name: "Holy",
amount: 8
}
],
resistance: [{
name: "Immunity",
amount: 28
},
{
name: "Robustness",
amount: 46
},
{
name: "Focus",
amount: 21
},
{
name: "Vitality",
amount: 21
},
{
name: "Poise",
amount: 16
}
],
weight : 10.6
}
]
}

请求路由

请求方法URL描述
GEThttps://eldenring-api.vercel.app/api/armorsThis route retrieves a list of all the armor pieces of Elden Ring.
GEThttps://eldenring-api.vercel.app/api/armors/:ammo_idThis route retrieves one Elden Ring armor piece using its ID.

请求参数

This route supports the following 请求参数:

参数名称默认值示例URL描述
limit20https://eldenring-api.vercel.app/api/armors?limit=100This parameter is used to set the maximum amount of items in the response
page0https://eldenring-api.vercel.app/api/armors?limit=20&page=3This parameter is used no navigate between pages of results
namenonehttps://eldenring-api.vercel.app/api/armors?name=All-knowing%20ArmorThis parameter is used to search for fields by their names