Kiwi Kans.6390 Posted April 4, 2018 Share Posted April 4, 2018 Hello Everyone,I'm not new to API's in the past I've used Google Sheets with scripting to pull data from GW2SPidy.My very small guild just captured a Guild Hall and I wanted to pull some info about upgrades and their progress.I've gone through the GW2 API Wiki but, I'm having difficulty grasping the formatting and requirements. For example I have no idea where to look to get my Guild ID which some of the API Commands ask for, and if I try to get some basic info via HTTP command it tells me that my key is invalid.If you could please nudge me in the right direction, it would be appreciated. :)Thanks in advance. Link to comment Share on other sites More sharing options...
smiley.1438 Posted April 4, 2018 Share Posted April 4, 2018 to find your guild id: https://api.guildwars2.com/v2/guild/search?name=<GUILD_NAME> - the search term needs to be urlencoded, like veterans+of+lions+arch, which returns 75FD83CF-0C45-4834-BC4C-097F93A487AF - note that this endpoint does not require an API key.now that you have the guild id, you can query all the /v2/guild/:id/ endpoints like so:https://api.guildwars2.com/v2/guild/<GUILD_ID>/upgrades?access_token=<YOUR_API_KEY>Make sure the API key you've created has the guilds scope enabled! Check your keys under https://account.arena.net/applications(also: HTTP & JSON are 2 completely different concepts ;)) Link to comment Share on other sites More sharing options...
Kiwi Kans.6390 Posted April 4, 2018 Author Share Posted April 4, 2018 @smiley.1438 said:(also: HTTP & JSON are 2 completely different concepts ;))Thank you so much for the advice and examples, it is appreciated. :)This information should help me to figure the rest out.I'm sure I will have more questions at a later date :smiley: Link to comment Share on other sites More sharing options...
Archomeda.6472 Posted April 8, 2018 Share Posted April 8, 2018 Having the name encoded with %20 (which is a space) works too. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.