Overview
The Battle.net API provides official game data for Blizzard titles including World of Warcraft, Diablo III, Hearthstone, and StarCraft II. Authentication uses OAuth 2.0 client credentials, which is simpler than user OAuth—you can get a token using just your client ID and secret. It is the go-to source for building WoW character profiles, item databases, and esports stat trackers.
Beginner Tip
Use the client credentials OAuth flow (not user login) to get an access token with just your client ID and secret—no user interaction required for game data endpoints. Register your app at develop.battle.net.
Available Data
Example Response
{
"id": 1,
"name": "Battle.net",
"data": "Diablo III, Hearthstone, StarCraft II and World of Warcraft game data APIs",
"source": "Battle.net"
} Field Reference
access_token OAuth bearer token to use in subsequent API requests token_type Always bearer—how to use the token in the Authorization header expires_in Token validity in seconds, typically 86400 (24 hours) scope Permission scopes granted to this token Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://develop.battle.net/documentation/guides/getting-started";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"Authorization": "Bearer YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Eve Online
The Eve Online ESI (EVE Swagger Interface) API provides access to game data for the space MMO EVE Online, including market data, character info, corporation details, and universe data.
Lichess
Lichess is a free, open-source chess platform, and its API lets you access games, puzzles, player stats, and real-time tournament data.
Mario Kart Tour
Mario Kart Tour provides programmatic access to api for drivers, karts, gliders and courses via REST API.
Path of Exile
The Path of Exile API gives you access to game data for the popular action RPG, including character builds, items, and league standings.
SpaceTradersAPI
SpaceTraders is a programmable MMORPG where you control a fleet of spaceships through a REST API, trading goods and exploring the galaxy.