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.
响应
参数名称 | 类型 | 描述 |
---|---|---|
id | string | Id of the incantation |
name | string | Name of the incantation |
image | string | Image URL of the incantation icon |
description | string | Short description of the incantation |
type | string | Type of Incantation |
cost | number | Cost in FP to cast this incantation once |
slots | number | How many skill slots equipping this incantation consumes |
effects | string | What 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 | 描述 |
---|---|---|
GET | https://eldenring-api.vercel.app/api/incantations | This route retrieves a list of all the incantations of Elden Ring. |
GET | https://eldenring-api.vercel.app/api/incantations/:incantation_id | This route retrieves one Elden Ring incantation using its ID. |
请求参数
This route supports the following 请求参数:
参数名称 | 默认值 | 示例URL | 描述 |
---|---|---|---|
limit | 20 | https://eldenring-api.vercel.app/api/incantations?limit=100 | This parameter is used to set the maximum amount of items in the response |
page | 0 | https://eldenring-api.vercel.app/api/incantations?limit=20&page=3 | This parameter is used no navigate between pages of results |
name | none | https://eldenring-api.vercel.app/api/incantations?name=Ancient%20Dragons'%20Lightning%20Strike | This parameter is used to search for fields by their names |