Locations 请求路由

简介

This route fetches a list of all locations that can be visited 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 location
namestringName of the location
imagestringImage URL of the location screenshot
descriptionstringShort description of the location

响应示例

{
success: true,
count: 2,
data: [{
id: "17f69c5a795l0i2m72bjeqbh713r3o",
name: "Bridge Of Sacrifice",
image: "https://eldenring-api.vercel.app/images/locations/17f69c5a795l0i2m72bjeqbh713r3o.png",
description: "A busy bridge swarming with iron-clad foes. Be prepared to engage in an array of melee, ranged and artillery attacks or attempt to push past them"
},
{
id: "17f69869a3bl0i2m72p0sbjub568ch",
name: "Church Of Elleh",
image: "https://eldenring-api.vercel.app/images/locations/17f69869a3bl0i2m72p0sbjub568ch.png",
description: "Church of Elleh is a ruined building that hides a Site of Grace. The rooftop has caved in and offers no protection from the elements, and weeds are overtaking the walls, but this doesn't stop merchants from seeking what little shelter is on offer"
}
]
}

请求路由

请求方法URL描述
GEThttps://eldenring-api.vercel.app/api/locationsThis route retrieves a list of all the creatures of Elden Ring.
GEThttps://eldenring-api.vercel.app/api/locations/:location_idThis route retrieves one Elden Ring creature using its ID.

请求参数

This route supports the following 请求参数:

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