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

q

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

item_level

array of HeroBoardEntry

yes

honorable_kills

array of HeroBoardEntry

yes

pvp_rank

array of HeroBoardEntry

yes

achievement_points

array of HeroBoardEntry

yes

mounts

array of HeroBoardEntry

yes

pets

array of HeroBoardEntry

yes

toys

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

slug

path

string

yes

The character’s name and surname joined by a hyphen, such as nox-zul.

Response 200 — The character and its sheet.

Model: CharacterPage

Field

Type

Required

Description

slug

string

yes

name

string

yes

surname

string

yes

level

integer

yes

class

WowClass | null

yes

race

string | null

yes

faction

string | null

yes

guild_name

string | null

yes

guild_slug

string | null

yes

in_roster

boolean

yes

guild_rank

integer | null

yes

rank_name

string | null

no

item_level

integer | null

yes

spec

string | null

yes

achievement_points

integer | null

yes

honorable_kills

integer | null

yes

pvp_rank

integer | null

yes

last_login_at

string (date-time) | null

yes

profile_found

boolean

yes

fetched_at

string (date-time) | null

yes

sheet

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

slug

path

string

yes

The character’s name and surname joined by a hyphen, such as nox-zul.

Response 200 — The model viewer’s options for the character.

Model: CharacterModel

Field

Type

Required

Description

model_id

integer

yes

The race and body model: race id times two, less one, plus one if female.

customizations

array of CharacterModelChoice

yes

items

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

file_path

path

string

yes

The file’s path under the viewer’s files.

Response 200 — The file, as Wowhead serves it.

Type: any