latamrefCountries › API

Working days between two dates

Counts working days across a date range, applying that country's weekend convention and its statutory public holidays — including regional calendars where a subdivision is given. Refuses free, with the covered period stated, rather than counting past the years we hold.

This endpoint takes a POST, because it computes an answer from values you supply — there is nothing to fetch at this URL. You are seeing this page because your browser asked for HTML; an API client gets a 405 with the same information as JSON.

Call it

curl -X POST https://latamref.dev/v1/answers/working-days \
  -H 'content-type: application/json' \
  -d '{"country":"za","from":"2026-01-01","to":"2026-01-31"}'

Body fields: country, from, to, subdivision

Paid per call over x402 (USDC on Base) — no key, no signup. Invalid input and questions we cannot answer well are refused free, before the payment gate: you never pay to fail.

What sits behind the answer

Every computed answer is arithmetic on cited reference data. The underlying values each carry their official source, an effective date and a last-verified date, and each declares how it was obtained — see the country pages and source provenance. Results are labelled basis: "computed" and are not tax, legal or financial advice.

Free to inspect

/catalog — every country and series held · /llms.txt — endpoints, prices and example bodies · /openapi.json · /accuracy — where reference data is wrong, including ours