User:Kihra

From Guild Wars 2 Wiki
Jump to navigationJump to search

API access commands with curl[edit]

PVP[edit]

access pvp stats[edit]

curl -H "Authorization: Bearer $API_KEY" https://api.guildwars2.com/v2/pvp/stats
  • replace $API_KEY with your api key from guild wars 2

ex

curl -H "Authorization: Bearer c94250ce-3a07-4b25-a5d9-036005c001d8a438ef88-8cd2-4db2-9297-a4b260205f1b" https://api.guildwars2.com/v2/pvp/stats


access pvp game info[edit]

curl -H "Authorization: Bearer $API_KEY" https://api.guildwars2.com/v2/pvp/games?ids=$game_uuid

ex

curl -H "Authorization: Bearer c94250ce-3a07-4b25-a5d9-036005c001d8a438ef88-8cd2-4db2-9297-a4b260205f1b" https://api.guildwars2.com/v2/pvp/games?ids=38ef88-8cd2-4db2-9297-a4b260205f1b
  • note the above example will not yield results as it is an invalid key generated by `uuidgen`