{"uid":"cap_Edfbdc0bABTIIfnErL-8W","slug":"spain-business-days-calculator-f98fdb9d","name":"Spain Business Days Calculator","description":"Pay-per-call Spain utilities for AI agents over x402 (USDC). No accounts, no API keys. Public open data and offline computation only; nothing is stored.","url":"https://spain-agent-toolkit.spain-agent-toolkit.workers.dev/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.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wClRn-cdZp90nCe5Ry-IW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the number of business days, weekend days, and public holidays between two dates in Spain, with optional regional filtering.","exampleAgentPrompt":"How many business days are there in Spain's Catalonia region from December 1 to December 31, 2026?","exampleUseCases":[{"title":"Project deadline planning in Spain","prompt":"I need to know how many business days there are between January 15 and March 31, 2026 in Madrid — including how many holidays fall on weekdays so I can plan my project timeline accurately."},{"title":"Payroll processing for Spanish employees","prompt":"How many working days are there in February 2026 in the Basque Country? I need to calculate payroll for our Spanish office."},{"title":"SLA calculation for Spanish contracts","prompt":"We have a contract with a 30-business-day delivery window starting November 1, 2026 in Andalusia — how many calendar days does that actually span, and how many of those are business days?"}],"resultDescription":"A JSON object containing the queried date range (from/to), the optional region code, the count of business days, the count of weekend days, and the count of public holidays that fall on weekdays within the specified period.","failureModes":["Missing required 'from' or 'to' query parameters returns an error","Invalid date format (non-YYYY-MM-DD) causes a parse error","Invalid or unsupported region code returns an error","Date range where 'to' is before 'from' may return an error or zero counts","Payment failure via x402 protocol prevents access to the endpoint"],"whenToPreferThis":"Use this endpoint when you need accurate Spanish business day counts that account for both national and regional public holidays. It is ideal for scheduling, SLA calculations, payroll, or project planning involving Spanish dates. Prefer this over generic date-math libraries because it incorporates Spain-specific public holiday data by region, covering all 19 autonomous communities and cities. No API key or account setup is required — pay per call via USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:32:59.942Z","isFirstParty":false,"canonicalSlug":"spain-business-days-calculator-f98fdb9d"}