GET /api/v1/collection/world-currencies.json
{
"collection": "world-currencies",
"type": "string",
"count": 20,
"items": [
{ "key": "USD", "value": "United States dollar" },
{ "key": "EUR", "value": "Euro" },
{ "key": "GBP", "value": "Pound sterling" }
]
}const res = await fetch(
'https://collections.rest/api/v1/collection/world-currencies.json'
);
const { items } = await res.json();
// values are typed: integers are numbers, not stringscurl https://collections.rest/api/v1/\
collection/world-currencies.csv