Indonesian Rupiah
IDR
Overview
currencies / #38
IDR
Indonesian Rupiah
IDR
Request
curl example
curl -sS \ "https://example-data.com/api/v1/currencies/38" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/currencies/38" ); const currency = 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 } from "./types/currencies";
const res = await fetch(
"https://example-data.com/api/v1/currencies/38"
);
const currency = (await res.json()) as Currency; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/currencies/38"
)
currencie = res.json() Response
{
"id": 38,
"code": "IDR",
"name": "Indonesian Rupiah",
"symbol": "Rp",
"decimalDigits": 2
}