OpenAPI 3.0
Docs.
Every Howmch route. Convert any listed currency into any other, or pull a full rate board.
openapi.jsonCurrencies
The world currency catalog.
/api/currenciesList world currencies
Active ISO currencies Howmch can convert. Pass q to search by code, name, country, or symbol.
qquery · string · e.g. mark
{
"count": 1,
"currencies": [
{
"code": "BAM",
"name": "Convertible mark",
"country": "Bosnia and Herzegovina",
"symbol": "KM",
"decimals": 2
}
]
}Rates
Kursne liste and the stored euro table.
/api/ratesEuro rate table
Units of each currency per 1 euro. This is the table the site stores. For a list quoted in another currency, use /api/rates/board.
{
"date": "2026-11-21",
"source": "currency-api",
"base": "EUR",
"count": 156,
"rates": {
"EUR": 1,
"USD": 1.0968,
"BAM": 1.95583
}
}/api/rates/boardKursna lista
One unit of base, priced in every other currency. rate is how many units of that currency you get for 1 base. inverse is how many base you get for 1 unit of that currency.
basequery · string · e.g. USD
{
"base": "USD",
"baseName": "US Dollar",
"date": "2026-11-21",
"source": "currency-api",
"count": 155,
"quotes": [
{
"code": "BAM",
"name": "Convertible mark",
"country": "Bosnia and Herzegovina",
"rate": 1.783,
"inverse": 0.5608
}
]
}/api/rates/refreshFetch a newer table
Downloads today's euro rates from the open Currency API and stores them. Tries the jsDelivr mirror, then the pages.dev mirror.
{
"date": "2026-11-21",
"source": "currency-api",
"base": "EUR",
"count": 156,
"rates": {
"EUR": 1,
"USD": 1.0968
}
}Convert
Turn an amount in one currency into another.
/api/convertConvert with a query string
amountquery · required · number · e.g. 89.99fromquery · required · string · e.g. USDtoquery · required · string · e.g. BAM
{
"amount": 89.99,
"from": "USD",
"to": "BAM",
"converted": 160.45,
"formatted": "KM 160.45",
"sourceFormatted": "$89.99",
"rate": 1.783,
"inverse": 0.5608,
"rateDate": "2026-11-21",
"source": "currency-api"
}/api/convertConvert with a JSON body
{
"amount": 89.99,
"from": "USD",
"to": "BAM"
}{
"amount": 89.99,
"from": "USD",
"to": "BAM",
"converted": 160.45,
"formatted": "KM 160.45",
"sourceFormatted": "$89.99",
"rate": 1.783,
"inverse": 0.5608,
"rateDate": "2026-11-21",
"source": "currency-api"
}Device
Home and trip currencies for this browser.
/api/settingsRead this browser's pair
{
"home": "BAM",
"trip": "USD"
}/api/settingsSave this browser's pair
{
"home": "BAM",
"trip": "EUR"
}{
"home": "BAM",
"trip": "EUR"
}/api/deviceForget this browser
Deletes the device row, its scans, and clears the cookie.
{
"ok": true
}Scans
Camera reads kept for this browser.
/api/scansList camera reads
{
"scans": []
}/api/scansKeep a camera read
{
"amount": 89.99,
"from": "USD",
"to": "BAM"
}/api/scansClear camera history
{
"ok": true
}/api/scans/{id}Correct a saved amount
idpath · required · string
{
"amount": 90
}/api/scans/{id}Delete one scan
idpath · required · string
{
"ok": true
}Support
Messages sent from the support form.
/api/supportSend a support message
{
"name": "Mina",
"email": "mina@example.com",
"topic": "Rates",
"message": "The board looks a day old."
}{
"ok": true,
"id": "6f1c",
"createdAt": "2026-11-22T11:00:00.000Z"
}Letter
Newsletter signup and a keyed send through Resend.
/api/newsletterJoin the letter
{
"email": "mina@example.com"
}{
"ok": true,
"email": "mina@example.com"
}/api/newsletter/sendSend the letter
Sends the text through Resend to every address still subscribed. Requires the send key.
{
"subject": "The board moved",
"body": "Today's table is in.",
"key": "send-key"
}{
"ok": true,
"sent": 12
}/api/newsletter/unsubscribeLeave the letter
emailquery · required · string
