NO SIGN-UPNO API KEYSPAY PER CALL · USDCBASE + SOLANA

Utility rails for
autonomous agents.

One HTTP call. From $0.002 in USDC. No accounts, no API keys — ever.
30 utility endpoints for AI agents, including the LATAM data layer no one else serves.

View endpointsAgent skill
🌎 LATAM data📄 Documents📅 Global calendar🇪🇺 EU VAT💱 Currencies✅ Validation🔳 QR codes🇨🇱 Chile deep-dive📘 Learn (Spanish)
LIVE
🇨🇱 USD/CLP 925.97 BCCh·🇦🇷 USD/ARS 1,508.5 oficial·🇦🇷 USD/ARS 1,523.5 +1% blue·🇧🇷 USD/BRL 5.0979 PTAX·🇲🇽 USD/MXN 16.8947 FIX·🇨🇴 USD/COP 3,099.48 TRM·🇵🇪 USD/PEN 3.360 SBS·

Official central-bank rates, served by /latam/fx — the endpoint is literally running on this page. Refreshes every 15 min.

30PAID ENDPOINTS
187COUNTRIES COVERED
$0.002STARTING PRICE / CALL
2NETWORKS · BASE & SOLANA

One round-trip. No setup.

AGENT
GET /fx/convert?from=USD&to=EUR&amount=100
402 Payment Required
{ "amount": "0.007 USDC", "networks": ["base", "solana"], "payTo": "…" }
AGENT
GET /fx/convert?…  X-PAYMENT: <signed payment>
200 OK  { "converted": 87.45, "source": "European Central Bank" }

USDC on Base or Solana mainnet — the payer picks · gas sponsored by the facilitator · settlement via Coinbase CDP · discoverable on the x402 Bazaar.

Subscriptions were built for humans

Agents need micropayments.

Traditional API

  1. Create an account, verify email
  2. Add a credit card, buy credits upfront
  3. Store and rotate API keys
  4. Monitor bills across providers
  5. Unused credits expire

Toolrail

  1. Call the endpoint
  2. Pay $0.002–$0.015 for that call
  3. Done — payment is the authentication
  4. One on-chain ledger, real time
  5. $0.00 when you don't use it

Built for agents like yours

🛒

Commerce & payment agents

Validate a counterparty's tax ID (7 countries), fetch the legal FX rate, compute VAT, and issue the invoice as a PDF — all mid-flow, paying cents per step.

🗂️

Back-office agents

Deadline math over real business days in 187 countries, IBAN checks before payouts, phone normalization for CRMs — the boring rails every workflow needs.

📈

LATAM fintech agents

The blue-dollar gap, central-bank indexed units (UF · UVA · UVR · UDI), SELIC and TRM — official data nobody else serves the agent economy.

Set up in one prompt

Set up https://toolrail.dev/skill.md with x402
Works with any AI agentPayments handled automaticallyNo credentials to manage

No wallet? Use MCP — free

claude mcp add --transport http toolrail https://toolrail.dev/mcp
27 tools, zero costNo wallet neededRate-limited, same data

The x402 API above is the unlimited, agent-native channel (USDC, per call). MCP is the free, rate-limited on-ramp for everyone else — same underlying tools, minus PDF/QR generation.

Endpoints & pricing

🌎 LATAM data

Official FX, rates and indices for the 6 big economies — a 650M-person region the global datasets ignore

GET /latam/indexacion 0.007 USDC

Latin American inflation-indexed units used in real contracts, mortgages and rents: UF (Chile), UVA (Argentina), UVR (Colombia), UDI (Mexico) — live official central-bank values with local-currency conversion.

example
curl "https://toolrail.dev/latam/indexacion?unidad=uva&monto=100"
GET /latam/dolar-argentina 0.007 USDC

Argentine dollar quotes in one call: oficial, blue (parallel) and euro rates plus the gap percentage — the region's most watched FX spread.

example
curl "https://toolrail.dev/latam/dolar-argentina"
GET /br/indices 0.007 USDC

Brazil's key official rates in one call: SELIC target, annualized CDI, monthly IPCA inflation and PTAX dollar — straight from Banco Central do Brasil's SGS API.

example
curl "https://toolrail.dev/br/indices"
GET /br/cep 0.002 USDC

Brazilian postal code (CEP) lookup: street, neighborhood, city, state and IBGE code for any of Brazil's 700k+ CEPs.

example
curl "https://toolrail.dev/br/cep?cep=01310-100"
GET /ar/indices 0.007 USDC

Argentina's macro pulse: latest monthly inflation, compounded year-over-year inflation, and country risk (riesgo país) in basis points.

example
curl "https://toolrail.dev/ar/indices"
GET /co/trm 0.007 USDC

Colombia's official TRM (Tasa Representativa del Mercado) — the legal COP/USD rate used for taxes and contracts, with validity dates.

