{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"5670ab5f-fcb8-4be7-9580-09801ddf2177","name":"Calendar API","description":"## Calendar API\n\n[Calendar API Website](https://calendar-api.ma)\n\nThis interactive panel allows you to explore the whole API and to understand the different datastructures and parameters  \nused by every endpoint. You can also test every **active** APIKey you have.\n\n## Create your APIKey\n\nRegister [Here](https://calendar-api.ma/register) and login to your console to manage your API Keys.\n\n## Setup your APIKey\n\nCopy any **active** APIKey from your console and set it the `{{keyapi}}` variable.\n\nThat's it :-), now you can explore any endpoint\n\n## Holidays\n\nThis API allows to list, search and check if a `date` is a Moroccan holiday.\n\n| Endpoint | Description |\n| --- | --- |\n| **/holidays/is-holiday** | Checks if a date is an `Official` Holiday |\n| **/holidays/{year}** | List the holidays of the year. |\n| **/holidays** | Lists all national Holidays. Since Morocco is a Kingdom, there are some Holidays that depend on the birthday of the current King. |\n\n**N.B:**  \nPlease note that if it's a **future** `year`, the **religious holidays** are `Estimated` and not official because they depend on the moon sighting.\n\nOnce confirmed, the Holiday becomes `Official` and the adequate flag will be updated accordingly.\n\n## Business Days (bdays)\n\nThis API calculates the `next` and `previous` **Open Business Day** of a date. You can also get the Open Days for a whole year or any month of a year\n\n| Endpoint | Description |\n| --- | --- |\n| **/bdays/{year}** | Generate the Business days for the whole `year` |\n| **/bdays/{year}/{month}** | Generate the Business days of a `month` of the `year` |\n| **/bdays/next** | Calculate **the next** Open day relative to the provided `date` |\n| **/bdays/previous** | Calculate **the previous** Open day relative to the provided `date` |\n| **/bdays/count** | Count the business days between 2 dates (included) |\n| **/bdays/between** | List the business days between 2 dates (included) |\n| **/bdays/span/month** | Calculate the interval (Start/End date) of a `month`. i.e: Interval of the month 5 of year 2025 |\n| **/bdays/span/quarter** | Calculate the interval (Start/End date) of a `quarter`. i.e: Interval of the Q2 of year 2024 |\n| **/bdays/span/semester** | Calculate the interval (Start/End date) of a `semester`. i.e: Interval of the S1 of year 2026 |\n| **/bdays/span/year** | Calculate the interval (Start/End date) of the `year`. i.e: Interval of the year 2021 |\n\n## Data dictionary\n\n### Holiday Type:\n\n| Value | Description |\n| --- | --- |\n| **National** | The date is a national Holiday |\n| **Religious** | The date is a Religious Holiday (Check the status if it's Confirmed or not) |\n| **Exceptional** | The date is an exceptional Holiday |\n\n### HolidayStatus (status)\n\n| Value | Description |\n| --- | --- |\n| **Official** | The Holiday is Official |\n| **Estimated** | Religious Holidays are estimated before the moon sighting |\n\nContact:  \nName: UNRAVEL DESIGNS  \nEmail: [ud@unraveldesigns.ma](https://mailto:ud@unraveldesigns.ma)","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":true,"owner":"9897118","team":5977448,"collectionId":"5670ab5f-fcb8-4be7-9580-09801ddf2177","publishedId":"2sBYArSrTN","public":true,"publicUrl":"https://documenter-api.postman.tech/view/9897118/2sBYArSrTN","privateUrl":"https://go.postman.co/documentation/9897118-5670ab5f-fcb8-4be7-9580-09801ddf2177","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":"REST API  and Python SDK (pycalendar-api) dedicated to the dynamic management of the Moroccan economic calendar: national holidays, religious holidays (estimated vs official status), working days and CalSpan interval boundaries."},{"name":"title","value":"Calendar API - Morocco Holidays and Business Days"}],"appearance":{"default":"system_default","themes":[{"name":"dark","logo":"https://content.pstmn.io/96d95ab8-467f-4c19-9025-b4f26fd3dcde/Y2FsLWFwaS1sb2dvIHNtYWxsLnBuZw==","colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":"https://content.pstmn.io/28e0e7d1-6ebf-4856-99e1-bf57b5e0b6ed/Y2FsLWFwaS1sb2dvIHNtYWxsLnBuZw==","colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.12.3","publishDate":"2026-08-18T16:29:36.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"Calendar API - Morocco Holidays and Business Days","description":"REST API  and Python SDK (pycalendar-api) dedicated to the dynamic management of the Moroccan economic calendar: national holidays, religious holidays (estimated vs official status), working days and CalSpan interval boundaries."},"logos":{"logoLight":"https://content.pstmn.io/28e0e7d1-6ebf-4856-99e1-bf57b5e0b6ed/Y2FsLWFwaS1sb2dvIHNtYWxsLnBuZw==","logoDark":"https://content.pstmn.io/96d95ab8-467f-4c19-9025-b4f26fd3dcde/Y2FsLWFwaS1sb2dvIHNtYWxsLnBuZw=="}},"statusCode":200},"environments":[],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/07e451058cb8346cc1a971e0de858fa0870627fca6501a11104ff26704051f5d","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/2sBYArSrTN"}