AnvilJSON utilities

About Anvil

Anvil is a tiny public API for the jobs every project ends up needing: an ID, a password, "what time is it in Tokyo", "when does this cron run", "is Monday a bank holiday".

Privacy

Limits

Errors

Every error is JSON with a stable machine code and a human sentence:

{"error": {"code": "bad_timezone", "message": "Unknown time zone 'Mars/Olympus'…"}}

Codes: missing_param, bad_param, bad_timezone, bad_cron, too_long, rate_limited, not_found, method_not_allowed, internal.

Accuracy

Holidays are calculated from the published rules plus known one-off proclamations, so new one-offs appear only after they are announced. Time zones come from the IANA database on the server. Random values use the operating system's cryptographic generator. Check official sources before relying on a date for anything legal or financial.

Stability

Everything lives under /v1. Fields may be added, but existing fields won't be renamed or removed within v1. Health: /v1/status and the status page. Version 1.24.0.