jasonb.4198:

When I try to get all the data for currencies, using ‘https://api.guildwars2.com/v2/currencies’, all I seem to get is “1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,18,19,20,22,23,24,25,26,27,28,29,30”. But if I call a single ID, https://api.guildwars2.com/v2/currencies/1, then I can call .id, or .name, and get a value I expect, i.e. 1 or .id, coin for .name. I expected to get an array of items, that doesn’t seem to be the case. XXX1.name returns undefined. I’m obviously missing something, but I don’t know what. I’m new to this, so that’s likely, but I have programming knowledge, so I understand the concepts of arrays and objects.

Eearslya.6309:

As is the case with most v2 endpoints, the base endpoint will return an array of IDs that you can then request more information about. This is so you can request more with a URL like /v2/currencies?ids=1,2,3 which will return an array containing the information on IDS 1, 2, and 3.

In your case, if you want all the currencies at once, the request you want is /v2/currencies?ids=all which will give you all available information.

Mystic.5934:

In your case, if you want all the currencies at once, the request you want is /v2/currencies?ids=all which will give you all available information.

!!!! lol wish I knew that before I used /v2/currencies?ids=1,2,3,4,5,6,7,9,10,11,12,13,14,15,16,18,19,20,22,23,24,25,26,27,28,29,30 :P