example-data.com

currencies

currencies

Page 2 of 3.

curl -sS \
  "https://example-data.com/api/v1/currencies?limit=25"
const res = await fetch(
  "https://example-data.com/api/v1/currencies?limit=25"
);
const { data, meta } = await res.json();
import type { Currencie, ListEnvelope } from "https://example-data.com/types/currencies.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/currencies?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Currencie>;
import requests

res = requests.get(
    "https://example-data.com/api/v1/currencies",
    params={"limit": 25},
)
data = res.json()
{
  "data": [
    {
      "id": 25,
      "code": "HUF",
      "name": "Hungarian Forint",
      "symbol": "Ft",
      "decimalDigits": 2
    },
    {
      "id": 26,
      "code": "RON",
      "name": "Romanian Leu",
      "symbol": "lei",
      "decimalDigits": 2
    },
    {
      "id": 27,
      "code": "TRY",
      "name": "Turkish Lira",
      "symbol": "₺",
      "decimalDigits": 2
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 50,
    "totalPages": 3
  },
  "links": {
    "self": "/api/v1/currencies?page=2",
    "next": "/api/v1/currencies?page=3",
    "prev": "/api/v1/currencies?page=1"
  }
}
Draftbit