Python-wowapi is a client library for interacting with the World of Warcraft Community and Game Data API.
To interact with this library, you need to first get a client-id and client secret by registering here
For more information about official World of Warcraft API's visit: Official API documentation Official API Forum
API documentation can be found at python-wowapi.readthedocs.org. Examples and installation instructions are documented here.
pip install python-wowapiimport os
from wowapi import WowApi
api = WowApi(os.environ['WOW_CLIENT_ID'], os.environ['WOW_CLIENT_SECRET'])api.get_auctions('eu', 'silvermoon', locale='de_DE')api.get_token('eu', namespace='dynamic-eu', locale='de_DE')data = api.get_playable_specializations('us', namespace='static-us')
spec_id = data['character_specializations'][0]['id']
specialization = api.get_playable_specialization('us', namespace='static-us', spec_id=spec_id)This example shows how to fetch a game data resource by url.
The get_data_resource method will take care of adding your access_token to the url.
api.get_data_resource('https://eu.api.blizzard.com/data/wow/connected-realm/509?namespace=dynamic-eu', region='eu')pip install -e .
pip install -e .[tests]
pytest