Mayan Calendar API

GET

Display the Mayan Long Count, Tzolkin, and Haab date for any day.

Mayan Calendar converts Gregorian dates to the ancient Mayan calendar system. Returns the Long Count, Tzolkin (260-day sacred calendar), and Haab (365-day civil calendar) dates.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/mayancalendar?date=2024-12-21
Query parameters
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "gregorian": "2024-12-21",
    "longCount": {
      "formatted": "13.0.12.3.3",
      "baktun": 13,
      "katun": 0,
      "tun": 12,
      "winal": 3,
      "kin": 3
    },
    "tzolkin": {
      "number": 6,
      "dayName": "Akbal",
      "formatted": "6 Akbal"
    },
    "haab": {
      "day": 6,
      "monthName": "Kankin",
      "formatted": "6 Kankin"
    },
    "calendarRound": "6 Akbal 6 Kankin",
    "daysSinceEpoch": 1876383
  }
}

About the Mayan Calendar API

Uses the GMT (Goodman-Martinez-Thompson) correlation constant for accurate conversion. Ideal for educational content, historical research, and cultural applications.

What people use it for

Educational Tools
Teach about ancient Mesoamerican calendar systems
Cultural Applications
Display Mayan dates for heritage and cultural apps
Historical Research
Convert dates for archaeological and historical study
Novelty Apps
Generate personalized Mayan birth dates

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Mayan Calendar

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Mayan Calendar API.

Read the docs →
Which Mayan calendar systems are supported?
The API converts Gregorian dates into three Mayan systems: the Long Count, the 260-day Tzolkin sacred calendar, and the 365-day Haab civil calendar. On paid plans, it also returns the combined Calendar Round and total days elapsed since the Mayan epoch.
What would 10,000 date conversions cost me?
A volume of 10,000 conversions takes 20,000 credits, which uses a tenth of the Starter plan's 200,000 monthly credits. Paid usage works out to about $0.30 per 1,000 calls. The Free plan includes 100 calls per month for testing.
Are individual calendar cycle numbers included on the Free plan?
No. The Free plan provides formatted strings for the Long Count, Tzolkin, and Haab dates. Granular numeric components—such as baktun, katun, tun, winal, kin, sacred day numbers, month names, and the Calendar Round—are premium fields unlocked on Starter and above.
Which correlation method is used to align the calendars?
The API relies on the GMT (Goodman-Martinez-Thompson) correlation constant, the standard historical benchmark used by researchers to synchronize the Mayan Long Count with the Gregorian calendar.
What input format does the API expect?
Dates must be passed as Gregorian calendar strings in standard YYYY-MM-DD format. Providing other formats or invalid date values will fail to convert.
Can I use these date conversions in a commercial educational product?
Yes, commercial use is permitted on any paid plan. You can freely display the converted Mayan calendar data within your educational tools, games, or publications, provided you do not resell the raw API data directly.

Ready to build with Mayan Calendar? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs