Incantations 请求路由

简介

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

响应示例

{
success: true,
count: 2,
data: [{
id: "17f696c7ce7l0hynrwmh6d0r0rwk2",
name: "Ancient Dragons' Lightning Strike",
image: "https://eldenring-api.vercel.app/images/incantations/17f696c7ce7l0hynrwmh6d0r0rwk2.png",
description: "A secret incantation of the capital's ancient dragon cult.",
type: "Incantations",
cost: 27,
slots: 1,
effects: "Summons red lightning that spreads from impact",
requires: [{
name: "Intelligence",
amount: 0
},
{
name: "Faith",
amount: 26
},
{
name: "Arcane",
amount: 0
}
]
},
{
id: "17f695ad891l0hynrxcposdnx7gy9h",
name: "Aspects Of The Crucible: Horns",
image: "https://eldenring-api.vercel.app/images/incantations/17f695ad891l0hynrxcposdnx7gy9h.png",
description: "One of the ancient Erdtree incantations.",
type: "Incantations",
cost: 30,
slots: 1,
effects: "creates shoulder horn to gore foes from a low stance.",
requires: [{
name: "Intelligence",
amount: 0
},
{
name: "Faith",
amount: 27
},
{
name: "Arcane",
amount: 0
}
]
}
]
}

请求路由

请求方法URL描述
GEThttps://eldenring-api.vercel.app/api/incantationsThis route retrieves a list of all the incantations of Elden Ring.
GEThttps://eldenring-api.vercel.app/api/incantations/:incantation_idThis route retrieves one Elden Ring incantation using its ID.

请求参数

This route supports the following 请求参数:

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