Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Guild Wars 2 API client for Python.

Project description

Guild Wars 2 API client for Python.


pip install gw2

It is recommended to use a virtual environment.


import gw2

client = gw2.Client()


client.get('achievements', ids=[1, 2])  # pass query parameters as keyword arguments

client.auth('YOUR-API-KEY')  # set api key for authenticated endpoints


To handle error responses:

except gw2.HTTPError as e:
    print(e.response.status_code, e.response.json())



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gw2, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size gw2-0.0.2.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page