Spirits 请求路由

简介

This route fetches a list of all spirits that can be obtained and summoned 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 spirit
namestringName of the spirit
imagestringImage URL of the spirit icon
descriptionstringShort description of the spirit
fpCostnumberCost in FP to summon this spirit once
hpCostnumberCost in HP to summon this spirit once
effectsstringWhat happens when we summon this spirit

响应示例

{
success: true,
count: 2,
data: [{
id: "17f69ac4bd0l0i2rc618tsrggfp3kh",
name: "Banished Knight Oleg",
image: "https://eldenring-api.vercel.app/images/spirits/17f69ac4bd0l0i2rc618tsrggfp3kh.png",
description: "Ashen remains in which spirits yet dwell. Use to summon the spirit of Oleg, the Banished Knight.",
fpCost: "100",
hpCost: "0",
effect: "Summons Banished Knight Oleg spirit"
},
{
id: "17f69beb243l0i2rcptdnjy0wl2nxj",
name: "Demi-human Ashes",
image: "https://eldenring-api.vercel.app/images/spirits/17f69beb243l0i2rcptdnjy0wl2nxj.png",
description: "Ashen remains in which spirits yet dwell. Use to summon the spirits of five demi-humans.",
fpCost: "69",
hpCost: "0",
effect: "Summons five demi-human spirits"
}
]
}

请求路由

请求方法URL描述
GEThttps://eldenring-api.vercel.app/api/spiritsThis route retrieves a list of all the spirits of Elden Ring.
GEThttps://eldenring-api.vercel.app/api/spirits/:spirit_idThis route retrieves one Elden Ring spirit using its ID.

请求参数

This route supports the following 请求参数:

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