# Myanmar (Burmese) Calendar & Thai Holidays API (`zinminkhant/myanmar-thai-calendar`) Actor

Convert Gregorian dates to the Myanmar calendar (year, month, moon phase, full moon days), get astrological days (Sabbath, Yatyaza, Pyathada, Thamanyo) and Myanmar + Thai public holidays. English, Burmese, Zawgyi, Mon, Shan, Karen.

- **URL**: https://apify.com/zinminkhant/myanmar-thai-calendar.md
- **Developed by:** [Zin Min Khant](https://apify.com/zinminkhant) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 day results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Myanmar (Burmese) Calendar & Thai Holidays API

Convert any date to the **Myanmar calendar** and get **Myanmar and Thai public holidays** in one call.
Built for calendar apps, HR and payroll tools, booking systems, and businesses working across Myanmar and Thailand.

### What you get for each day

- **Myanmar date**: year (ME), Sasana year, month, moon phase (waxing, full moon, waning, new moon), fortnight day, watat (leap) year type
- **Full moon & Sabbath days** (ဥပုသ်နေ့)
- **Astrological days**: Yatyaza, Pyathada, Thamanyo, Amyeittasote, Warameittugyi, Yatpote, Thamaphyu, Nagapor, Yatyotema, Mahayatkyan, Shanyat, plus Mahabote, Nagahle direction and Nakhat
- **Myanmar public holidays** (Thingyan, Kason, Waso, Thadingyut, Tazaungmon full moons, Independence Day…) and other observances
- **Thai public holidays** (Songkran, Makha Bucha, Visakha Bucha, substitute days…) in Thai and English
- Text in **English, Burmese (Unicode), Zawgyi, Mon, Shan or Karen**

### Examples

Current month:

```json
{}
```

All Myanmar + Thai holidays in 2027:

```json
{ "startDate": "2027-01-01", "endDate": "2027-12-31", "onlyHolidays": true }
```

Myanmar date to Gregorian (Kason full moon 1389 ME):

```json
{ "myanmarDates": [{ "year": 1389, "month": 2, "day": 15 }] }
```

### Sample output

Three real rows from the 2027 holidays-only run (output is one item per day):

```json
[
  {
    "date": "2027-04-14",
    "weekday": "Wednesday",
    "myanmar": {
      "year": 1388,
      "sasanaYear": 2570,
      "yearType": "big_watat",
      "month": 13,
      "monthName": "Late Tagu",
      "monthLength": 29,
      "day": 8,
      "moonPhase": "waxing",
      "fortnightDay": 8,
      "text": "Myanmar Year 1388 Late Tagu Waxing 08"
    },
    "astrology": {
      "sabbath": "Sabbath",
      "yatyaza": true,
      "pyathada": null,
      "nagahle": "West",
      "mahabote": "Thike",
      "nakhat": "Human",
      "yearName": "Bhadrapaha",
      "days": [
        "Shanyat"
      ]
    },
    "holidays": {
      "myanmar": [
        {
          "en": "Thingyan Akya",
          "local": "သင်္ကြန် အကျ"
        }
      ],
      "myanmarOther": [],
      "thailand": [
        {
          "en": "Songkran Festival",
          "local": "วันสงกรานต์"
        }
      ]
    },
    "isHoliday": true
  },
  {
    "date": "2027-05-20",
    "weekday": "Thursday",
    "myanmar": {
      "year": 1389,
      "sasanaYear": 2571,
      "yearType": "common",
      "month": 2,
      "monthName": "Kason",
      "monthLength": 30,
      "day": 15,
      "moonPhase": "full_moon",
      "fortnightDay": 15,
      "text": "Myanmar Year 1389 Kason Full Moon 15"
    },
    "astrology": {
      "sabbath": "Sabbath",
      "yatyaza": true,
      "pyathada": null,
      "nagahle": "West",
      "mahabote": "Thike",
      "nakhat": "Ogre",
      "yearName": "Asvini",
      "days": []
    },
    "holidays": {
      "myanmar": [
        {
          "en": "Buddha Day",
          "local": "ဗုဒ္ဓ နေ့"
        }
      ],
      "myanmarOther": [],
      "thailand": [
        {
          "en": "Visakha Bucha",
          "local": "วันวิสาขบูชา"
        }
      ]
    },
    "isHoliday": true
  },
  {
    "date": "2027-07-19",
    "weekday": "Monday",
    "myanmar": {
      "year": 1389,
      "sasanaYear": 2571,
      "yearType": "common",
      "month": 4,
      "monthName": "Waso",
      "monthLength": 30,
      "day": 16,
      "moonPhase": "waning",
      "fortnightDay": 1,
      "text": "Myanmar Year 1389 Waso Waning 01"
    },
    "astrology": {
      "sabbath": null,
      "yatyaza": false,
      "pyathada": null,
      "nagahle": "North",
      "mahabote": "Atun",
      "nakhat": "Ogre",
      "yearName": "Asvini",
      "days": [
        "Mahayatkyan"
      ]
    },
    "holidays": {
      "myanmar": [
        {
          "en": "Martyrs' Day",
          "local": "အာဇာနည် နေ့"
        }
      ],
      "myanmarOther": [],
      "thailand": [
        {
          "en": "Buddhist Lent Day",
          "local": "วันเข้าพรรษา"
        }
      ]
    },
    "isHoliday": true
  }
]
```

### Pricing

Pay per day returned. A full year costs a few cents. Set a spending limit and the run stops there.

### Use with AI agents

Callable from Claude, Cursor and other MCP clients through Apify's MCP server.

### Accuracy & sources

- Myanmar calendar: Yan Naing Aye's open-source **mmcal** algorithm (MIT), the standard reference for modern Myanmar calendar calculations. Cross-checked in tests against python-holidays' independent Burmese implementation.
- Thai holidays: **python-holidays** (MIT), years 1990–2050. Ad-hoc special holidays announced later by the Thai cabinet appear after the data is refreshed.
- Holidays decided by government announcement can change. Confirm critical dates with official sources.

### Licenses

Includes mmcal © 2018 Yan Naing Aye (MIT, see `src/LICENSE-mmcal.txt`) and data generated with python-holidays (MIT).

# Actor input Schema

## `startDate` (type: `string`):

First Gregorian day (YYYY-MM-DD). Leave start, end and the lists below empty to get the current month.

## `endDate` (type: `string`):

Last day, inclusive. Up to 3,660 days per run.

## `dates` (type: `array`):

Individual Gregorian dates (YYYY-MM-DD) to convert.

## `myanmarDates` (type: `array`):

Myanmar dates to turn into Gregorian, e.g. \[{"year":1388,"month":2,"day":15}]. Months: Tagu=1 … Tabaung=12, 1st Waso=0, Late Tagu=13, Late Kason=14. Days 1-30 (15 = full moon).

## `language` (type: `string`):

Language for Myanmar month, weekday and year names in the output.

## `holidays` (type: `array`):

Which public holiday calendars to include: Myanmar, Thailand, or both.

## `includeAstrology` (type: `boolean`):

Sabbath, Yatyaza, Pyathada, Thamanyo, Mahabote, Nagahle and more.

## `onlyHolidays` (type: `boolean`):

Return only days that are a public holiday in a selected country.

## Actor input object example

```json
{
  "myanmarDates": [],
  "language": "en",
  "holidays": [
    "mm",
    "th"
  ],
  "includeAstrology": true,
  "onlyHolidays": false
}
```

# Actor output Schema

## `days` (type: `string`):

Myanmar date, astrological days and public holidays for each requested day.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "myanmarDates": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinminkhant/myanmar-thai-calendar").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "myanmarDates": [] }

# Run the Actor and wait for it to finish
run = client.actor("zinminkhant/myanmar-thai-calendar").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "myanmarDates": []
}' |
apify call zinminkhant/myanmar-thai-calendar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zinminkhant/myanmar-thai-calendar"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/7e1OToeZszm6JZZrX/builds/bZrzrglaDCv58UCBB/openapi.json
