Sorceries 请求路由

简介

This route fetches a list of all sorceries 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 sorcery
namestringName of the sorcery
imagestringImage URL of the sorcery icon
descriptionstringShort description of the sorcery
typestringType of Incantation
costnumberCost in FP to cast this sorcery once
slotsnumberHow many skill slots equipping this sorcery consumes
effectsstringWhat this sorcery does
requires{ name: string, amount: number }What attributes and what amount is required to cast this sorcery

响应示例

{
success: true,
count: 2,
data: [{
id: "17f69548207l0hykrjxtjpw45plt0o",
name: "Ambush Shard",
image: "https://eldenring-api.vercel.app/images/sorceries/17f69548207l0hykrjxtjpw45plt0o.png",
description: "One of the night sorceries of Sellia, Town of Sorcery. Launches a projectile from a distance removed from the caster, so as to strike the enemy from behind. This sorcery can be cast repeatedly. The Sellian sorcerers were assassins, and it is said that they often hunted their fellows.",
type: "Sorceries",
cost: 16,
slots: 1,
effects: "Strikes from behind with projectile fired from distance",
requires: [{
name: "Intelligence",
amount: 23
},
{
name: "Faith",
amount: 0
},
{
name: "Arcane",
amount: 0
}
]
},
{
id: "17f69526092l0hykrkfqubdcrri5ri",
name: "Carian Phalanx",
image: "https://eldenring-api.vercel.app/images/sorceries/17f69526092l0hykrkfqubdcrri5ri.png",
description: "One of the sorceries of the Carian royal family.",
type: "Sorceries",
cost: 26,
slots: 1,
effects: "Forms a defensive arch of numerous magic glintblades",
requires: [{
name: "Intelligence",
amount: 34
},
{
name: "Faith",
amount: 0
},
{
name: "Arcane",
amount: 0
}
]
}
]
}

请求路由

请求方法URL描述
GEThttps://eldenring-api.vercel.app/api/sorceriesThis route retrieves a list of all the sorceries of Elden Ring.
GEThttps://eldenring-api.vercel.app/api/sorceries/:sorcery_idThis route retrieves one Elden Ring sorcery using its ID.

请求参数

This route supports the following 请求参数:

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