Indonesia Public holidays API Reference
2 routes under /v1/id/holidays. Base URL https://api.apifor.dev, authenticated with x-api-key, one credit per request.
GET
/v1/id/holidaysList holidays with filters and paging.
| Parameter | In | Type | Rules |
|---|---|---|---|
| page | query | integer | min 1 · default 1 |
| limit | query | integer | 1 to 200 · default 50 |
| country | query | string | ISO 3166-1 alpha-2 |
| q | query | string | 2 to 100 chars |
| year | query | integer | 1900 to 2100 |
curl 'https://api.apifor.dev/v1/id/holidays' \
-G -d limit=1 \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"id": "50f187ed-9fd8-52e1-847b-bd013f40bbfc",
"date": "2027-01-01",
"name": "Tahun Baru 2027 Masehi",
"type": "nasional",
"is_joint_leave": 0,
"description": null,
"source": "skb-3-menteri-2027",
"year": 2027,
"is_active": 1,
"created_at": "2026-10-23 08:41:56",
"updated_at": "2026-10-23 08:41:56"
}
]
}200Successful response. Pagination is explicit; no silent truncation.400Invalid query parameters404Record not found500Dataset unavailable
GET
/v1/id/holidays/{id}Find indonesia holidays by identifier.
| Parameter | In | Type | Rules |
|---|---|---|---|
| id * | path | string | None |
curl 'https://api.apifor.dev/v1/id/holidays/{id}' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": {
"id": "50f187ed-9fd8-52e1-847b-bd013f40bbfc",
"date": "2027-01-01",
"name": "Tahun Baru 2027 Masehi",
"type": "nasional",
"is_joint_leave": 0,
"description": null,
"source": "skb-3-menteri-2027",
"year": 2027,
"is_active": 1,
"created_at": "2026-10-23 08:41:56",
"updated_at": "2026-10-23 08:41:56"
}
}200Successful response. Pagination is explicit; no silent truncation.400Invalid query parameters404Record not found500Dataset unavailable