Official client libraries

Currency API Client Libraries

Drop-in SDKs for the UniRate currency exchange rate API in 9 languages. Real-time rates, historical data, and VAT rates — all open source on GitHub.

170+ currencies Historical back to 1999 VAT rates worldwide Free tier, no credit card MIT licensed

Python

PyPI
pip install unirate-api

Pythonic client built on requests. Supports current rates, historical data, time series, and VAT lookups.

Node.js / TypeScript

npm
npm install unirate-api

Full TypeScript typings, works in Node, Deno, and modern bundlers. Promise-based API.

PHP

Composer
composer require unirate-api/unirate-api

PHP 8.1+ with strict types and readonly value objects. Guzzle 7 under the hood, swappable PSR-18 client.

Ruby

RubyGems
gem install unirate-api

Pure stdlib — net/http + json, zero runtime dependencies. Ruby 3.0+.

Java

Maven
com.unirateapi:unirate-api:0.1.0

Java 11+. Uses java.net.http.HttpClient and Jackson — nothing else. Typed exception hierarchy.

Go

go.mod
go get github.com/UniRate-API/unirate-api-go

Idiomatic Go: context.Context on every method, sentinel errors, no external deps. Go 1.21+.

Rust

crates.io
cargo add unirate-api

Async/await, Send + Sync, serde-derived models. reqwest (rustls) — no OpenSSL. Rust 1.74+.

Swift

SPM
.package(url: "...unirate-api-swift")

Modern Swift — async/await, Sendable, Codable. iOS 15+ / macOS 12+. Zero external dependencies.

C# / .NET

NuGet
dotnet add package UniRateApi

Modern .NET with async/await, CancellationToken, and System.Text.Json. Pure BCL — no external deps.

Every library covers the same API

One backend, one API key — pick the SDK that matches your stack. All client libraries expose the same endpoints.

Real-time rates

Get the current rate for any pair, all rates for a base currency, or convert an amount between any two currencies from the 170+ supported.

Historical data

Fetch daily close rates on any date back to 1999, convert using historical rates, or request a time series up to 5 years long.

Supported currencies

List all supported currency codes — 170+ fiat plus 420+ cryptocurrencies — in a single call. Useful for populating dropdowns.

VAT rates

Look up current VAT rates for countries worldwide by ISO-3166 alpha-2 code — ideal for SaaS billing and e-commerce checkout.

Grab an API key and ship in minutes

Every SDK works with the same free API key. No credit card, no trial expiry — the free tier is free forever.