Loading page…
/api/v1/holidaysReturns curated Bangladesh holiday records for a year.
Open this endpoint in the API Explorer.
Import this API into your tooling.
See real implementation patterns.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| year | query | integer | No | Holiday year. |
curl "https://bdapi4all.vercel.app/api/v1/holidays?year=2026"const response = await fetch("https://bdapi4all.vercel.app/api/v1/holidays?year=2026");
const payload = await response.json();
console.log(payload.data);import requests
response = requests.get("https://bdapi4all.vercel.app/api/v1/holidays?year=2026")
print(response.json()["data"])$response = file_get_contents("https://bdapi4all.vercel.app/api/v1/holidays?year=2026");
$data = json_decode($response, true);
print_r($data["data"]);$response = Http::get("https://bdapi4all.vercel.app/api/v1/holidays?year=2026");
$data = $response->json("data");export default async function Page() {
const res = await fetch("https://bdapi4all.vercel.app/api/v1/holidays?year=2026", { next: { revalidate: 3600 } });
const payload = await res.json();
return <pre>{JSON.stringify(payload.data, null, 2)}</pre>;
}{
"success": true,
"version": "v1",
"timestamp": "2026-06-02T00:00:00.000Z",
"data": {
"year": 2026,
"holidays": [
{
"date": "2026-02-21T00:00:00.000Z",
"name_en": "Shaheed Day and International Mother Language Day",
"name_bn": "শহীদ দিবস ও আন্তর্জাতিক মাতৃভাষা দিবস",
"type": "national"
}
]
}
}