Get the Blizzard API configuration for a given region.
The region of the Blizzard API.
Optional
The locale of the Blizzard API.
The Blizzard API configuration for the given region.
const api = getBlizzardApi('us', 'en_US');console.log(api.hostname); // 'https://us.api.blizzard.com'console.log(api.locale); // 'en_US'console.log(api.origin); // 'us' Copy
const api = getBlizzardApi('us', 'en_US');console.log(api.hostname); // 'https://us.api.blizzard.com'console.log(api.locale); // 'en_US'console.log(api.origin); // 'us'
Get the Blizzard API configuration for a given region.