{"service":"Toolrail","description":"Utility API for AI agents: PDF generation, public holidays and business days for 187 countries, EU VAT, ECB FX rates, IBAN/phone validation, QR codes and Chilean operational data. Pay per call via x402 (USDC on Base / Solana). No API keys, no subscriptions.","payments":{"protocol":"x402","mode":"mainnet"},"endpoints":[{"route":"POST /pdf","price":"$0.01","description":"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"},{"route":"GET /vat/rates","price":"$0.003","description":"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\""},{"route":"POST /vat/validate","price":"$0.005","description":"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\"}'"},{"route":"POST /vat/price","price":"$0.003","description":"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\"}'"},{"route":"GET /fx/convert","price":"$0.003","description":"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\""},{"route":"GET /fx/rates","price":"$0.003","description":"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\""},{"route":"GET /days/holidays","price":"$0.003","description":"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\""},{"route":"GET /days/business-days","price":"$0.003","description":"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\""},{"route":"POST /validate/iban","price":"$0.002","description":"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\"}'"},{"route":"POST /validate/phone","price":"$0.002","description":"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\"}'"},{"route":"POST /validate/tax-id","price":"$0.003","description":"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\"}'"},{"route":"GET /latam/indexacion","price":"$0.003","description":"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\""},{"route":"GET /latam/dolar-argentina","price":"$0.003","description":"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\""},{"route":"GET /latam/fx","price":"$0.01","description":"All official LATAM exchange rates against USD in ONE call: Chilean peso (central bank), Argentine oficial+blue with gap, Brazilian real (PTAX), Mexican peso (FIX), Colombian peso (legal TRM) and Peruvian sol (SBS). The region's FX aggregator no one else serves.","example":"curl \"https://toolrail.dev/latam/fx\""},{"route":"GET /br/indices","price":"$0.003","description":"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\""},{"route":"GET /br/cep","price":"$0.002","description":"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\""},{"route":"GET /ar/indices","price":"$0.003","description":"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\""},{"route":"GET /co/trm","price":"$0.003","description":"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\""},{"route":"GET /pe/tipo-cambio","price":"$0.003","description":"Peru's official SBS exchange rate (buy/sell PEN per USD) from the central bank (BCRP).","example":"curl \"https://toolrail.dev/pe/tipo-cambio\""},{"route":"GET /mx/indicadores","price":"$0.003","description":"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\""},{"route":"GET /cl/reajuste","price":"$0.01","description":"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\""},{"route":"POST /qr","price":"$0.002","description":"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"},{"route":"GET /cl/indicadores","price":"$0.003","description":"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\""},{"route":"GET /cl/uf","price":"$0.003","description":"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\""},{"route":"GET /cl/dias-habiles","price":"$0.003","description":"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\""},{"route":"GET /cl/feriados","price":"$0.003","description":"Official Chilean public holidays for 2026-2027 as structured JSON, including statutory moved holidays.","example":"curl \"https://toolrail.dev/cl/feriados?ano=2026\""},{"route":"POST /cl/rut","price":"$0.002","description":"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\"}'"},{"route":"POST /cl/sueldo-liquido","price":"$0.01","description":"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\"}'"},{"route":"GET /cl/farmacias-turno","price":"$0.003","description":"On-duty (night shift) pharmacies in Chile by comuna, from the official MINSAL registry.","example":"curl \"https://toolrail.dev/cl/farmacias-turno?comuna=VALPARAISO\""},{"route":"GET /guia/pdf","price":"$7.00","description":"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"}],"free_endpoints":["GET /","GET /health","GET /pdf/templates","GET /openapi.json","GET /llms.txt","GET /skill.md"],"docs":"https://toolrail.dev/pdf/templates","openapi":"https://toolrail.dev/openapi.json"}