Small, deterministic lookups and calculations — time zones, holidays, sunrise, units, country and currency facts, validators — behind one key. Every response is JSON. Static lookups are cacheable for a day; anything that depends on *now* is not cached.
Rate limits and plan ceilings are reported on every response in the X-Gw-* headers (X-Gw-Remaining, X-Gw-Reset), so clients and agents can pace themselves.
GETTING STARTED
Every request goes to https://api.apialmanac.com/ with your key in the X-API-Key header. What's left of your allowance rides back on every response in X-Gw-Remaining.
Get a key → · Sign in →
This API is also an MCP server. Add https://mcp.apialmanac.com/ to Claude Code, Cursor or any MCP client with your key as a bearer token and every operation below becomes a tool — same key, same metering, same allowance. In a connector that only takes a URL, use the connector URL instead. Prompting a model by hand? Every operation has a Markdown version. An agent setting itself up can start from agents.md, and npx skills add https://apialmanac.com/ installs this API as a skill.
For a client that takes a URL and nothing else — a claude.ai connector, for one. The key is in the URL, so treat the whole URL like a password: share it with nobody, and revoke the key from your account page if it gets out.
ERRORS
Every operation can also answer with these, so they are listed once here rather than on each card.
400A parameter is missing, malformed or out of range
401Missing or invalid API key (from the gateway)429Plan ceiling or rate limit reached; see X-Gw-Reset (from the gateway)
Time
GET/v1/time/now
The current time in a time zone, with offset, DST flag and ISO week
Pass at to describe a specific instant instead of now — handy for tests and for "what time is it in Tokyo when it's 9am in New York" when combined with /v1/time/convert.
at is a wall-clock time in from (e.g. 2026-03-08T02:30) or an explicit instant with Z or offset. Wall times that fall in a DST gap are moved forward like most calendar apps do.
Days, weeks, months and business days between two dates
Business days count both ends when they are working days (like Excel's NETWORKDAYS). With country, public holidays are excluded too; without it, only the weekend is.
Turn natural language like "next Tuesday at 3pm" or "in 3 weeks" into ISO dates
Relative phrases are resolved against ref (default: now) in tz. Several dates in one text come back as separate results. certain says which parts were stated explicitly versus assumed.
PARAMETERS
textquery · stringREQUIRED
Text containing one or more dates
e.g. Let's meet next Tuesday at 3pm for an hour
refquery · string
Reference instant for relative phrases (ISO-8601, default now)
e.g. 2026-10-08T12:00:00Z
tzquery · string
Zone the text is spoken in
e.g. America/New_York
forwardquery · boolean
Prefer future dates for ambiguous phrases like "Friday"
{
"text": "Let's meet next Tuesday at 3pm for an hour",
"ref": "2026-10-08T12:00:00Z",
"zone": "America/New_York",
"count": 1,
"results": [
{
"text": "next Tuesday at 3pm",
"index": 11,
"start": {
"iso": "2026-10-13T15:00:00-04:00",
"utc": "2026-10-13T19:00:00Z",
"date": "2026-10-13",
"time": "15:00",
"certain": {
"date": true,
"time": true
}
},
"end": null
}
]
}
Try it — sign in first
GET/v1/date/calendar
Convert a date to or from another calendar: Hebrew, Islamic, Persian, Chinese, Japanese eras, Julian and more
Give date to convert a Gregorian date *into* calendar; give year, month and day to convert *from* it. month accepts a name (Tishri, Ramadan, First Month) or a number, where numbers are the month's position in its year: a Hebrew or Chinese leap year has 13, so months_in_year is returned alongside. Names are the safer choice. Japanese years need era (meiji, taisho, showa, heisei, reiwa).
Public holidays for a country and year, optionally for one state or region
National holidays by default. Add subdivision (a state, province or region code such as TX or BY) to include regional ones. Years 2020–2030 for every country the data covers.
Sunrise, sunset, solar noon, twilights and day length for a place and date
Times are UTC instants; add tz to get local wall-clock times as well. Inside the polar circles a day may have no sunrise or sunset — those fields are null and polar says which.
One country by ISO alpha-2, alpha-3, numeric code or exact name, with World Bank population, GDP, inflation and life expectancy
stats holds the World Bank's latest published figures (population, land area, GDP, growth, inflation, unemployment, life expectancy and more), each with its year and WDI indicator code, plus the income group. Figures more than ten years old are left out, and stats is null where the World Bank publishes nothing (Taiwan, Vatican City, French overseas departments, Jersey and Guernsey, uninhabited and small territories). Cite stats.source when quoting a figure.
Find cities by name: coordinates, population, time zone and the local time there now
Cities of 15,000+ people worldwide. Name matches are prefix first, then substring; results are ordered by population, so q=paris puts Paris, France before Paris, Texas. Add country to narrow.
Great-circle distance, bearings, midpoint and bounding box between two coordinates
Give lat2/lon2 for a second point, or bearing and distance_km to project from the first point instead. radius_km adds a bounding box around the first point, handy for "within 25 km" searches.