{"x402Version":2,"kind":"resource-server","name":"Spain Agent Toolkit","description":"Pay-per-call Spain and EU utilities for AI agents: EU VAT (VIES) validation, EU B2B invoice pre-check (single and batch), EU day-ahead electricity prices, Spanish PVPC prices, BOE search, business days, public holidays, NIF/NIE/CIF and IBAN validation. USDC on Base via x402; charged only on HTTP 200. Sister API for Mexico: https://mx.redtapeapi.com/llms.txt","resources":[{"url":"https://es.redtapeapi.com/v1/es/electricity/pvpc","method":"GET","methods":["GET"],"description":"Spain's regulated household electricity price (PVPC, peninsula) for today or tomorrow, hour by hour, with the cheapest hours and the cheapest 2h/3h windows. Use when an agent must schedule appliances/EV charging or answer 'when is electricity cheapest in Spain today/tomorrow'. Data: Preciluz (preciluz.com, CC-BY-4.0) from REE/ESIOS.","mimeType":"application/json","price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0d04a5c463b145dab8a5a8cde22538e1bfa09e98","amount":"2000","maxTimeoutSeconds":60}]},{"url":"https://es.redtapeapi.com/v1/es/boe/search","method":"GET","methods":["GET"],"description":"Search the daily summary of Spain's Official State Gazette (BOE) for a date by keywords and section: new laws, royal decrees, orders, grants, tenders (section 5A), public-exam calls (2B). Returns titles, issuing body and official PDF/HTML links. Use to monitor Spanish regulation or tenders. Source: BOE open data API.","mimeType":"application/json","price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0d04a5c463b145dab8a5a8cde22538e1bfa09e98","amount":"2000","maxTimeoutSeconds":60}]},{"url":"https://es.redtapeapi.com/v1/es/business-days","method":"GET","methods":["GET"],"description":"Count Spanish business days between two dates (inclusive), excluding weekends and national plus regional public holidays. Use for legal/administrative deadlines, delivery estimates or payroll in Spain.","mimeType":"application/json","price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0d04a5c463b145dab8a5a8cde22538e1bfa09e98","amount":"2000","maxTimeoutSeconds":60}]},{"url":"https://es.redtapeapi.com/v1/es/holidays","method":"GET","methods":["GET"],"description":"Spanish public holidays for a year: national ones plus those of a region (comunidad autónoma) if given. Computed offline from the date-holidays dataset (CC-BY-3.0); local (municipal) holidays are not included.","mimeType":"application/json","price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0d04a5c463b145dab8a5a8cde22538e1bfa09e98","amount":"2000","maxTimeoutSeconds":60}]},{"url":"https://es.redtapeapi.com/v1/es/tax-id/validate","method":"GET","methods":["GET"],"description":"Validate a Spanish tax ID (DNI/NIF, NIE or company CIF) by format and control character, offline. Does not look the ID up anywhere and stores nothing. Use before issuing invoices or onboarding Spanish customers.","mimeType":"application/json","price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0d04a5c463b145dab8a5a8cde22538e1bfa09e98","amount":"2000","maxTimeoutSeconds":60}]},{"url":"https://es.redtapeapi.com/v1/iban/validate","method":"GET","methods":["GET"],"description":"Validate an IBAN (length per country + mod-97 checksum; for Spain also the national DC check digits) offline. Stores nothing. Use before SEPA payments or invoices.","mimeType":"application/json","price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0d04a5c463b145dab8a5a8cde22538e1bfa09e98","amount":"2000","maxTimeoutSeconds":60}]},{"url":"https://es.redtapeapi.com/v1/eu/vat/validate","method":"GET","methods":["GET"],"description":"Validate an EU VAT number live against the European Commission's VIES service (all EU member states plus XI, Northern Ireland), after an offline format check. Returns valid/invalid plus the registered name and address when the member state discloses them. If VIES is down for that country you get HTTP 503 and are not charged. Use before zero-rating an intra-EU invoice or onboarding an EU business customer. Countries: AT,BE,BG,CY,CZ,DE,DK,EE,EL,ES,FI,FR,HR,HU,IE,IT,LT,LU,LV,MT,NL,PL,PT,RO,SE,SI,SK,XI.","mimeType":"application/json","price":{"mode":"fixed","currency":"USD","amount":"0.003000"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0d04a5c463b145dab8a5a8cde22538e1bfa09e98","amount":"3000","maxTimeoutSeconds":60}]},{"url":"https://es.redtapeapi.com/v1/eu/invoice/precheck","method":"GET","methods":["GET","POST"],"description":"One-call EU B2B invoice pre-check before paying or issuing an invoice: live VIES VAT validation (name/address when available), IBAN validation for every IBAN country, VAT-country vs IBAN-country match (a common invoice-fraud signal), optional Spanish NIF/NIE/CIF check, and the due date (issue date + term) moved to the next business day using that country's public holidays, with a Late Payment Directive warning for terms over 60 days. Returns verdict ok/review/fail with reasons. If VIES is down the call still succeeds with vies.status=unavailable and verdict=review. GET with query params or POST a JSON object.","mimeType":"application/json","price":{"mode":"fixed","currency":"USD","amount":"0.015000"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0d04a5c463b145dab8a5a8cde22538e1bfa09e98","amount":"15000","maxTimeoutSeconds":60}]},{"url":"https://es.redtapeapi.com/v1/eu/invoice/precheck/batch","method":"POST","methods":["POST"],"description":"Batch EU invoice pre-check: POST {\"items\":[...]} with up to 50 invoices (same fields as /v1/eu/invoice/precheck; at most 40 distinct VAT numbers, duplicates are checked once). Price is $0.005 per item, computed from the body you send (1 item = $0.005, 50 items = $0.25); the 402 challenge shows the exact total. Returns per-item verdicts plus a summary.","mimeType":"application/json","price":{"mode":"dynamic","currency":"USD","perItem":"0.005000","min":"0.005000","max":"0.250000","basis":"body.items.length"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0d04a5c463b145dab8a5a8cde22538e1bfa09e98","amount":"5000","amountBasis":"per item in body.items; the 402 for your request shows the exact total","maxTimeoutSeconds":60}]},{"url":"https://es.redtapeapi.com/v1/eu/electricity/day-ahead","method":"GET","methods":["GET"],"description":"European wholesale day-ahead electricity prices (EUR/MWh, SDAC auction) for a bidding zone, today or tomorrow, aggregated to clock hours (Europe/Berlin time), with min/max/average, the cheapest N hours and the cheapest window of N consecutive hours. Use to schedule EV charging, batteries, heat pumps or flexible loads. Zones: AT, BE, CH, CZ, DE-LU, DK1, DK2, FR, HU, IT-North, NL, NO2, PL, SE4, SI. Tomorrow is usually published ~13:00 CET; before that you get 404 and are not charged. Data: Energy-Charts.info (Fraunhofer ISE), CC BY 4.0. For Spain's retail PVPC use /v1/es/electricity/pvpc.","mimeType":"application/json","price":{"mode":"fixed","currency":"USD","amount":"0.002000"},"accepts":[{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0x0d04a5c463b145dab8a5a8cde22538e1bfa09e98","amount":"2000","maxTimeoutSeconds":60}]}],"free":["https://es.redtapeapi.com/status/vies","https://es.redtapeapi.com/status/free-tier","https://es.redtapeapi.com/openapi.json","https://es.redtapeapi.com/llms.txt","https://es.redtapeapi.com/health"],"freeTier":{"perClientDaily":20,"window":"UTC day","resources":[{"url":"https://es.redtapeapi.com/free/v1/es/electricity/pvpc","method":"GET","paidEquivalent":"https://es.redtapeapi.com/v1/es/electricity/pvpc"},{"url":"https://es.redtapeapi.com/free/v1/es/boe/search","method":"GET","paidEquivalent":"https://es.redtapeapi.com/v1/es/boe/search"}],"whenExhausted":"HTTP 402 with the x402 challenge of the paid route","mcp":"https://es.redtapeapi.com/mcp","unifiedMcp":{"name":"com.redtapeapi/redtape","url":"https://mcp.redtapeapi.com/mcp","note":"One MCP server with the free tools of the Spain, Mexico and Colombia toolkits"}},"openapi":"https://es.redtapeapi.com/openapi.json","llms":"https://es.redtapeapi.com/llms.txt","docs":"https://es.redtapeapi.com/llms.txt","payment":{"protocol":"x402","x402Version":2,"network":"eip155:8453","asset":{"address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","symbol":"USDC","decimals":6},"payTo":"0x0d04a5c463b145dab8a5a8cde22538e1bfa09e98","facilitator":"https://facilitator.payai.network","chargedOnlyOn":"HTTP 200"},"related":[{"name":"Mexico Agent Toolkit (RFC / SAT 69-B)","url":"https://mx.redtapeapi.com/llms.txt","origin":"https://mx.redtapeapi.com"},{"name":"Colombia Agent Toolkit (NIT / RUES)","url":"https://co.redtapeapi.com/llms.txt","origin":"https://co.redtapeapi.com"}],"canonical":"https://es.redtapeapi.com","attestation":{"type":"none"},"updated":"2026-10-29T00:00:00Z"}