API Reference

Code Examples

Copy-paste examples for calling the CurrencyCore API in cURL, JavaScript, Python, Go, Java, and PHP.


Every request is a plain authenticated GET. Send your key as a bearer token in the Authorization header (or the x-api-key header), never in the URL. Pick your language below; all endpoints follow the same shape.

Replace cc_live_your_key with a key from your dashboard. See Authentication for both header options.

Prefer a typed client? The official SDKs wrap these same calls for TypeScript, Python, Dart, Kotlin, and Swift.

Convert an amount

GET /v1/convert, convert 100 USD to INR.

curl "https://api.currency-core.com/v1/convert?from=USD&to=INR&amount=100" \
  -H "Authorization: Bearer cc_live_your_key"

All rates for a base currency

GET /v1/rates/:base, every currency expressed against EUR.

curl "https://api.currency-core.com/v1/rates/EUR" \
  -H "Authorization: Bearer cc_live_your_key"

Need a different language or framework? Email support, we’re happy to help.