{"uid":"cap_6q9oAkw_FBkAAqNPRDmCO","slug":"spain-business-days-calculator-6275b15b","name":"Spain Business Days Calculator","description":"Pay-per-call Spain and EU utilities for AI agents over x402 (USDC). No accounts, no API keys. Public open data, live official checks (EU VIES) and offline computation; nothing is stored.","url":"https://es.redtapeapi.com/v1/es/business-days?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["from","to"],"properties":{"to":{"type":"string","description":"YYYY-MM-DD"},"from":{"type":"string","description":"YYYY-MM-DD"},"region":{"type":"string","description":"Optional ISO 3166-2 region: ES-AN,ES-AR,ES-AS,ES-CB,ES-CE,ES-CL,ES-CM,ES-CN,ES-CT,ES-EX,ES-GA,ES-IB,ES-MC,ES-MD,ES-ML,ES-NC,ES-PV,ES-RI,ES-VC"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"2026-12-31","from":"2026-12-01","region":"ES-CT","weekendDays":8,"businessDays":19,"holidaysOnWeekdays":4}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pzIxZSvCf_uW3NHC2Zv3A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Counts business days, weekend days, and public holidays between two dates for Spain nationally or by autonomous community region.","exampleAgentPrompt":"How many business days are there in Catalonia (ES-CT) between December 1 and December 31, 2026, accounting for Spanish public holidays?","exampleUseCases":[{"title":"Project deadline planning for Spanish office","prompt":"How many business days do we have between January 15 and March 31, 2025 in Madrid (ES-MD)? I need to plan a project timeline accounting for local public holidays."},{"title":"Invoice payment window calculation","prompt":"If I issue an invoice today (June 1, 2025) with 30 business days payment terms, how many calendar days does that cover in Andalusia (ES-AN)? First tell me how many business days fall between June 1 and July 31, 2025 in ES-AN."},{"title":"HR leave planning in Basque Country","prompt":"How many working days and public holidays are there in the Basque Country (ES-PV) during August 2025? I'm scheduling employee leave."}],"resultDescription":"A JSON object containing the requested date range (from/to), the optional region code, the total number of business days, the number of weekend days, and the number of public holidays that fall on weekdays within the range — all computed offline using official Spanish holiday data.","failureModes":["Missing required 'from' or 'to' query parameters returns a validation error","Invalid date format (not YYYY-MM-DD) causes a parse error","Invalid or unrecognized region code returns an error","Date range where 'from' is after 'to' may return zero or an error","Payment failure via x402 (insufficient USDC) blocks the call"],"whenToPreferThis":"Use this endpoint when you need an authoritative count of Spanish business days that respects both national and regional autonomous community public holidays. Prefer it over generic calendar libraries when accuracy for specific Spanish regions (e.g. Catalonia, Basque Country, Andalusia) matters, or when building workflows that must comply with Spanish labor law payment/delivery timelines. No API key or account setup required — pay-per-call with USDC via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-18T00:51:29.061Z","isFirstParty":false,"canonicalSlug":"spain-business-days-calculator-6275b15b"}