You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a REST Api for fetch heroes, classes, and races data from
autochess vng.
Start Local Server
npm run dev
Endpoints
GET /heroes
This endpoint will return a response that contain heroes object.
// response body[{id: 1,// hero's idtitle: "God of War",// hero's titlename: "Ares",// hero's namequality: "Common",// hero's qualitycost: 1,// hero's costraces: [// hero's races{synergies: ["...","...","..."],name: "Divinity",icon: "https://..."},// ... rest of hero's race],class: {// hero's class detailsynergies: ["...","...","..."],name: "Warrior",icon: "https://..."},stats: {hp: [650,1300,2600],// hero's hp for star 1, 2, 3armor: [5,5,5],// hero's armor for star 1, 2, 3magicResistence: [0,0,0],// hero's magic resistance for star 1, 2, 3atk: [0,0,0],// hero's attack for star 1, 2, 3atkRate: [0.0,0.0,0.0],// hero's attack rate for star 1, 2, 3atkRange: [1,1,1]// hero's attack range for star 1, 2, 3},ability: {name: "Godshield",// hero's ability namepicture: "https://....",// hero's ability picturedescriptions: ["Reduces physical damage ...",// hero's ability description for star 1"Reduces physical damage ...",// hero's ability description for star 2"Reduces physical damage ..."// hero's ability description for star 3]},picture: ["https://...",// hero's picture for star 1"https://...",// hero's picture for star 2"https://..."// hero's picture for star 3]},// ... rest of hero]
GET /classes
This endpoint will return a response that contain classes object.
// response body[{id: 1,// class's idname: "Warrior",// class's namesynergies: [// description of class synergie"(3) All allied warrior ...","(6) All allied warrior ...","(9) All allied warrior ..."],icon: "https://..."// class's icon},// ... rest of class]
GET /races
This endpoint will return a response that contain classes object.
// response body[{id: 1,// race's idname: "Human",// race's namesynergies: [// description of race synergie"(2) All allied humans ...","(4) All allied humans ...","(6) All allied humans ..."],icon: "https://..."// race's icon},// ... rest of race]
Rate limit
To avoid so many request, every ip will be limited to sent 120 requests within 1 day.
So if you already reach your rate limit, please change your ip or wait for 1 day.
You can track how much points left for your ip and when it reset by accessing RateLimit-Remaining and RateLimit-Reset respectively on response header.
If you already reach your limit, you can check when it reset by accessing RateLimit-Reset on response header.
The RateLimit-Reset time is set to UTC+0.
# example of response headers
HTTP/2 200
vary: Origin
ratelimit-remaining: 119 # points left
ratelimit-reset: Thu, 02 Jan 1970 01:05:00 GMT # reset time
content-type: application/json; charset=utf-8
content-length: 129764
date: Wed, 01 Jan 1970 01:05:00 GMT