example
curl "https://toolrail.dev/co/trm"
GET /pe/tipo-cambio 0.007 USDC

Peru's official SBS exchange rate (buy/sell PEN per USD) from the central bank (BCRP).

example
curl "https://toolrail.dev/pe/tipo-cambio"
GET /mx/indicadores 0.007 USDC

Mexico's official FIX dollar rate (used for obligations) and TIIE 28-day interest rate, from Banco de México.

example
curl "https://toolrail.dev/mx/indicadores"

📄 Documents

Print-ready PDFs from JSON or HTML

POST /pdf 0.01 USDC

Generate a print-ready PDF from JSON data (invoice, report, contract templates) or raw HTML. Returns application/pdf. No account or subscription needed.

example
curl -X POST https://toolrail.dev/pdf -H "Content-Type: application/json" -d '{"template":"invoice","data":{"number":"F-001","currency":"USD","tax_rate":19,"issuer":{"name":"Acme"},"client":{"name":"Client Inc"},"items":[{"description":"Consulting","quantity":2,"unit_price":150}]}}' -o invoice.pdf

📅 Global calendar

Public holidays & business-day math for 187 countries

GET /days/holidays 0.007 USDC

Official public holidays for 187 countries (any year 1975-2075): date, local and English name, nationwide vs regional flag. Chile enhanced with a curated statutory table.

example
curl "https://toolrail.dev/days/holidays?country=DE&year=2026"
GET /days/business-days 0.007 USDC

Business-day calculator for 187 countries: add N working days to a date skipping weekends and official public holidays. Essential for scheduling, deadlines and logistics.

example
curl "https://toolrail.dev/days/business-days?country=US&from=2026-08-01&days=10"

🇪🇺 EU VAT

Rates, validation and price math for 44 countries

GET /vat/rates 0.007 USDC

Current VAT rates for 44 European countries (EU-27 + UK, CH, NO...). Standard, reduced and super-reduced rates, sourced daily from the European Commission TEDB.

example
curl "https://toolrail.dev/vat/rates?country=DE"
POST /vat/validate 0.005 USDC

Validate an EU VAT number against the official European Commission VIES registry, with retries and caching for reliability. Returns validity, company name and address.

example
curl -X POST https://toolrail.dev/vat/validate -H "Content-Type: application/json" -d '{"countryCode":"IE","vatNumber":"6388047V"}'
POST /vat/price 0.007 USDC

VAT price calculator for 44 European countries: net-to-gross or gross-to-net with the current standard or reduced rate. Returns net, VAT amount and gross.

example
curl -X POST https://toolrail.dev/vat/price -H "Content-Type: application/json" -d '{"amount":100,"country":"DE","direction":"net-to-gross"}'

💱 Currencies

Official ECB reference rates since 1999

GET /fx/convert 0.007 USDC

Convert between 30+ major currencies using official European Central Bank reference rates, current or historical since 1999.

example
curl "https://toolrail.dev/fx/convert?from=USD&to=EUR&amount=100"
GET /fx/rates 0.007 USDC

Full ECB reference rate table for any base currency, current or for a historical date since 1999.

example
curl "https://toolrail.dev/fx/rates?base=USD"

✅ Validation

IBANs, phone numbers, and tax IDs for LATAM + Spain

POST /validate/iban 0.002 USDC

Validate an IBAN (international bank account number): ISO 13616 mod-97 check digits and per-country length registry for 88 countries. Returns formatted IBAN and BBAN.

example
curl -X POST https://toolrail.dev/validate/iban -H "Content-Type: application/json" -d '{"iban":"DE89 3704 0044 0532 0130 00"}'
POST /validate/phone 0.002 USDC

Validate and format phone numbers for ~240 regions (Google libphonenumber): validity, region, line type, E.164 / international / national formats.

example
curl -X POST https://toolrail.dev/validate/phone -H "Content-Type: application/json" -d '{"phone":"+56 9 6123 4567"}'
POST /validate/tax-id 0.007 USDC

Validate tax IDs across Latin America and Spain with official check-digit algorithms: Chile RUT, Argentina CUIT/CUIL, Brazil CPF and CNPJ, Mexico RFC, Peru RUC, Colombia NIT, Spain NIF/NIE. The only pan-LATAM ID validator for agents.

example
curl -X POST https://toolrail.dev/validate/tax-id -H "Content-Type: application/json" -d '{"country":"BR","id":"529.982.247-25"}'

🔳 QR codes

PNG or SVG, one call

POST /qr 0.002 USDC

Generate a QR code as PNG or SVG from any text or URL (up to 2000 chars, 64-2048 px). Pairs with the PDF endpoint for payment links and labels.

example
curl -X POST https://toolrail.dev/qr -H "Content-Type: application/json" -d '{"data":"https://toolrail.dev","format":"png","size":512}' -o qr.png

🇨🇱 Chile deep-dive

UF, IPC adjustment, business days, RUT, payroll — depth no one else serves

