Weapons 请求路由

简介

This route fetches a list of all Weapons that can be obtained 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 Weapon
namestringName of the Weapon
imagestringImage URL of the Weapon
descriptionstringShort description of the Weapon
categorystringWhat category of Weapons. Example: Axe, Sword, etc.
weightnumberHow much the Weapon weights when equipped
attack{ name: string, amount: number }How much damage the Weapon does when used as a weapon
defence{ name: string, amount: number }How much damage the Weapon blocks when used to defend an attack
requiredAttributes{ name: string, amount: number }What are the required attribute amount in order to properly use this Weapon. Example: { name: "Str", amount: 20 }
scalesWith{ name: string, scaling: string }How much the Weapon scales and with what attributes. Example: { name: "Str", scaling: "B" }

响应示例

{
success: true,
count: 1,
data: [{
id: "17f695c42f0l0i1ohb4cao0qxackpu",
name: "Forked Hatchet",
image: "https://eldenring-api.vercel.app/images/weapons/17f695c42f0l0i1ohb4cao0qxackpu.png",
description: "Peculiar hatchet wielded by imps. The gently undulating forked blade is known as an imps tongue and causes blood loss",
attack: [{
name: "Phy",
amount: 101
},
{
name: "Mag",
amount: 0
},
{
name: "Fire",
amount: 0
},
{
name: "Ligt",
amount: 0
},
{
name: "Holy",
amount: 0
},
{
name: "Crit",
amount: 100
}
],
defence: [{
name: "Phy",
amount: 40
},
{
name: "Mag",
amount: 27
},
{
name: "Fire",
amount: 27
},
{
name: "Ligt",
amount: 27
},
{
name: "Holy",
amount: 27
},
{
name: "Boost",
amount: 27
}
],
scalesWith: [{
name: "Str",
scaling: "D"
},
{
name: "Dex",
scaling: "D"
}
],
requiredAttributes: [{
name: "Str",
amount: 9
},
{
name: "Dex",
amount: 14
}
],
category: "Axe",
weight : 2.5
}]
}

请求路由

请求方法URL描述
GEThttps://eldenring-api.vercel.app/api/weaponsThis route retrieves a list of all the weapons of Elden Ring.
GEThttps://eldenring-api.vercel.app/api/weapons/:weapon_idThis route retrieves one Elden Ring weapon using its ID.

请求参数

This route supports the following 请求参数:

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