ExchangeRebel Cross-Country Statistics API
The Cross-Country Statistics API from ExchangeRebel — 5 operation(s) for cross-country statistics.
The Cross-Country Statistics API from ExchangeRebel — 5 operation(s) for cross-country statistics.
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/exchangerebel-com:exchangerebel-com-cross-country-statistics-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. 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: ExchangeRebel — pay-per-call APIs for AI agents (x402 on…
version: 1.0.0
contact:
name: 'ExchangeRebel (operator: Rebel Data)'
url: https://exchangerebel.com
email: sound.money.investing@gmail.com
x-guidance: 'All paid operations use x402 on Solana: call without payment to get a 402 challenge (SOL recipient + USDC token account + fresh memo), pay with the memo attached via the Solana Memo program, then retry with header X-Payment-Tx: <signature> and ?toll_memo=<memo>. Challenges are dual-version: the PAYMENT-REQUIRED header carries the x402 v2 PaymentRequired object and the response body carries the same challenge in x402 v1 form for compatibility. Free operations (security: []) include each service''s /health catalog with full response shapes. Prices in x-payment-info are USD per call unless the summary says otherwise (RPC is per 1,000-request block; Telegram provisioning is per bot-month; transcription is per minute of audio).'
description: '67 data and utility APIs behind x402 tolls, settled in SOL or USDC on Solana. Call a paid endpoint without payment to receive a 402 x402 challenge (recipient + fresh memo), pay with the memo attached via the Solana Memo program, then retry with the X-Payment-Tx header and toll_memo query parameter. Free catalog/health endpoints are marked without x-payment-info. Full catalogs: GET /toll/discovery and each service''s /health.'
servers:
- url: https://exchangerebel.com
tags:
- name: Cross-Country Statistics
paths:
/toll/stats/indicator:
get:
tags:
- Cross-Country Statistics
summary: Normalised indicator series for 30 countries
responses:
'200':
description: Success. Response shape is documented in the service catalog (GET /health on the service).
content:
application/json:
example:
answer:
country: CA
indicator: cpi_index
indicator_label: Consumer price index (all items)
latest_value: 169.8
latest_period: 2026-08
unit: index
frequency: monthly
points:
- period: 2026-06
value: 169.9
released_at: 2026-10-09T08:30
- period: 2026-07
value: 169.7
released_at: 2026-10-09T08:30
- period: 2026-08
value: 169.8
released_at: 2026-10-09T08:30
quarantined: []
concept:
description: All-items CPI for Canada, not seasonally adjusted.
seasonal_adjustment: not seasonally adjusted
currency: null
base_period: null
period_note: null
basis: source_published
comparability_warning: Concepts differ by country (e.g. HICP vs national CPI; modelled net earnings vs payroll averages). The concept text for each series states exactly what the office measures — compare with care.
provenance:
office: Statistics Canada
attribution: Statistics Canada
licence: Statistics Canada Open Licence (use, reproduction, sale and sublicensing permitted with source acknowledgement)
licence_url: https://www.statcan.gc.ca/en/terms-conditions/open-licence
dataset: Consumer Price Index, monthly, not seasonally adjusted (table 18-10-0004)
source_label: null
retrieved_at: '2026-10-15T12:00:00.000Z'
source_updated: 2026-10-09T08:30
staleness:
latest_period: 2026-08
latest_period_end: '2026-08-31'
age_days: 46
expected_cadence_days: 75
status: within expected cadence
envelope:
v: 1
service: stats-cross
as_of: '2026-10-15T12:00:00Z'
source: Statistics Canada (official statistics, fetched live from the office's public API)
grade: primary
max_age_seconds: 900
changes:
supported: false
'402':
description: 'Payment Required (x402). The PAYMENT-REQUIRED response header carries the x402 v2 PaymentRequired object (base64 JSON: scheme, CAIP-2 network, amount, asset, payTo, plus the bazaar discovery extension); the response body carries the same challenge in x402 v1 form for compatibility, naming the SOL recipient and USDC token account on Solana plus a fresh memo. To pay on this service''s rail: pay with the memo attached (Solana Memo program), then retry with header ''X-Payment-Tx: <transaction signature>'' and query parameter ''toll_memo=<memo>''.'
parameters:
- name: country
in: query
required: true
schema:
type: string
description: ISO alpha-2 country code
- name: indicator
in: query
required: true
schema:
type: string
description: 'Indicator id: cpi_index | cpi_yoy_pct | unemployment_rate | average_earnings | gdp_growth'
- name: periods
in: query
required: false
schema:
type: string
description: Number of periods, 1-36
x-payment-info:
protocols:
- x402
price:
mode: fixed
currency: USD
amount: '0.01'
security:
- x402Payment: []
operationId: getTollStatsIndicator
x-operation-id-source: derived
/toll/stats/trade:
get:
tags:
- Cross-Country Statistics
summary: Aggregate HS trade flows (Comext EU; StatCan CA-US)
responses:
'200':
description: Success. Response shape is documented in the service catalog (GET /health on the service).
content:
application/json:
example:
answer:
reporter: DE
partner: WORLD
flow: IMPORT
product: '27'
product_level: HS2
latest_value: 102385675877
latest_period: '2025'
unit: EUR
rows:
- period: '2025'
value: 102385675877
scope: Aggregate customs trade flow as reported by the reporter's statistical office. Never shipment-level or company-level data.
provenance:
office: Eurostat (European Commission)
attribution: Eurostat
licence: 'Eurostat reuse policy: commercial reuse permitted with source acknowledgement; named exceptions respected (EU reporters only for trade; no CN8 detail)'
licence_url: https://ec.europa.eu/eurostat/help/copyright-notice
dataset: EU trade since 1988 by HS2-4-6 and CN8 (Comext DS-045409) — CN8 detail excluded by design
source_label: EU trade since 1988 by HS2-4-6 and CN8
retrieved_at: '2026-10-15T12:00:00.000Z'
source_updated: 2026-10-14T23:00:00+0200
exception_filter: Reporter restricted to EU-27 member states; product codes capped at 6 digits (no CN8). Swiss/Liechtenstein-declared data is never served (not EU reporters).
envelope:
v: 1
service: stats-cross
as_of: '2026-10-15T12:00:00Z'
source: Eurostat (European Commission) (official statistics, fetched live from the office's public API)
grade: primary
max_age_seconds: 900
changes:
supported: false
'402':
description: 'Payment Required (x402). The PAYMENT-REQUIRED response header carries the x402 v2 PaymentRequired object (base64 JSON: scheme, CAIP-2 network, amount, asset, payTo, plus the bazaar discovery extension); the response body carries the same challenge in x402 v1 form for compatibility, naming the SOL recipient and USDC token account on Solana plus a fresh memo. To pay on this service''s rail: pay with the memo attached (Solana Memo program), then retry with header ''X-Payment-Tx: <transaction signature>'' and query parameter ''toll_memo=<memo>''.'
parameters:
- name: reporter
in: query
required: true
schema:
type: string
description: 'Reporter: EU-27 ISO alpha-2 or CA'
- name: flow
in: query
required: true
schema:
type: string
description: IMPORT | EXPORT
- name: product
in: query
required: false
schema:
type: string
description: TOTAL or HS2/HS4/HS6 code (EU reporters)
- name: partner
in: query
required: false
schema:
type: string
description: WORLD | INT_EU27_2020 | EXT_EU27_2020 | ISO alpha-2
- name: period
in: query
required: false
schema:
type: string
description: YYYY or YYYY-MM
- name: hs_section
in: query
required: false
schema:
type: string
description: 'StatCan CA-US only: HS section I-XXI or TOTAL'
- name: periods
in: query
required: false
schema:
type: string
description: 'StatCan only: number of periods, 1-24'
x-payment-info:
protocols:
- x402
price:
mode: fixed
currency: USD
amount: '0.02'
security:
- x402Payment: []
operationId: getTollStatsTrade
x-operation-id-source: derived
/toll/stats/catalog:
get:
tags:
- Cross-Country Statistics
summary: 'Coverage matrix: countries, indicators, trade scope'
responses:
'200':
description: Success. Response shape is documented in the service catalog (GET /health on the service).
security: []
operationId: getTollStatsCatalog
x-operation-id-source: derived
/toll/stats/schema:
get:
tags:
- Cross-Country Statistics
summary: Request/response schema + validation rules
responses:
'200':
description: Success. Response shape is documented in the service catalog (GET /health on the service).
security: []
operationId: getTollStatsSchema
x-operation-id-source: derived
/toll/stats/health:
get:
tags:
- Cross-Country Statistics
summary: Check the cross-country statistics service status
responses:
'200':
description: Success. Response shape is documented in the service catalog (GET /health on the service).
security: []
operationId: getTollStatsHealth
x-operation-id-source: derived
components:
securitySchemes:
x402Payment:
type: apiKey
in: header
name: X-Payment-Tx
description: 'x402 toll payment proof: the Solana transaction signature of a payment carrying the memo from the 402 challenge; send together with ?toll_memo=<memo>. Payment itself is made on-chain in SOL or USDC to the recipient named in the challenge.'