Jump to content
  • Sign Up

Need help/advice for API to get Guild info via JSON or HTTP :)


Kiwi Kans.6390

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...