GET /cl/reajuste 0.01 USDC

Chilean IPC adjustment calculator: compound official monthly inflation between two months to reajust any amount — the standard calculation for rents, alimony and contracts in Chile.

example
curl "https://toolrail.dev/cl/reajuste?desde=2025-01&hasta=2025-06&monto=500000"
GET /cl/indicadores 0.007 USDC

Chilean economic indicators: UF, UTM, dolar observado, euro, IPC — current or for a given date. Official Banco Central de Chile data.

example
curl "https://toolrail.dev/cl/indicadores?indicador=uf"
GET /cl/uf 0.007 USDC

Convert amounts between UF (Unidad de Fomento) and Chilean pesos at any date. Essential for Chilean contracts, rents and insurance.

example
curl "https://toolrail.dev/cl/uf?monto=50&direccion=uf-clp"
GET /cl/dias-habiles 0.007 USDC

Chilean business-day calculator: add N working days to a date respecting national holidays. Types: administrativo (Mon-Fri) or corrido.

example
curl "https://toolrail.dev/cl/dias-habiles?desde=2026-08-01&plazo=10"
GET /cl/feriados 0.007 USDC

Official Chilean public holidays for 2026-2027 as structured JSON, including statutory moved holidays.

example
curl "https://toolrail.dev/cl/feriados?ano=2026"
POST /cl/rut 0.002 USDC

Validate and format a Chilean RUT (tax ID) including check digit (modulo 11).

example
curl -X POST https://toolrail.dev/cl/rut -H "Content-Type: application/json" -d '{"rut":"12.345.678-5"}'
POST /cl/sueldo-liquido 0.01 USDC

Chilean net salary calculator: gross to net with AFP, health, unemployment insurance and impuesto unico using live UF/UTM values and current legal brackets.

example
curl -X POST https://toolrail.dev/cl/sueldo-liquido -H "Content-Type: application/json" -d '{"bruto":1500000,"afp":"modelo"}'
GET /cl/farmacias-turno 0.007 USDC

On-duty (night shift) pharmacies in Chile by comuna, from the official MINSAL registry.

example
curl "https://toolrail.dev/cl/farmacias-turno?comuna=VALPARAISO"

📘 Learn (Spanish)

Build your own x402 API — a real-world walkthrough with the bugs we actually hit

GET /guia/pdf 7.00 USDC

PDF edition of 'Build your own x402 API' — available in Spanish, English or Portuguese (?lang=es|en|pt). A real-world walkthrough of building Toolrail: architecture, real bugs found and fixed, security checklist, discovery channels, and an honest revenue simulation. Includes a printable launch checklist. One-time purchase.

example
curl "https://toolrail.dev/guia/pdf?lang=en" -o guide-x402.pdf

Sources

European Commission TEDB (VAT, refreshed daily) · EC VIES registry · European Central Bank reference rates · Nager.Date public-holiday dataset · CMF Chile & Banco Central de Chile · MINSAL · ArgentinaDatos (UVA) · Bluelytics (dólar Argentina) · Banco de la República (UVR Colombia) · Banxico (UDI México) · Chilean statutory tables maintained by us — tax brackets defined in UTM auto-track the monthly UTM value. Machine-readable: /llms.txt · /openapi.json

FAQ

What is x402?

An open payment standard built on the HTTP 402 status code, created by Coinbase and now governed by the x402 Foundation (Google, Visa, AWS and 40+ members). APIs price each call; agents pay in stablecoins automatically, with no accounts and no human in the loop.

Do I need an account or API key?

No. Payment is the authentication. Call an endpoint, pay the quoted amount, receive the resource. Nothing to sign up for, nothing to rotate, nothing to leak.

How do agents pay?

In USDC, on Base or Solana mainnet — every 402 response offers both and the payer picks. x402 client libraries handle the whole loop (call, pay, retry) automatically, and gas is sponsored by the facilitator: the paying wallet only needs USDC.

Can I try it without paying?

Yes. Calling any paid endpoint without payment returns its price quote (the 402 challenge) for free, and the catalog (GET /), PDF template schemas (/pdf/templates), OpenAPI spec and llms.txt are all free.

What does a call cost?

Between $0.002 and $0.015 per call depending on the endpoint. No minimums, no subscriptions, no expiring credits — $0.00 when you don't use it.

Do I pay if a call fails?

No. Settlement happens only after the API successfully returns your resource. Server errors are not charged.

Where does the data come from?

Primary official sources only: European Commission TEDB and VIES, European Central Bank, Nager.Date public-holiday dataset, Banco Central de Chile / CMF, MINSAL, plus statutory tables we maintain (Chilean tax brackets are defined in UTM, so they self-track the monthly UTM value). Every data response names its source.

Can humans use it too?

Sure — any x402-enabled client or wallet works, and browsers hitting a paid endpoint get a paywall page. But the API is designed agent-first: machine-readable everything.