StatCite Fx API
The Fx API from StatCite — 1 operation(s) for fx.
The Fx API from StatCite — 1 operation(s) for fx.
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/statcite-com:statcite-com-fx-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.2.0
info:
title: StatCite Fx API
version: 1.17.0
description: Official economic statistics with full citations, built for AI agents. Every numeric response includes a citation object (source, dataset, series_id, source_url, license, attribution, retrieved_at, citation_text). Free, no auth, read-only. MCP endpoint at https://statcite.com/mcp.
contact:
email: hello@statcite.com
url: https://statcite.com
license:
name: Service terms
url: https://statcite.com/terms
servers:
- url: https://statcite.com
tags:
- name: FX
paths:
/v1/fx:
get:
operationId: fxConvert
summary: Convert currencies with official reference rates
description: ECB daily reference rates (~30 majors, since 1999), the legal US dollar peg for currencies with a sourced hard peg (for example BBD and XCD), or World Bank official annual-average rates (~90 more currencies) via a USD bridge. The response states precision (daily | annual_average | mixed | fixed_peg) and the exact method.
parameters:
- name: amount
in: query
required: true
schema:
type: number
- name: from
in: query
required: true
schema:
type: string
description: ISO 4217, e.g. USD
- name: to
in: query
required: true
schema:
type: string
description: ISO 4217, e.g. BBD
- name: date
in: query
schema:
type: string
description: YYYY-MM-DD (daily) or YYYY (annual average); omit for latest
responses:
'200':
description: Conversion with citations
content:
application/json:
schema:
type: object
required:
- amount
- from
- to
- converted_amount
- citations
properties:
amount:
type: number
from:
type: string
to:
type: string
converted_amount:
type: number
rate:
type: number
rate_decimal:
type: string
pattern: ^(0|[1-9][0-9]*)(\.[0-9]*[1-9])?$
not:
const: '0'
description: 'The rate as a decimal string, in the same direction: units of to for one unit of from. Never "0", and never a sign, exponent or trailing zero. On a direct ECB rate it is the upstream figure written out in plain notation, with the digits of its shortest round-trip form. On a computed rate (an annual average, a peg or a USD bridge) it is the exact result of the figures as received, rounded once, half to even, to 12 significant digits or 8 places, whichever keeps more. A World Bank leg enters as 1 dollar over the published units per dollar. Absent when a figure it needs is missing, infinite, or zero or less.'
rate_date:
type: string
description: 'The period the rate comes from. On a USD-bridged cross rate the two legs can be dated differently, and this is the STALEST of them: a cross rate is only as current as its oldest leg.'
legs:
type: array
description: 'Present on USD-bridged conversions: one entry per side of the bridge, with the rate used, the period it came from (null for the USD identity leg) and the publisher. On a legal fixed-peg leg, period is the date from which the cited source places the peg in force, and the leg carries a peg object. A peg leg never decides rate_date.'
items:
type: object
properties:
currency:
type: string
kind:
type: string
enum:
- identity
- peg
- ecb
- wb
description: 'identity: the US dollar itself. peg: a legal fixed peg. ecb: an ECB daily reference rate. wb: a World Bank annual average.'
usd_per_unit:
type: number
period:
type:
- string
- 'null'
source:
type: string
peg:
type: object
description: 'Present only on a legal fixed-peg leg: the parity as the issuing authority publishes it.'
properties:
parity:
type: string
effective_from:
type: string
authority:
type: string
source_url:
type: string
method:
type: string
precision:
type: string
enum:
- daily
- annual_average
- mixed
- fixed_peg
description: 'daily: ECB reference rates only. annual_average: at least one World Bank annual-average leg. mixed: an ECB daily leg with an annual-average or legal-peg leg. fixed_peg: every leg is USD or a legal fixed peg, so the conversion is exact.'
citations:
type: array
items:
$ref: '#/components/schemas/Citation'
description: 'An ARRAY, not the singular `citation` object other endpoints return: a bridged rate legitimately cites one source per currency leg. Identical-currency conversions return an empty array.'
notes:
type: array
items:
type: string
'422':
$ref: '#/components/responses/Unprocessable'
'502':
$ref: '#/components/responses/BadGateway'
'405':
$ref: '#/components/responses/MethodNotAllowed'
'400':
$ref: '#/components/responses/BadRequest'
tags:
- FX
components:
schemas:
Error:
type: object
required:
- error
properties:
error:
type: object
required:
- code
- message
properties:
code:
type: string
enum:
- invalid_parameter
- invalid_body
- invalid_request
- unknown_endpoint
- method_not_allowed
- unsupported_media_type
- unknown_indicator
- unknown_country
- no_published_data
- out_of_range
- data_gap
- primary_source_unavailable
- upstream_unavailable
- internal_error
description: Stable machine-readable code. Branch on this, not on the message.
message:
type: string
description: What went wrong and what to do instead, written for a person or an agent.
details:
type: object
additionalProperties: true
description: Structured context, e.g. suggestions, available_range, no_published_data, related_series.
Citation:
type: object
description: Every numeric payload carries one of these. Reproduce citation_text when presenting the number.
properties:
source:
type: string
dataset:
type: string
series_id:
type: string
series_name:
type: string
source_url:
type: string
api_url:
type: string
license:
type: string
attribution:
type: string
retrieved_at:
type: string
citation_text:
type: string
notices:
type: array
items:
type: string
export_formats:
type: object
description: Ready-to-paste citation strings derived from this citation's own fields, so they can never disagree with citation_text.
properties:
bibtex:
type: string
apa:
type: string
responses:
BadGateway:
description: An upstream statistical source could not be read. error.code is upstream_unavailable and the failure is usually transient, so retry.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
MethodNotAllowed:
description: Method not supported on this endpoint. The Allow header lists what is.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unprocessable:
description: The request was well formed but cannot be answered, e.g. the source does not publish this series for this economy.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Malformed, missing, unknown or repeated query parameter. The message names the parameter and lists what the route accepts.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'