This API gives you access to card data from GWENT: The Witcher Card Game. More features are slowly getting rolled out so be sure to check back once in a while.
This API gives you access to card data from GWENT: The Witcher Card Game. More features are slowly getting rolled out so be sure to check back once in a while.
You can use GET or POST on api.gwent.one.
On the POST request you can use Content-Type: application/x-www-form-urlencoded
or JSON Content-Type: application/json
https://api.gwent.one/?key=data&version=1.0.0.15
https://api.gwent.one/?key=data&response=csv&version=3.0.0
https://api.gwent.one/?key=data&id=201727&response=html&html=version.artsize.linkart&class=rounded&version=1.1.0
POST / HTTP/1.1
Host: api.gwent.one
Content-Type: application/x-www-form-urlencoded
Content-Length: 25
key=data&version=1.0.0.15
response=json/csv/html
There are 3 ways to get your data: JSON (default), CSV, HTML.
They all behave differently and only json gives you a full data set of everything that is available in the DB.
Returns all the data. if you want voice lines filenames add 'audio=1' to your request
For your spreadsheets
Use these to toggle what is enabled in the html response. Example:
https://api.gwent.one?key=data&id=112106&response=html&html=href.version.keywords
key=data
To access the data you need to provide a key. Use the the key 'data'.
If you access the full card list please cache your results. The full card list for a single language is about 1MB and for all the languages this increases to 14MB++
There are currently not limits and I don't really want to change that. If I notice abusive behaviour that might change.
If you have used the previous API you can use your old key. And if you want a key in case I have to remove 'data' just write me a message.
2021-04-29 new: response csv/html, documentation rewrite
2021-03-29 enabled api.gwent.one