Characters#
GET /api/characters#
Search characters
Without q, returns the guild roster from its last sync with Battle.net, highest rank first. With q, returns up to 25 stored characters (the roster and anyone looked up before) whose name and surname contain q, roster first. Battle.net has no name search: look anyone else up by their exact name and surname with Get a character.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
query |
string | null |
no |
Text to find in names and surnames. |
Response 200 — The matching characters.
Model: array of CharacterSummary
Type: array of CharacterSummary
GET /api/characters/boards#
Get the hero boards
Returns the guild roster’s top ten characters by equipped item level, honorable kills, PvP rank and achievement points, from their Battle.net profiles. Characters without a profile yet are left out.
Response 200 — The four boards.
Model: HeroBoards
Field |
Type |
Required |
Description |
|---|---|---|---|
|
array of HeroBoardEntry |
yes |
|
|
array of HeroBoardEntry |
yes |
|
|
array of HeroBoardEntry |
yes |
|
|
array of HeroBoardEntry |
yes |
|
|
array of HeroBoardEntry |
yes |
|
|
array of HeroBoardEntry |
yes |
|
|
array of HeroBoardEntry |
yes |
GET /api/characters/milestones#
List recent level milestones
Returns the latest 20 times a guild roster character reached level 40 or 60, newest first, as the roster sync saw them. The bot posts each one to Discord.
Response 200 — The recent milestones.
Model: array of CharacterMilestoneSchema
Type: array of CharacterMilestoneSchema
GET /api/characters/{slug}#
Get a character
Returns one character by its name-surname slug, in any case: its summary and character sheet (gear, stats, talents, professions, reputations, recent achievements and collections). The first lookup stores the character, and it is fetched again from Battle.net when its copy is six hours old. Answers 404 if Battle.net has no such character; Battle.net publishes a character some time after it logs out. Answers 503 if Battle.net is not configured, or did not answer and the character was never stored.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The character’s name and surname joined by a hyphen, such as |
Response 200 — The character and its sheet.
Model: CharacterPage
Field |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
|
|
string |
yes |
|
|
string |
yes |
|
|
integer |
yes |
|
|
WowClass | null |
yes |
|
|
string | null |
yes |
|
|
string | null |
yes |
|
|
string | null |
yes |
|
|
string | null |
yes |
|
|
boolean |
yes |
|
|
integer | null |
yes |
|
|
string | null |
no |
|
|
integer | null |
yes |
|
|
string | null |
yes |
|
|
integer | null |
yes |
|
|
integer | null |
yes |
|
|
integer | null |
yes |
|
|
string (date-time) | null |
yes |
|
|
boolean |
yes |
|
|
string (date-time) | null |
yes |
|
|
CharacterSheet | null |
yes |
GET /api/characters/{slug}/model#
Get a character’s 3D model
Returns what Wowhead’s model viewer needs to draw the character as Battle.net last published it: its race and body model, barber choices, and worn items by display id. The character page’s View in 3D button draws it, with the model files from Get a 3D model file. Items Wowhead has no look for are left out. Answers 404 if Battle.net has no such character, or none of a race the viewer covers, and 503 if Battle.net is not configured or did not answer.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The character’s name and surname joined by a hyphen, such as |
Response 200 — The model viewer’s options for the character.
Model: CharacterModel
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
yes |
The race and body model: race id times two, less one, plus one if female. |
|
array of CharacterModelChoice |
yes |
|
|
array of CharacterModelItem |
yes |
Worn items the viewer can draw. Necks, rings and trinkets are left out, and so is a ranged weapon while a hand holds something. |
GET /api/modelviewer/{file_path}#
Get a 3D model file
Relays one of Wowhead’s WoW: Forever model viewer files (models, textures and their descriptions, such as meta/armor/5/8071.json or m2/959310.m2). Wowhead serves them only to its own pages, so the character page’s viewer reads them from here. Answers 404 for a path that isn’t a viewer file or that Wowhead doesn’t have, and 502 if Wowhead did not answer.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
|
path |
string |
yes |
The file’s path under the viewer’s files. |
Response 200 — The file, as Wowhead serves it.
Type: any