Classes 请求路由

简介

This route fetches a list of the initial classes that can be selected in Elden Ring's character creation, 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 class
namestringName of the class
imagestringImage URL of the class character using the initial equipment provided
descriptionstringShort description of the class
stats{ level: string, vigor: string, mind: string, endurance: string, strength: string, dexterity: string, intelligence: string, faith: string, arcane: string}Initial stats of the class

响应示例

{
success: true,
count: 2,
data: [{
id: "17f69d71826l0i32gkm3ndn3kywxqj",
name: "Hero",
image: "https://eldenring-api.vercel.app/images/classes/17f69d71826l0i32gkm3ndn3kywxqj.png",
description: "A stalwart Hero, at home with a battleaxe, descended from a badlands chieftain",
stats: {
level: "7",
vigor: "14",
mind: "9",
endurance: "12",
strength: "16",
dexterity: "9",
inteligence: "7",
faith: "8",
arcane: "11"
}
},
{
id: "17f69b2dd76l0i32gljr3f62pkzhjo",
name: "Warrior",
image: "https://eldenring-api.vercel.app/images/classes/17f69b2dd76l0i32gljr3f62pkzhjo.png",
description: "A twinblade wielding warrior from a nomadic tribe. An origin of exceptional technique",
stats: {
level: "8",
vigor: "11",
mind: "12",
endurance: "11",
strength: "10",
dexterity: "16",
inteligence: "10",
faith: "8",
arcane: "9"
}
}
]
}

请求路由

请求方法URL描述
GEThttps://eldenring-api.vercel.app/api/classesThis route retrieves a list of all the classes in Elden Ring.
GEThttps://eldenring-api.vercel.app/api/classes/:class_idThis route retrieves one Elden Ring class using its ID.

请求参数

This route supports the following 请求参数:

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