Skip to content

OpenAPI 3.0

Docs.

Every Howmch route. Convert any listed currency into any other, or pull a full rate board.

openapi.json

Try it

GET /api/convert

The result shows up here.

Currencies

The world currency catalog.

get/api/currencies

List 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.

get/api/rates

Euro 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
  }
}
get/api/rates/board

Kursna 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
    }
  ]
}
post/api/rates/refresh

Fetch 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.

get/api/convert

Convert with a query string

  • amountquery · required · number · e.g. 89.99
  • fromquery · required · string · e.g. USD
  • toquery · 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"
}
post/api/convert

Convert 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.

get/api/settings

Read this browser's pair

{
  "home": "BAM",
  "trip": "USD"
}
put/api/settings

Save this browser's pair

{
  "home": "BAM",
  "trip": "EUR"
}
{
  "home": "BAM",
  "trip": "EUR"
}
delete/api/device

Forget this browser

Deletes the device row, its scans, and clears the cookie.

{
  "ok": true
}

Scans

Camera reads kept for this browser.

get/api/scans

List camera reads

{
  "scans": []
}
post/api/scans

Keep a camera read

{
  "amount": 89.99,
  "from": "USD",
  "to": "BAM"
}
delete/api/scans

Clear camera history

{
  "ok": true
}
patch/api/scans/{id}

Correct a saved amount

  • idpath · required · string
{
  "amount": 90
}
delete/api/scans/{id}

Delete one scan

  • idpath · required · string
{
  "ok": true
}

Support

Messages sent from the support form.

post/api/support

Send 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.

post/api/newsletter

Join the letter

{
  "email": "mina@example.com"
}
{
  "ok": true,
  "email": "mina@example.com"
}
post/api/newsletter/send

Send 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
}
get/api/newsletter/unsubscribe

Leave the letter

  • emailquery · required · string
API