currencies
currencies
Page 3 of 3.
Overview
Request
curl example
curl -sS \ "https://example-data.com/api/v1/currencies?limit=25"
JavaScript example
const res = await fetch(
"https://example-data.com/api/v1/currencies?limit=25"
);
const { data, meta } = await res.json(); TypeScript example
// Download once: mkdir -p types && curl -o types/currencies.d.ts https://example-data.com/types/currencies.d.ts
import type { Currency, ListEnvelope } from "./types/currencies";
const res = await fetch(
"https://example-data.com/api/v1/currencies?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Currency>; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/currencies",
params={"limit": 25},
)
data = res.json() Response
{
"data": [
{
"id": 49,
"code": "GHS",
"name": "Ghanaian Cedi",
"symbol": "GH₵",
"decimalDigits": 2
},
{
"id": 50,
"code": "UGX",
"name": "Ugandan Shilling",
"symbol": "USh",
"decimalDigits": 0
}
],
"meta": {
"page": 3,
"limit": 24,
"total": 50,
"totalPages": 3
},
"links": {
"self": "/api/v1/currencies?page=3&limit=24",
"first": "/api/v1/currencies?page=1&limit=24",
"last": "/api/v1/currencies?page=3&limit=24",
"next": null,
"prev": "/api/v1/currencies?page=2&limit=24"
}
}