CurrencyCore API API
Edge-native currency exchange, PPP, and FX analytics API. Authenticate with `Authorization: Bearer ` or the `x-api-key` header.
Edge-native currency exchange, PPP, and FX analytics API. Authenticate with `Authorization: Bearer ` or the `x-api-key` header.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/currencycore:currencycore-api-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
{
"openapi": "3.1.0",
"info": {
"title": "CurrencyCore API",
"version": "v1",
"description": "Edge-native currency exchange, PPP, and FX analytics API. Authenticate with `Authorization: Bearer <key>` or the `x-api-key` header."
},
"servers": [
{
"url": "https://api.currency-core.com/{version}",
"description": "Production",
"variables": {
"version": {
"default": "v1",
"enum": [
"v1"
]
}
}
}
],
"security": [
{
"bearerAuth": []
},
{
"apiKeyAuth": []
}
],
"components": {
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"description": "Your CurrencyCore API key, e.g. `cc_live_…`."
},
"apiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "x-api-key",
"description": "Your CurrencyCore API key. Equivalent to `Authorization: Bearer <key>`."
}
},
"schemas": {
"ApiError": {
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"invalid_input",
"unsupported_query",
"unknown_currency",
"unknown_ppp",
"rate_not_found",
"unauthorized",
"forbidden",
"billing_past_due",
"rate_limited",
"internal_error"
]
},
"message": {
"type": "string"
},
"details": {}
},
"required": [
"code",
"message"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
},
"ConvertResponse": {
"type": "object",
"properties": {
"from": {
"type": "string"
},
"fromCountry": {
"type": "string"
},
"amount": {
"type": "number"
},
"date": {
"type": "string"
},
"requestedDate": {
"type": "string"
},
"asOf": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"to": {
"type": "string"
},
"toCountry": {
"type": "string"
},
"result": {
"type": "number"
},
"rate": {
"type": "number"
},
"ppp": {
"anyOf": [
{
"type": "object",
"properties": {
"fromFactor": {
"type": "number"
},
"toFactor": {
"type": "number"
},
"result": {
"type": "number"
},
"year": {
"type": "number"
},
"source": {
"type": "string"
}
},
"required": [
"fromFactor",
"toFactor",
"result",
"year",
"source"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"error": {
"type": "string"
}
},
"required": [
"error"
],
"additionalProperties": false
}
]
}
},
"required": [
"to",
"result",
"rate"
],
"additionalProperties": false
}
},
"message": {
"type": "string"
}
},
"required": [
"from",
"amount",
"date",
"results"
],
"additionalProperties": false
},
"RatesResponse": {
"type": "object",
"properties": {
"date": {
"type": "string"
},
"base": {
"type": "string",
"const": "USD"
},
"rates": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number"
}
},
"requestedDate": {
"type": "string"
},
"asOf": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
}
},
"required": [
"date",
"base",
"rates"
],
"additionalProperties": false
},
"RatesByBaseResponse": {
"type": "object",
"properties": {
"base": {
"type": "string"
},
"date": {
"type": "string"
},
"requestedDate": {
"type": "string"
},
"asOf": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"rates": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number"
}
},
"ppp": {
"type": "object",
"properties": {
"base": {
"type": "string"
},
"year": {
"type": "number"
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number"
}
}
},
"required": [
"base",
"year",
"values"
],
"additionalProperties": false
}
},
"required": [
"base",
"date",
"rates"
],
"additionalProperties": false
},
"HistoryResponse": {
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"base": {
"type": "string"
},
"interval": {
"type": "string",
"enum": [
"daily",
"weekly",
"monthly",
"yearly"
]
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"rates": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number"
}
}
},
"required": [
"currency",
"base",
"interval",
"from",
"to",
"rates"
],
"additionalProperties": false
},
"HistoryAnalysisResponse": {
"type": "object",
"properties": {
"base": {
"type": "string"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"compare",
"movers"
]
},
"sort": {
"type": "string",
"enum": [
"strengthened",
"weakened"
]
},
"assetClass": {
"type": "string",
"enum": [
"fiat",
"metals",
"all",
"crypto"
]
},
"interval": {
"type": "string",
"enum": [
"daily",
"weekly",
"monthly",
"yearly"
]
},
"stats": {
"type": "boolean"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"startDate": {
"type": "string"
},
"endDate": {
"type": "string"
},
"startRate": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"endRate": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"changePct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"strengthenedPct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"stats": {
"type": "object",
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
},
"avg": {
"type": "number"
}
},
"required": [
"min",
"max",
"avg"
],
"additionalProperties": false
},
"series": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number"
}
},
"volatility": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"note": {
"type": "string"
}
},
"required": [
"currency",
"startDate",
"endDate",
"startRate",
"endRate",
"changePct",
"strengthenedPct"
],
"additionalProperties": false
}
}
},
"required": [
"base",
"from",
"to",
"mode",
"stats",
"results"
],
"additionalProperties": false
},
"PppAnalysisResponse": {
"type": "object",
"properties": {
"from": {
"type": "number"
},
"to": {
"type": "number"
},
"mode": {
"type": "string",
"enum": [
"compare",
"movers"
]
},
"sort": {
"type": "string",
"enum": [
"increased",
"decreased"
]
},
"stats": {
"type": "boolean"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"country": {
"type": "string"
},
"startYear": {
"type": "number"
},
"endYear": {
"type": "number"
},
"startFactor": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"endFactor": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"changePct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"projected": {
"type": "boolean"
},
"stats": {
"type": "object",
"properties": {
"min": {
"type": "number"
},
"max": {
"type": "number"
},
"avg": {
"type": "number"
}
},
"required": [
"min",
"max",
"avg"
],
"additionalProperties": false
},
"series": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number"
}
},
"note": {
"type": "string"
}
},
"required": [
"country",
"startYear",
"endYear",
"startFactor",
"endFactor",
"changePct",
"projected"
],
"additionalProperties": false
}
}
},
"required": [
"from",
"to",
"mode",
"stats",
"results"
],
"additionalProperties": false
},
"PppResponse": {
"type": "object",
"properties": {
"year": {
"type": "number"
},
"countryCode": {
"type": "string"
},
"pppFactor": {
"type": "number"
},
"projected": {
"type": "boolean"
}
},
"required": [
"year",
"countryCode",
"pppFactor",
"projected"
],
"additionalProperties": false
},
"VolatilityResponse": {
"type": "object",
"properties": {
"base": {
"type": "string"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"compare",
"ranking"
]
},
"sort": {
"type": "string",
"enum": [
"stable",
"volatile"
]
},
"universe": {
"type": "string",
"enum": [
"liquid",
"majors"
]
},
"basis": {
"type": "string",
"const": "annualized-daily"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"volatility": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"observations": {
"type": "number"
},
"note": {
"type": "string"
}
},
"required": [
"currency",
"volatility",
"observations"
],
"additionalProperties": false
}
}
},
"required": [
"base",
"from",
"to",
"mode",
"basis",
"results"
],
"additionalProperties": false
},
"CorrelationResponse": {
"type": "object",
"properties": {
"base": {
"type": "string"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"correlation": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"observations": {
"type": "number"
},
"note": {
"type": "string"
}
},
"required": [
"currency",
"correlation",
"observations"
],
"additionalProperties": false
}
}
},
"required": [
"base",
"from",
"to",
"results"
],
"additionalProperties": false
},
"DrawdownResponse": {
"type": "object",
"properties": {
"base": {
"type": "string"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"compare",
"ranking"
]
},
"sort": {
"type": "string",
"enum": [
"deepest",
"recovery"
]
},
"universe": {
"type": "string",
"enum": [
"liquid",
"majors"
]
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"maxDrawdownPct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"peakDate": {
"type": "string"
},
"troughDate": {
"type": "string"
},
"recoveryDate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"recoveryDays": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"note": {
"type": "string"
}
},
"required": [
"currency",
"maxDrawdownPct"
],
"additionalProperties": false
}
}
},
"required": [
"base",
"from",
"to",
"mode",
"results"
],
"additionalProperties": false
},
"SafeHavenResponse": {
"type": "object",
"properties": {
"base": {
"type": "string"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"crisis": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
}
},
"required": [
"label",
"from",
"to"
],
"additionalProperties": false
},
"universe": {
"type": "string",
"enum": [
"liquid",
"majors"
]
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"score": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"volatility": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"maxDrawdownPct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"crisisReturnPct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"note": {
"type": "string"
}
},
"required": [
"currency",
"score",
"volatility",
"maxDrawdownPct",
"crisisReturnPct"
],
"additionalProperties": false
}
}
},
"required": [
"base",
"from",
"to",
"crisis",
"results"
],
"additionalProperties": false
},
"MeanReversionResponse": {
"type": "object",
"properties": {
"base": {
"type": "string"
},
"from": {
"type": "string"
},
"to": {
"type": "string"
},
"universe": {
"type": "string",
"enum": [
"liquid",
"majors"
]
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"currency": {
"type": "string"
},
"score": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"deviationPct": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"reversionFrequency": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"halfLifeDays": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
]
},
"note": {
"type": "string"
}
},
"required": [
"currency",
"score",
"deviationPct",
"reversionFrequency",
"halfLifeDays"
],
"additionalProperties": false
}
}
},
"required": [
"base",
"from",
"to",
"results"
],
"additionalProperties": false
},
"CountriesResponse": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"name": {
"type": "string"
},
"currencies": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"code",
"name"
],
"additionalProperties": false
}
},
"CurrenciesResponse": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"numeric": {
"type": "string",
"description": "ISO 4217 numeric code, zero-padded (e.g. 840). Empty string for documented non-ISO codes (CNH, GGP, IMP, JEP)."
},
"name": {
"type": "string"
},
"symbol": {
"type": "string"
}
},
"required": [
"code",
"numeric",
"name",
"symbol"
],
"additionalProperties": false
}
},
"AiResponse": {
"type": "object",
"properties": {
"query": {
"type": "string"
},
"answer": {
"type": "string"
},
"data": {
"type": "array",
"items": {}
},
"toolCalls": {
"type": "number"
},
"byok": {
"type": "boolean"
}
},
"required": [
"query",
"answer",
"data"
],
"additionalProperties": false
}
}
},
"paths": {
"/convert": {
"get": {
"operationId": "convert",
"summary": "Convert",
"description": "Convert an amount between currencies, optionally PPP-adjusted.",
"tags": [
"CurrencyCore"
],
"parameters": [
{
"name": "from",
"in": "query",
"required": true,
"description": "Source currency (ISO 4217), e.g. USD. For PPP (ppp=true), pass CUR:COUNTRY (e.g. USD:USA) when the currency is used in more than one country; common currencies are resolved automatically.",
"schema": {
"type": "string"
},
"example": "USD"
},
{
"name": "to",
"in": "query",
"required": true,
"description": "One or more target currencies, comma-separated, e.g. EUR,INR (max 25). For PPP, pass CUR:COUNTRY pairs (e.g. EUR:DEU,INR:IND) when a currency is used in more than one country; common currencies are resolved automatically.",
"schema": {
"type": "string"
},
"example": "EUR,INR"
},
{
"name": "amount",
"in": "query",
"required": false,
"description": "Amount to convert. Optional, defaults to 1 (so each result equals the rate). When provided it must be a finite positive number.",
"schema": {
"type": "number"
},
"example": 100
},
{
"name": "ppp",
"in": "query",
"required": false,
"description": "When true, apply a PPP adjustment. Pass CUR:COUNTRY for currencies used in more than one country; common currencies (USD, EUR, INR and others) resolve automatically.",
"schema": {
"type": "boolean"
},
"example": false
},
{
"name": "date",
"in": "query",
"required": false,
"description": "Rate date in YYYY-MM-DD (UTC). Must not be in the future. Defaults to latest.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ConvertResponse"
}
}
}
},
"400": {
"description": "Invalid or missing request parameters.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
}
},
"401": {
"description": "Missing or invalid API key.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
}
},
"402": {
"description": "Billing is past due; API access is paused until payment is cleared.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
}
},
"403": {
"description": "Forbidden: the Free plan is limited to the last 30 days of historical `date=` data and cannot use live keys; upgrade for access.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
}
},
"429": {
"description": "Rate limit or monthly quota exceeded.",
"content": {
"application/json": {
# --- truncated at 32 KB (83 KB total) ---
# Full source: https://artifacts.apis.io/currencycore/openapi/_original/currencycore-api-openapi.json