Lista os feriados nacionais de um ano (AAAA). Retorna JSON. Fonte: BrasilAPI (gratuita).
Requisição
GET /api_feriados.php?ano=2026
cURL
curl "https://www.protheus.net.br/api_feriados.php?ano=2026"
JavaScript (fetch)
fetch('api_feriados.php?ano=2026')\n .then(r => r.json())\n .then(console.log);
Resposta (exemplo)
[
{ "date": "2026-01-01", "name": "Confraternização mundial", "type": "national" },
{ "date": "2026-12-25", "name": "Natal", "type": "national" }
]