Skip to content

World of Warcraft (Classic)

Ben Weier edited this page Jun 6, 2023 · 4 revisions

In addition to all parameters documented here, all API methods can accept key, secret, token, origin, locale, for cases where you need to use different values to the default instance.

All methods accept a second headers argument allowing an object of { [key: string]: string } to be added to the request headers. For example, some requests can potentially return large response bodies and you might want to avoid this if the resource has not been updated between the previously observed state with a If-Modified-Since header. If a method does not accept an argument, or it's first argument is optional, pass null | undefined followed by a headers object, e.g. token(null, { 'X-Header-Key': 'X-Header-Value' })

Method parameters are encoded with encodeURIComponent for URL safety.

Methods with optional parameters will fallback to API endpoints that best match the provided parameters.


auctionHouse

wow.auctionHouse({ realm: number; auctionHouse?: number })

connectedRealm

wow.connectedRealm({ id?: number })

connectedRealmSearch

wow.connectedRealmSearch({ status: 'UP' | 'DOWN'; timezone?: string; orderby?: string | string[]; page?: number })

creature

wow.creature({ id: number; media?: boolean })

creatureFamily

wow.creatureFamily({ id?: number; media?: boolean })

creatureType

wow.creatureType({ id?: number })

guildCrest

wow.guildCrest({ resource: 'border' | 'emblem'; id: number })

item

wow.item({ resource?: 'class' | 'set'; id?: number; sub?: number; media?: boolean })

itemSearch

wow.itemSearch({ name: string; locale: Locales, orderby?: string | string[]; page?: number })

mediaSearch

wow.mediaSearch({ tag: string; orderby?: string | string[]; page?: number })

playableClass

wow.playableClass({ id?: number; media?: boolean; pvpTalents?: boolean })

playableRace

wow.playableRace({ id?: number })

powerType

wow.powerType({ id?: number })

realm

wow.realm({ slug?: string })

realmSearch

wow.realmSearch({ timezone?: string; orderby?: string | string[]; page?: number })

region

wow.region({ id?: number })

token

wow.token()