{"uid":"cap_ZhgTD960Glsptaw47j8mM","slug":"latamref-dev-working-days-government-reference-data-f0a30c0f","name":"latamref.dev Working Days / Government Reference Data","description":"Working days in a date range: weekends + public holidays applied, next working day","url":"https://latamref.dev/v1/answers/working-days?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["country","from","to"],"properties":{"to":{"type":"string","format":"date","description":"Range end, inclusive (max 366 days)"},"from":{"type":"string","format":"date","description":"Range start, inclusive"},"country":{"enum":["ar","bb","bo","br","bz","cl","co","cr","do","ec","gt","gy","hn","jm","mx","ni","pa","pe","py","sv","tt","uy"],"type":"string","description":"ISO country code"},"receipt":{"type":"boolean","description":"Optional. true adds an Ed25519 answer receipt on a paid 200, incluedd in this price. Not a certified extract."},"subdivision":{"type":"string","description":"Optional. Apply a sub-national statutory holiday calendar (national + that region's days) instead of national-only. ISO 3166-2 code, e.g. 'DE-BY'. Countries that offer regions expose them as `subdivisions` on GET /:country/public-holidays. Unknown code is refused free with the list."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["status","total_days","working_days","next_working_day"],"properties":{"status":{"type":"string"},"caveats":{"type":"array"},"receipt":{"type":"object","description":"Only when receipt=true on a paid 200. kind answer_receipt. Verify at /certified/public-key."},"weekend":{"type":"array","description":"This country's weekly rest days (Egypt: Fri–Sat)"},"disclaimer":{"type":"string"},"provenance":{"type":"object","description":"The statutory instrument the answer rests on: effective_from, last_confirmed, official source URL, notes"},"total_days":{"type":"integer"},"subdivision":{"type":["object","null"],"description":"The sub-national calendar applied (code, name, source, the region's added days), or null when the national calendar was used"},"weekend_days":{"type":"integer"},"working_days":{"type":"integer"},"public_holidays":{"type":"array","description":"Statutory holidays falling on weekdays in the range"},"next_working_day":{"type":"string","format":"date"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_I4NInWypg6VlvezwaZKKi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current government reference data (policy rate, VAT, minimum wage, public holidays, CPI, corporate tax, or income tax) for a specified Latin American country","exampleAgentPrompt":"What's the current VAT rate in Mexico right now — can you pull the latest official figure from latamref, including whether the data is still fresh?","exampleUseCases":null,"resultDescription":"A JSON object containing the country code, series identifier, current value (a number for rates/wages or an array of date+name objects for holiday calendars), the effective-from date, last-confirmed date, source name and URL, unit, optional notes, a staleness boolean flag, and optional breakdown of composite rate components.","failureModes":["Invalid or unsupported country code returns an error (supported: ar, br, cl, co, cr, do, ec, gt, mx, pe, py, uy)","Invalid or unsupported series name returns an error (supported: policy-rate, vat, minimum-wage, public-holidays, cpi, corporate-tax, income-tax)","stale:true flag indicates data is past its expected update cycle and should be treated with caution","Payment failure (x402) if USDC payment of $0.005 is not provided or is rejected","Network timeout or service unavailability"],"whenToPreferThis":"Use this endpoint when you need authoritative, up-to-date government reference data for Latin American countries — specifically one of the 12 supported nations and one of the 7 defined series. Prefer this over general web search when you need structured, machine-readable output with source attribution and freshness metadata. Ideal for financial, compliance, or policy applications requiring official fiscal and monetary figures.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T00:33:06.347Z","isFirstParty":false,"canonicalSlug":"latamref-dev-working-days-government-reference-data-f0a30c0f"}