API Anything

timeanddate.com APIunofficial

Local time, time zones and public holidays from timeanddate.com

all live 2 operations, checked by the installs that call them.

Seeded by the maintainers.

Try it

Set up API Anything for your agents:

npx -y api-anything setup

Then ask your agent, which finds this site by itself, or call it from a shell:

api-anything pull timeanddate
api-anything call timeanddate getHolidays country=us year=2026

Operations

OperationMethodLoginWritesStatus
getHolidays(country, year) -> date, weekday, name, type, details

A country's public holidays and observances for a year, as the holidays table lists them

GET no no Live0 confirmations · success unknown; last worked unknown
getTime(country, city) -> time, date, abbreviation, timeZone, offset, dst

Current local time, date, time zone, UTC offset and daylight-saving notes for a city

GET no no Live0 confirmations · success unknown; last worked unknown

Notes

No account is needed. country and city are the slugs in timeanddate.com's own URLs (/worldclock/usa/new-york, /holidays/us/2026); holiday pages use their own country slugs (us, uk), which can differ from the world-clock ones (usa).

  • timeanddate.com puts a Cloudflare check in front of plain HTTP, so calls run in the browser tier: the first call from a fresh install takes several seconds while Chrome starts.
  • getTime returns the page's text: offset repeats the zone name before the UTC offset, and dst lists the page's daylight-saving notes (empty or a "no DST" note where none applies).
  • getHolidays returns the table's national and regional rows (type says which; details names the regions for a regional holiday). Observances the page hides by default are left out.
  • Sunrise/sunset and place search are not covered.

About these operations

Each operation is a request learned from timeanddate.com's own web pages: API Anything replays it over plain HTTP and falls back to a browser when it must. Read them as JSON.

← All shared sites