gw2-api / issues

Issue tracker for the Guild Wars 2 API
https://discord.gg/zqeHCEg
17 stars 0 forks source link

`/v2/guild`: Add ability to bulk request multiple ids #92

Open darthmaim opened 4 months ago

darthmaim commented 4 months ago

Feature Description

It would be useful to have a way to request multiple guilds at once. Especially with the new /v2/wvw/guilds/:region endpoint, which returns ~24k guilds for eu and ~20k guilds for na.

Implementation

Add an ids query parameter that accepts comma separated guild ids.

https://api.guildwars2.com/v2/guild?ids=0006EDDA-43B7-47FC-BFD5-912A49357459,0009A2AA-8F5F-49BB-B9C0-1C607C2FBA0D

The response would just be an array of the normal (unauthenticated) /v2/guild/:id endpoint.

Anything else?