timeanddate.com APIunofficial
Local time, time zones and public holidays from timeanddate.com
- 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 setupThen 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=2026Operations
| Operation | Method | Login | Writes | Status |
|---|---|---|---|---|
getHolidays(country, year) -> date, weekday, name, type, detailsA 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, dstCurrent 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.
getTimereturns the page's text:offsetrepeats the zone name before the UTC offset, anddstlists the page's daylight-saving notes (empty or a "no DST" note where none applies).getHolidaysreturns the table's national and regional rows (typesays which;detailsnames 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.