---
title: "GET /api/convert"
method: GET
path: "/api/convert"
tags: ["Currency"]
---

# GET /api/convert

`GET /api/convert`

## Request

- Base URL: `https://api.unirateapi.com`
- URL: `https://api.unirateapi.com/api/convert`
- Auth: none declared
- TypeScript: <https://skmtc.dev/unirateapi/apis/unirate-api/docs/api/convert/get.ts> (a function with typed inputs; its response is checked against the schema)

Convert amount between currencies

## Query parameters

- `api_key` string, required
- `amount` number
- `from` string
- `to` string, required
- `format` 'json' | 'xml' | 'csv' | 'tsv'
- `callback` string

## Response `200`

Currency converted successfully.

## Other responses

- `400`: Invalid request parameters
- `401`: Missing or invalid API key
- `404`: Currency not found
- `503`: No exchange rates available

---

[API](https://skmtc.dev/unirateapi/apis/unirate-api.md) - [All operations](https://skmtc.dev/unirateapi/apis/unirate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/unirateapi/apis/unirate-api/revisions/e5fd92902326?raw)
