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.
The response would just be an array of the normal (unauthenticated) /v2/guild/:id endpoint.
Anything else?
Other endpoints usually allow requesting 200 ids at once, but since guilds use GUIDs as id, this would have to be limited at ~50 or so, since the max length for URLs in practice is often about 2048 characters (50 ids come out at a length of 1849, which leaves enough room for the endpoint it self). This would already cut the amount of requests to load all guilds from ~44k to ~880.
Maybe the endpoint could accept the ids as a POST body to allow for more than 50 ids?
/v2/guild is singular, while all other endpoints (/v2/items, /v2/skills, ...) are plural.
Maybe add this as a new /v2/guilds endpoint that supports bulk requests but no authorization, and leave /v2/guild/:id for authenticated single guild request and sub endpoints.
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 foreu
and ~20k guilds forna
.Implementation
Add an
ids
query parameter that accepts comma separated guild ids.The response would just be an array of the normal (unauthenticated)
/v2/guild/:id
endpoint.Anything else?
/v2/guild
is singular, while all other endpoints (/v2/items
,/v2/skills
, ...) are plural.Maybe add this as a new
/v2/guilds
endpoint that supports bulk requests but no authorization, and leave/v2/guild/:id
for authenticated single guild request and sub endpoints.