Documentation

Developer documentation

Everything you need to go from an API key to a production integration: REST endpoints, history back to 1949 for GBP/USD and USD/INR, analytics, MCP tools for agents, and AI answers backed by the same rates.

Free plan includes 1,000 requests and 100 AI credits per month, no credit card required.

Start here

The shortest path to a working request

Six pages that cover the contract, the key, and the first error you will hit.

Browse by task

What are you trying to do?

All pages

Find a page

92 pages

Filters this page list by title and description. It does not search page content.

Getting Started with the Currency API Info Create an API key, make your first CurrencyCore request, and choose the conversion, rates, history, or analytics endpoint that fits your use case. OpenAPI Specification & Generated Clients Info Download the CurrencyCore OpenAPI 3.1 contract, import it into Postman, Insomnia or Bruno, and generate typed clients for TypeScript, Python, Go, PHP and more. API Authentication: Keys, Headers and Troubleshooting Info Authenticate CurrencyCore API requests with a Bearer token or x-api-key header, rotate and revoke keys, troubleshoot 401 errors, and understand IP rules. Billing, Invoices and Plan Changes Info CurrencyCore billing FAQ: plan prices, invoices and tax, refunds, proration, overage, hard caps, seats, and what counts toward your monthly request quota. Developer Guides Info Task-based CurrencyCore guides for frameworks, caching, retries, security, testing, observability, product workflows, migration, Postman and support. AI Credits and Metering Info How CurrencyCore meters AI separately from API requests, which calls consume credits, what failures cost, monthly allowances, and add-on packs. Rate Limits and Plan Quotas Info CurrencyCore rate limits explained: monthly request quotas, per-minute limits, history lookback, AI credit allowances, overage billing, and 429 behavior. API Error Codes and How to Fix Them Info Every CurrencyCore API error code, the HTTP statuses that carry it, what causes it, and which failures are safe to retry. Includes 401, 402, 429, and 5xx. Caching Reference Rates Info Cache CurrencyCore rates by date and base, use long TTLs for past dates, and keep today's cache within your business tolerance. Retries and Backoff Info Retry only 429 and 5xx responses with exponential backoff and jitter, honor Retry-After, and leave validation errors alone. API Key Security Info Keep CurrencyCore keys server-side, rotate with overlap, proxy browser traffic, and redact secrets from logs. Testing Against CurrencyCore Info Use test keys for integration checks, deterministic fixtures for unit tests, and contract tests against the OpenAPI 3.1 spec. Observability and Logging Info Log endpoint, base, date, status and latency with your own correlation ID, since the API does not return a request ID. Load Testing a Metered API Info Plan load tests from the per-minute rate limit, pace virtual users against it, and account for errors and retries that consume the same budget. Graceful Degradation for Rate Outages Info Use a circuit breaker and a dated last-known snapshot when the API is slow or failing, with a maximum stale age per business use. Production Readiness Checklist Info A concise launch checklist for keys, auth, timeouts, retries, caching, dates, quotas, plan gates, logging, and failure drills. Bulk Conversion and Concurrency Info There is no bulk endpoint. Batch with /v1/convert, fan out /v1/history one currency at a time, and pace a bounded worker pool. Data Quality and Carried-Forward Rates Info Read dense history correctly: carried-forward weekends, absent pre-listing dates, UTC dates, and the difference between a calendar row and a fresh fixing. /convert Endpoint Endpoints Complete reference for the currency conversion endpoint, including PPP adjustment, response fields, errors, and the triangulation formula. /rates Endpoint Endpoints Fetch a full exchange-rate snapshot for a date, or rebase it to any base currency, with carry-forward and as-of behavior explained. /history Endpoint Endpoints Fetch a dense day-by-day time series for one currency, with interval averaging, carry-forward gaps, and plan history limits. /history/analysis Endpoint Endpoints Compare currencies or rank the biggest movers over a window, with change, strength, stats, and optional trend series in one call. /ppp Endpoint Endpoints Look up a country's PPP factor for a year and read the default year, alpha-3 handling, projection flag, and response fields. /ppp/analysis Endpoint Endpoints Track purchasing-power parity over time, compare countries, or rank the biggest movers, with factor change and projected-year flags. /volatility Endpoint Endpoints Measure annualized volatility for currencies versus a base, or rank the liquid set by stability, with practical band guidance. /correlation Endpoint Endpoints Measure how currencies move together with a base using Pearson correlation of daily returns, with sign and magnitude guidance. /drawdown Endpoint Endpoints Find a currency's worst peak-to-trough decline against a base, with peak, trough, and recovery dates plus clear null semantics. /safe-haven Endpoint Endpoints Rank currencies by a composite safe-haven score built from low volatility, shallow drawdown, and 2008-crisis resilience. /mean-reversion Endpoint Endpoints Rank currencies by how strongly they revert to their window mean, using crossing frequency, half-life, and current deviation. /countries Endpoint Endpoints Download the full country reference with alpha-3 codes, names, and official currencies, plus notes on multi-currency territories. /currencies Endpoint Endpoints Download the full supported currency list with code, numeric, name, and symbol, plus notes on legacy and non-ISO currency codes. /ai Endpoint Endpoints Ask currency questions in plain English, the AI endpoint understands the request and answers using current CurrencyCore reference rates. AI Quickstart AI Make your first GET /v1/ai request, read the response, verify the number against /v1/convert, and handle a 200 that is not a direct answer. AI Prompt Guide AI Prompts that work with GET /v1/ai, the result shape each one tends to return, the plan it needs, and how to rewrite vague questions. AI Response Schema AI TypeScript types for the current GET /v1/ai response and all 12 data shapes, plus a safe rendering pattern that does not rely on a discriminator. AI Grounding and Verification AI How /v1/ai gets its numbers from deterministic currency tools, why data is canonical, how to verify convert and history results against REST, and what is not auditable yet. AI Errors and Retries AI Every GET /v1/ai error status, what it costs in AI credits, how to retry it, the latency budget, and what to include in a support request. MCP Tools MCP Reference for all 14 CurrencyCore MCP tools, with inputs, plan requirements, response fields, and error behavior. MCP OAuth and Access MCP How CurrencyCore MCP sign-in works, how organization selection is bound to a connection, what the client can access, and how to revoke it. MCP Troubleshooting MCP Symptom, cause, and fix tables for CurrencyCore MCP connection, OAuth, organization, plan, quota, config format, and client-specific problems. MCP for Claude MCP Add CurrencyCore to Claude web or Desktop as a custom connector, or to Claude Code with one command. Exact steps, config, and fixes. MCP for ChatGPT MCP Add CurrencyCore as a custom MCP server in a ChatGPT workspace, with plan requirements, OAuth, and tool refresh notes. MCP for VS Code MCP Add CurrencyCore to VS Code with a portable .mcp.json file or the legacy .vscode/mcp.json format, then use it from Copilot agent mode. MCP vs REST MCP When to use the CurrencyCore MCP server and when to call the REST API directly. Same data, same quota, different integration shape. Official SDKs Code Examples Official CurrencyCore clients for TypeScript, Python, Dart, Kotlin, and Swift, with install commands, error handling, retries, and compatibility notes. Client Setup, Errors, and Retries Code Examples Set up a reusable CurrencyCore client, read the error envelope, and retry 429 and 5xx responses safely with backoff and Retry-After. Spreadsheets Code Examples Pull current CurrencyCore reference rates and conversions into Google Sheets and Excel with Apps Script or Power Query, plus caching, quotas, and troubleshooting. JavaScript and the CurrencyCore API Code Examples Call the API from a Node.js script or serverless function with fetch, a timeout, a small error class, and no build step. TypeScript and the CurrencyCore API Code Examples Use the official TypeScript SDK for typed convert, rates and history calls, then fall back to raw fetch when you need custom request options. Next.js App Router with CurrencyCore Code Examples Add server-only CurrencyCore routes to Next.js, keep the API key off the client, and cache daily reference rates with revalidate. Python and the CurrencyCore API Code Examples Use the official Python SDK for typed convert and rates calls, with environment-based auth, error handling, and a note on async services. FastAPI with CurrencyCore and httpx Code Examples Add one async FastAPI route that calls CurrencyCore with httpx, validates the response with Pydantic, and applies a timeout. PHP and the CurrencyCore API Code Examples Call /v1/convert and /v1/rates from PHP with cURL, an environment variable, a timeout, and error handling. Laravel and the CurrencyCore API Code Examples Add CurrencyCore to Laravel with the Illuminate HTTP client, config/services.php, an environment variable, a timeout, and one controller method. Go and the CurrencyCore API Code Examples Call /v1/convert and /v1/rates from Go with net/http, a context timeout, typed structs, and error handling. Debugging CurrencyCore with curl Code Examples Run convert, rates, and history requests from a terminal, read HTTP status and Retry-After, and filter JSON with jq. Express 4 with CurrencyCore Code Examples A shared fetch helper, timeout, error middleware, and in-memory cache for a Node.js Express 4 route. React with a Backend Proxy Code Examples Call CurrencyCore through your own backend so the API key never enters the browser bundle, with loading, error, and abort handling. Django 4.2 with CurrencyCore Code Examples A cached Django view that calls CurrencyCore with requests, propagates status, and keeps the key in server settings. Java and Spring Boot with the CurrencyCore API Code Examples Call /v1/convert and /v1/rates from Spring Boot 3 with RestClient, typed records, connect and read timeouts, and status-preserving errors. Ruby on Rails and the CurrencyCore API Code Examples Call /v1/convert and /v1/rates from Rails 7 with Faraday, credentials, explicit timeouts, a named error class, and a date-keyed cache. C# and .NET with the CurrencyCore API Code Examples Call /v1/convert and /v1/rates from .NET 8 with IHttpClientFactory, source-generated JSON records, IMemoryCache, and ProblemDetails. Flutter and Dart with the CurrencyCore SDK Code Examples Use the official Dart SDK in Flutter, pass the key with --dart-define, handle typed responses and Dio errors, and keep mobile key handling honest. Swift and iOS with the CurrencyCore SDK Code Examples Use the official Swift SDK with async/await, configure the key from xcconfig or a backend, decode typed models, and handle ErrorResponse. Kotlin and Android with the CurrencyCore SDK Code Examples Use the official Kotlin SDK on Android, keep the key out of source, call convert from coroutines, and handle ClientException. Migrate an Existing Currency API Integration Integrations Move a currency API integration to CurrencyCore: plan choice, bearer auth, currency and history coverage, response mapping, endpoint mapping, and a cutover checklist. Migrate from Fixer Integrations Move a Fixer integration to CurrencyCore: access_key to bearer auth, latest and convert mapping, timeseries to history, response fields, pricing differences, and caveats. Migrate from CurrencyLayer Integrations Move a CurrencyLayer integration to CurrencyCore: access_key to bearer auth, live and historical mapping, quotes to rates conversion, 60-second tier comparison, and caveats. Migrate from ExchangeRate-API Integrations Move an ExchangeRate-API integration to CurrencyCore: URL key to bearer auth, latest and pair mapping, conversion_rates mapping, history depth, pricing, and caveats. Postman Collection for the CurrencyCore API Integrations Import the generated CurrencyCore Postman v2.1 collection and environment, set baseUrl and apiKey, and use one request per OpenAPI path. No hosted workspace. Changelog Integrations CurrencyCore documentation and API changes, starting with the 2026-11-11 developer guide, OpenAPI publication, MCP OAuth fix, docs hub, and API reference. Migrate from Open Exchange Rates Integrations Move an Open Exchange Rates integration to CurrencyCore: app_id to bearer auth, latest and historical mapping, convert and time-series calls, response fields, and cutover checks. CurrencyCore FAQ Integrations Answers about getting started, API keys, plans, currency and history coverage, rate limits, MCP, the AI endpoint, migration, and key security. Migrate from CurrencyAPI Integrations Move a currencyapi.com v3 integration to CurrencyCore: apikey to bearer auth, latest, historical, convert and range mapping, response envelope changes, and cutover checks. Migrate from Frankfurter Integrations Move a Frankfurter v2 integration to CurrencyCore: add bearer auth, map base and quotes to the path, replace client-side multiplication, and decide when Frankfurter is still the better fit. Support Integrations Contact CurrencyCore support, check the status page first, and include the endpoint, UTC time, status, key prefix, request body, and correlation ID in your report. Import the OpenAPI Spec into Insomnia and Bruno Integrations Import the CurrencyCore OpenAPI 3.1 spec into Insomnia or Bruno, set baseUrl and apiKey environment variables, send a bearer-authenticated request, and add a CI curl smoke test. MCP Server Documentation Integrations Connect Claude, Cursor, VS Code, and other AI assistants to CurrencyCore over MCP. Includes tools, parameters, limits, setup, and troubleshooting. Sample Apps and End-to-End Patterns Integrations Five small, runnable patterns: checkout quoting, PPP pricing, a dashboard proxy, a backtest, and an MCP agent setup. Estimate Your Monthly API Cost Integrations Calculate a CurrencyCore bill from included requests, completed 1,000-request overage blocks, the hard cap, and the separate AI credit pool. Single Sign-On (SSO) Integrations Set up OIDC single sign-on for CurrencyCore: plan requirements, redirect URLs, domain verification, Require SSO, IdP notes, and common errors. BYOK: Bring Your Own AI Keys Integrations Run the /ai endpoint on your own OpenAI, Anthropic, Gemini, or compatible model. Learn BYOK metering, key validation, fallback behavior, and costs. Currency Conversion for E-commerce Integrations Show local prices, fix the rate at checkout, charge in your settlement currency, and refund at the original rate with a complete order record. Local Pricing for SaaS Plans Integrations Turn a USD plan price into a defensible local price with IMF PPP factors, explicit floors and ceilings, and a documented rounding rule. Multi-Currency Invoicing Integrations Price an invoice at a fixed date, store the rate and response metadata, and reproduce the same calculation for audit. Currency Dashboards Integrations Build a rate dashboard with a server-side cache, a visible snapshot date, and a stale fallback instead of a request on every render. Backtesting with Historical Rates Integrations Run a historical simulation on dated observations while controlling look-ahead bias, carry-forward values and uneven currency coverage. AI Agents and Currency Tools Integrations Choose between the HTTP AI endpoint and MCP tools, and understand how each call is metered. Historical Rate Coverage Integrations Understand which pairs go back to 1949, which start in 1971 or later, and how per-currency availability affects a query. Purchasing Power Parity Integrations Read IMF PPP factors correctly, convert an amount at price levels, and keep the result separate from a market exchange rate. Analytics Endpoints Integrations Choose among the seven Growth+ analytics endpoints and understand what each metric measures. Exporting Rate Data Integrations Pull a daily series, mark repeated values, write a reproducible CSV, and load it into a warehouse without overcounting carry-forward days.