Documentation

Getting Started with the Currency API

Create an API key, make your first CurrencyCore request, and choose the conversion, rates, history, or analytics endpoint that fits your use case.


Before you start

You need an account, an organization, and an API key. Every public endpoint is a GET, every response is JSON, and every failure uses the same error envelope. The examples below use the base URL https://api.currency-core.com/v1; substitute it directly rather than appending your own path prefix.

1. Create an account

Sign up at app.currency-core.com. No credit card is required for the Free plan.

2. Create an API key

Create an organization, then generate a key from the API Keys section. On the Free plan the key looks like cc_test_xxxxxxxxxxxxxxxx; on a paid plan you can create a live key that looks like cc_live_xxxxxxxxxxxxxxxx.

Send the key in the Authorization header:

Authorization: Bearer cc_live_your_key

Test keys work on every plan. Live keys require a paid plan, so a Free organization should use a test key while integrating. Test keys return the same reference data, count against the same monthly quota, and are capped at 60 requests per minute. See Authentication for key types, headers, and rate limits.

3. Make your first request

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

A successful response includes the date actually used and one result per target:

{
  "from": "USD",
  "amount": 100,
  "date": "2026-11-10",
  "results": [
    { "to": "EUR", "result": 89.24, "rate": 0.8924 }
  ]
}

Your first error

Every failure uses the same JSON envelope. Calling /v1/convert without a key returns 401 unauthorized:

{
  "error": {
    "code": "unauthorized",
    "message": "Missing API key. Send `Authorization: Bearer <key>`."
  }
}

Invalid input is normally a 400, an unknown currency is 400 unknown_currency, an unpaid invoice is 402 billing_past_due, a plan restriction is 403 forbidden, and too many requests is 429 rate_limited with a Retry-After header. See Errors for the full list and retry guidance.

All public endpoints

EndpointWhat it returnsPlan
GET /v1/convertConvert an amount, with optional PPP adjustmentAll plans
GET /v1/ratesFull USD-base snapshot for a dateAll plans
GET /v1/rates/:baseThe same snapshot rebased to another currencyAll plans
GET /v1/historyDaily rate series for one currencyAll plans; Free sees 30 days
GET /v1/history/analysisTrends, comparisons, and moversGrowth and above
GET /v1/pppOne country’s PPP factor for a yearAny valid key
GET /v1/ppp/analysisPPP trends, comparisons, and moversGrowth and above
GET /v1/volatilityAnnualized volatility or a stability rankingGrowth and above
GET /v1/correlationReturn correlation against a base currencyGrowth and above
GET /v1/drawdownMaximum drawdown with recovery datesGrowth and above
GET /v1/safe-havenComposite safe-haven rankingGrowth and above
GET /v1/mean-reversionMean-reversion score and half-lifeGrowth and above
GET /v1/countriesCountry reference listPublic, no key
GET /v1/currenciesCurrency reference listPublic, no key
GET /v1/aiNatural-language currency answersAll plans; AI credits apply

/v1/history/analysis is mounted under /v1/history, so its full path is /v1/history/analysis. /v1/ppp/analysis is mounted under /v1/ppp.

On the Free plan, history requests are limited to the last 30 days. Older dates return 403 forbidden.

The full contract is published as an OpenAPI 3.1 specification. Use it to generate a typed client, import the API into your tooling, or inspect both authentication schemes. See the OpenAPI docs for the raw document.

Choose your path

How requests work

Send the key in a header, pass parameters in the query string, and read the JSON body. There is no request body and no content type to set. Dates are UTC calendar dates in YYYY-MM-DD form. Amounts are numbers, and comma-separated lists are used where an endpoint accepts several currencies or countries. Responses are not wrapped in a generic data field: the top-level object is the result. A 2xx status means the request was accepted, so still check the body for per-target errors such as a PPP error entry.

Base URL and versioning

All endpoints live under a version prefix:

https://api.currency-core.com/v1

The version is pinned in the path, so a future /v2 can introduce breaking changes while /v1 keeps serving existing integrations.

Continue to Authentication to learn about key management and rate limits.