Guide · Chile utilities
Chile public holidays API: 2026 holidays, business days between dates and RUT validation as JSON
How to get Chile's public holidays from your code or an AI agent: which holidays fall in 2026, which are mandatory days off, how to check whether a date is a holiday, how many business days lie between two dates and when a deadline falls, as clean JSON with Better Llama's MCP tool, with no key.
What are Chile's public holidays and who sets them?
Chile's public holidays are set by law: each one has its own statute (for example Law 2,977 for several historical and religious holidays, or Law 21,357 for the National Day of Indigenous Peoples). Some are mandatory days off for retail under Law 19,973: in 2026, January 1, May 1, September 18 and 19, and December 25.
Computing them by hand has traps. Holy Week depends on the date of Easter; Saint Peter and Saint Paul and the Encuentro de Dos Mundos move to a Monday under Law 19,668; the Indigenous Peoples' day falls on the winter solstice; and some holidays apply only in one region or commune, such as June 7 in Arica y Parinacota or August 20 in Chillán and Chillán Viejo. Election days are also holidays (Law 18,700), and December 31 is a holiday for banks only.
So to count business days, work out a legal deadline or schedule deliveries, it pays to query a source that already applies those rules instead of keeping a fixed list in your code.
Better Llama's holidays tool (over MCP)
Our Holidays, business days and RUT tool, chile_calendar_and_rut, computes Chile's public holidays from the laws that establish them and returns the result ready to use:
- National, regional and local holidays from 2022 to 2035, with name, type, scope, legal basis and whether they are mandatory days off.
- Whether one or more dates are a holiday, a weekend or a business day, applying the region or commune you give.
- Business days between two dates and the date after adding or subtracting business days, optionally counting Saturdays as business days (details, legal deadlines and edge cases in the Chile business days API guide).
- Regions, provinces and communes with their CUT code (details in the Chile communes API guide), and RUT validation or check-digit calculation.
It is computed locally by the server, so it does not depend on another website being up. Use it as an MCP tool from Claude, Cursor or other agents, or over HTTP with JSON-RPC from any language.
Step by step: get holidays and business days
Step 1. Choose the operation
The operation argument sets what to compute: feriados (holidays), es_feriado (is it a holiday), dias_habiles (business days), sumar_dias_habiles (add business days), regiones, provincias, comunas or validar_rut. These are Chile's 2026 public holidays as the tool returns them for {"operation": "feriados", "years": ["2026"]} (names come in Spanish):
| Date (2026) | Holiday | Scope |
|---|---|---|
| Año Nuevo | national, mandatory day off | |
| Viernes Santo | national | |
| Sábado Santo | national | |
| Día Nacional del Trabajo | national, mandatory day off | |
| Día de las Glorias Navales | national | |
| Asalto y Toma del Morro de Arica | regional (Arica y Parinacota) | |
| Día Nacional de los Pueblos Indígenas | national | |
| San Pedro y San Pablo | national | |
| Día de la Virgen del Carmen | national | |
| Asunción de la Virgen | national | |
| Nacimiento del Prócer de la Independencia (Bernardo O'Higgins) | local (Chillán and Chillán Viejo) | |
| Independencia Nacional | national, mandatory day off | |
| Día de las Glorias del Ejército | national, mandatory day off | |
| Encuentro de Dos Mundos | national | |
| Día Nacional de las Iglesias Evangélicas y Protestantes | national | |
| Día de Todos los Santos | national | |
| Inmaculada Concepción | national | |
| Navidad | national, mandatory day off |
With no region, the list includes regional and local holidays, marked with scope «regional». If you give a region or commune, only the ones that apply there are used.
Step 2. Connect the MCP server
Use the MCP https://mcp.betterllama.com/mcp in your client or call it over HTTP with JSON-RPC, as in the examples. This tool needs no key, and no account or sign-up is required during the beta.
Step 3. Build your query
| Parameter | What it does |
|---|---|
years | Years to list with feriados (2022 to 2035). Empty = current year |
fromDate / toDate | Range (YYYY-MM-DD, inclusive) for dias_habiles or to filter feriados |
dates | Dates to check with es_feriado. Empty = today, Chile time |
startDate / businessDays | For sumar_dias_habiles: start date (counting starts the next day) and business days to add (negative = subtract) |
region / comuna | Applies regional or local holidays. Region by code (13), abbreviation (RM) or name; commune by name or CUT code |
includeBank | Counts December 31, a bank-only holiday (off by default) |
saturdayIsBusinessDay | Counts Saturdays as business days, for deadlines that include them |
ruts | RUTs to check with validar_rut (up to 5,000), with or without dots and hyphen |
Real example: August 20, 2026 is a holiday with "comuna": "Chillán", but a business day with no commune. December 31, 2026 is a business day by default and a bank holiday with "includeBank": true.
Step 4. Call the tool with curl
A JSON-RPC POST returns the result as JSON. This call counts the business days in December 2026:
curl -s https://mcp.betterllama.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "chile_calendar_and_rut", "arguments": {"operation": "dias_habiles", "fromDate": "2026-12-01", "toDate": "2026-12-31"}}}'The same in Python
The holidays left in 2026, the business days in December and a 10-business-day deadline:
import json
import requests
URL = "https://mcp.betterllama.com/mcp"
HEADERS = {"Accept": "application/json, text/event-stream"}
def call(arguments):
body = {"jsonrpc": "2.0", "id": 1, "method": "tools/call",
"params": {"name": "chile_calendar_and_rut", "arguments": arguments}}
resp = requests.post(URL, json=body, headers=HEADERS, timeout=60)
resp.raise_for_status()
return json.loads(resp.json()["result"]["content"][0]["text"])
holidays = call({"operation": "feriados", "fromDate": "2026-11-21", "toDate": "2026-12-31"})
for f in holidays["results"]:
print(f["date"], f["weekday"], f["name"])
business = call({"operation": "dias_habiles", "fromDate": "2026-12-01", "toDate": "2026-12-31"})
print("Business days in December:", business["results"][0]["businessDays"])
deadline = call({"operation": "sumar_dias_habiles", "startDate": "2026-12-15", "businessDays": 10})
print("10 business days after Dec 15:", deadline["results"][0]["resultDate"])Real output (November 21, 2026, 12:27 Chile time; weekday and holiday names come in Spanish):
2026-12-08 martes Inmaculada Concepción
2026-12-25 viernes Navidad
Business days in December: 21
10 business days after Dec 15: 2026-12-30From JavaScript or any other language, a POST with the same JSON-RPC body is all you need (for example, with fetch).
Validate a RUT
The same tool checks the RUT (Chilean tax ID) check digit with the modulo 11 algorithm, without looking up any personal data. With the arguments {"operation": "validar_rut", "ruts": ["76.086.428-5", "12.345.678-9"]}, the real results are:
[{"input": "76.086.428-5", "valid": true, "body": 76086428, "dv": "5", "expectedDv": "5",
"normalized": "76086428-5", "formatted": "76.086.428-5", "personType": "persona_juridica"},
{"input": "12.345.678-9", "valid": false, "body": 12345678, "dv": "9", "expectedDv": "5",
"personType": "persona_natural", "error": "dígito verificador incorrecto"}]Accepted formats, common errors, computing the check digit and batch validation: Chile RUT validation API guide.
Use the holidays API from an AI agent (MCP)
Add the Better Llama MCP server to your client (Claude, Cursor, VS Code or any other client with remote MCP). One MCP brings chile_calendar_and_rut and the rest of the catalog, with no sign-up during the beta.
{
"mcpServers": {
"better-llama": {
"url": "https://mcp.betterllama.com/mcp"
}
}
}claude mcp add --transport http better-llama https://mcp.betterllama.com/mcpSetup for Claude, Codex, Gemini CLI, Windsurf, VS Code and other clients: connect your agent.
Ready-to-run Python and Node.js examples, with config files for each client: examples repository on GitHub.
Then ask, for example: “What date is 10 business days after December 15, 2026 in Chile? Take public holidays into account.”
Beta: free and with no sign-up while we test the service.
Which fields it returns
With feriados, each row in results has date, weekday, name, type (civil or religious), scope (national or regional), irrenunciable (mandatory day off) and legalBasis; regional ones add regionCode, comunaCodes and a note. With es_feriado, each date has isHoliday, isWeekend, isBusinessDay and the holidays that fall that day. The response also includes count, warnings, attribution, source and retrievedAt.
Real, complete response to the curl call above (November 21, 2026, 12:23 Chile time). December 2026 has 31 days, 21 business days, 8 weekend days and 2 holidays on weekdays:
{
"tool": "chile_calendar_and_rut",
"count": 1,
"results": [
{
"kind": "dias_habiles",
"fromDate": "2026-12-01",
"toDate": "2026-12-31",
"calendarDays": 31,
"businessDays": 21,
"weekendDays": 8,
"holidaysOnWorkdays": 2,
"holidays": [
"2026-12-08 Inmaculada Concepción",
"2026-12-25 Navidad"
],
"saturdayIsBusinessDay": false,
"source": "Cálculo local según la legislación chilena (Código del Trabajo y leyes citadas en legalBasis); fechas electorales según Ley 18.700."
}
],
"warnings": [],
"stopReason": "completed",
"attribution": "Calculado por Better Llama a partir de leyes de feriados y la División Político-Administrativa publicadas por el Estado de Chile.",
"source": "https://betterllama.com/",
"retrievedAt": "2026-11-21T15:23:35.585Z"
}Pricing
Free during the beta, with no sign-up and a limit of 60 requests per minute per IP. If paid plans come later, we will announce them on betterllama.com first. This tool needs no key.
Frequently asked questions
Is there an API for Chile's public holidays?
Yes. Better Llama's chile_calendar_and_rut tool returns Chile's public holidays from 2022 to 2035 as JSON, over MCP or JSON-RPC, with no key. It covers national, regional and local holidays, with their legal basis and whether they are mandatory days off.
How many public holidays does Chile have in 2026?
According to the tool, 16 national holidays, plus 2 that apply only in part of the country: June 7 in the Arica y Parinacota region and August 20 in Chillán and Chillán Viejo. Several fall on a weekend, such as June 21 and November 1 (Sunday).
Which 2026 holidays are mandatory days off?
January 1, May 1, September 18 and 19, and December 25, under Law 19,973. Every holiday carries the irrenunciable field in the answer.
How do I count business days between two dates in Chile?
Call chile_calendar_and_rut with operation «dias_habiles», fromDate and toDate. It excludes weekends and holidays; for example, December 2026 has 21 business days. If your deadline counts Saturdays, use saturdayIsBusinessDay.
How do I add business days to a date?
Use operation «sumar_dias_habiles» with startDate and businessDays. Counting starts the day after startDate: 10 business days after December 15, 2026 is Wednesday, December 30.
Is December 31 a holiday in Chile?
Only for banks. By default the tool treats it as a business day; with includeBank it counts it as a bank holiday.
Do I need a key for the holidays API?
No. It is computed locally by the Better Llama server, free during the beta, with a limit of 60 requests per minute per IP.
Can I validate a RUT with the same API?
Yes. With operation «validar_rut» and up to 5,000 RUTs per call, the tool checks the check digit and returns the normalized and formatted RUT. It does not look up who the RUT belongs to.
Can I use the holidays API from Claude, Cursor or another AI agent?
Yes. Add the Better Llama MCP server (https://mcp.betterllama.com/mcp) to your client and the agent can use chile_calendar_and_rut to check holidays, count business days or work out deadlines in natural language.
Other guides
- Chile open data APIs: official sources by API and MCP — map of the official Chilean sources available by API and MCP, how to find the tool with search_tools, one real call per family and an index of every guide.
- Chile economic indicators API: UF, dollar, euro, CPI and TPM — One real call per indicator (UF, dollar, euro, UTM, CPI, TMC, TIP, TPM, Imacec, GDP, unemployment and real exchange rate), from the CMF or the Central Bank, with curl, Python, JavaScript and MCP.
- Chile public procurement API: Mercado Público tenders and purchase orders — ChileCompra ticket, curl and Python examples, and MCP usage.
- Chile fuel prices API: gasoline 93, 95, 97, diesel and LPG from Bencina en Línea — CNE data with no sign-up, the cheapest by comuna or near a point, curl, Python and JavaScript examples, and MCP usage.
- Chilexpress API: coverage by comuna, shipping quotes and tracking — covered comunas and sectors with their code and no key, names that differ from the official ones, quotes and tracking with your free keys, and MCP usage.
- Chile earthquakes API: latest quake, magnitude, depth and alerts — Public-domain USGS data with Chile local time, no USGS key, curl and Python examples, and MCP usage.
- Colombia SECOP II API: public procurement contracts and processes — Open data from datos.gov.co with no key, curl and Python examples, and MCP usage.
- Colombia TRM API: today's TRM and the COP/USD rate — Superintendencia Financiera data via datos.gov.co with no key, curl and Python examples, and MCP usage.
- Peru BCRP API: exchange rate, inflation and rates — BCRPData series with no key, curl and Python examples, and MCP usage.
- Chile Official Gazette API: laws, decrees and new companies — Laws, decrees, notices and company incorporations with CVE and official PDF, no key, curl and Python examples, and MCP usage.
- Banxico API: Mexico's FIX exchange rate, UDIS and TIIE — Banco de México SIE indicators with no token to request, curl and Python examples, and MCP usage.
- Chile electricity market API: marginal cost, generation and demand — Coordinador Eléctrico Nacional grid data with no user_key to request, curl and Python examples, and MCP usage.
- Chile CMF API: UF value, dollar, UTM and maximum conventional rate — the seven API CMF Bancos series with no API key to request, curl and Python examples, and MCP usage.
- Chile USD/CLP exchange rate API: the observed dollar as JSON — today's rate, daily series by month, range or year and the warning for values published in advance, with CMF data, curl, Python and JavaScript examples, and MCP usage.
- Chile UF API: the Unidad de Fomento value as JSON — today's UF, full month, next month's days already published, range or year, with CMF data and a Central Bank cross-check, curl, Python and JavaScript examples, and MCP usage.
- Central Bank of Chile API: BDE series as JSON — dollar, UF, policy rate, CPI, Imacec, GDP, unemployment and any series by code, series search, curl, Python and JavaScript examples, and MCP usage.
- Chile RUT validation API: check digit as JSON — the modulo 11 algorithm, accepted formats, computing the check digit, batches and privacy, curl, Python and JavaScript examples, and MCP usage.
- Chile communes API: regions, provinces and CUT codes — all 346 communes with CUT codes, region filters, name search, curl, Python and JavaScript examples, and MCP usage.
- Chile business days API: deadlines and business-day counts — business-day deadlines from a notice date, Saturdays as business days, calendar days, business days per month, regional holidays and edge cases, with curl, Python and JavaScript, and MCP usage.
This guide is also available en español.