Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Toolrail Fx API
version: 1.0.0
description: 'Pay-per-call utility API for AI agents: PDF generation, global holidays/business days, EU VAT, ECB FX rates, IBAN/phone validation, QR codes, Chilean operational data. x402/USDC on Base & Solana.'
contact:
name: Toolrail support
email: roberto.mena.rodriguez@gmail.com
servers:
- url: https://toolrail.dev
tags:
- name: FX
paths:
/fx/convert:
get:
operationId: get_fx_convert
summary: Convert between ~30 major currencies (including BRL and MXN) using official…
description: 'Convert between ~30 major currencies (including BRL and MXN) using official European Central Bank reference rates, current or historical since 1999; for CLP, ARS, COP or PEN use /latam/fx. Use when converting an amount between major currencies at an official reference rate, today or on a past date. Price: $0.003 per call, paid in USDC via x402 (HTTP 402 flow).'
x-price-usd: $0.003
x-payment-protocol: x402
x-example: curl "https://toolrail.dev/fx/convert?from=USD&to=EUR&amount=100"
responses:
'200':
description: Resource returned after settled payment
content:
application/json:
schema:
type: object
'400':
description: Invalid request
'402':
description: Payment required — PAYMENT-REQUIRED carries the base64 x402 payment requirements
headers:
PAYMENT-REQUIRED:
schema:
type: string
description: Base64-encoded x402 payment envelope
'429':
description: Rate limit exceeded
'502':
description: Upstream data source unavailable
parameters:
- name: from
in: query
required: false
schema:
type: string
example: USD
- name: to
in: query
required: false
schema:
type: string
example: EUR
- name: amount
in: query
required: false
schema:
type: string
example: '100'
tags:
- FX
/fx/rates:
get:
operationId: get_fx_rates
summary: Full ECB reference rate table for any base currency, current or for a…
description: 'Full ECB reference rate table for any base currency, current or for a historical date since 1999. Use when you need many exchange rates at once against one base currency, today or historically. Price: $0.003 per call, paid in USDC via x402 (HTTP 402 flow).'
x-price-usd: $0.003
x-payment-protocol: x402
x-example: curl "https://toolrail.dev/fx/rates?base=USD"
responses:
'200':
description: Resource returned after settled payment
content:
application/json:
schema:
type: object
'400':
description: Invalid request
'402':
description: Payment required — PAYMENT-REQUIRED carries the base64 x402 payment requirements
headers:
PAYMENT-REQUIRED:
schema:
type: string
description: Base64-encoded x402 payment envelope
'429':
description: Rate limit exceeded
'502':
description: Upstream data source unavailable
parameters:
- name: base
in: query
required: false
schema:
type: string
example: USD
tags:
- FX