1. Datasets
  2. Public Holidays
  3. Madagascar

Madagascar Public Holidays API

50 public holidays for Madagascar, from Nager.Date. Filter the collection with country=MG and you get the same JSON shape as every other country.

GET /v1/holidaysMITMG28 Nov 2026

Request and response

Add country filtering to the collection endpoint and you get Madagascar records back. The response below is the example from our OpenAPI document, so it shows the exact shape you get, though the record itself may come from another country.

GET/v1/holidays
curl 'https://api.apifor.dev/v1/holidays' \
  -G -d country=MG \
  -H 'x-api-key: YOUR_API_KEY'
Example response · application/json
{
  "success": true,
  "data": [
    {
      "id": 1,
      "country_code": "AD",
      "date": "2024-01-01",
      "year": 2024,
      "local_name": "Any nou",
      "name": "New Year's Day",
      "is_global": 1,
      "is_fixed": 0,
      "counties": null,
      "types": "Public",
      "launch_year": null
    }
  ]
}

Fields

Each record in data has these fields. Types are read from the example values; a nullable field can hold null for some records.

FieldTypeExample
idinteger1
country_codestring"AD"
datestring (date)"2024-01-01"
yearinteger2024
local_namestring"Any nou"
namestring"New Year's Day"
is_globalinteger1
is_fixedinteger0
countiesnullablenull
typesstring"Public"
launch_yearnullablenull

Filters and paging

Query parameters accepted by GET /v1/holidays. Full detail, including the single-record route, is in the endpoint reference.

ParameterTypeRules
pageintegermin 1 · default 1
limitinteger1 to 200 · default 50
countrystringISO 3166-1 alpha-2
qstring2 to 100 chars
yearinteger1900 to 2100