API Playground: Try the Time & Holiday API
Pick one of the 26 endpoints, fill in its parameters and press Send. The request really goes to the API; you see the status, the time it took, the headers and the JSON, with code for the same request in nine languages.
API playground
Request code
The code follows the form above and always uses the production address.
How it works
- The form is built from each endpoint’s parameter schema, the same one the API validates against. Required parameters start with the documented example so that Send works at once.
- Send performs a real GET request from your browser to this site. Nothing is simulated, and no key is involved because the API has none.
- The response time is measured in your browser with
performance.now(): it includes your network, so it is your experience of the API, not a server benchmark. - Invalid values are sent as they are, so you can see the API’s real error responses.
- The code below the form follows every change and always uses the production address
https://clockcrest.com.
Shareable links
Once you change something, the address bar holds the endpoint and its parameters (for example ?op=getCurrentTime&p.tz=Asia/Tokyo). Copy it to send someone the exact request. Opening such a link only fills in the form: the request is sent when the reader presses Send.
What is sent
Only the request you see in the “Request” box, to this site. The playground stores nothing, sets no cookie and sends your input nowhere else.
Which code snippets were actually run
Each snippet was generated for three requests — an ordinary one, one whose value mixes quotes, a dollar sign, backticks, a backslash, “&”, “#” and Arabic text, and one that must report a 400 error — and run against a local copy of the same API code on 2026-12-01. Only the address was changed for the run.
| Language | Result | Run with |
|---|---|---|
| cURL | Executed: 3 of 3 requests behaved as expected | curl 8.19.0 |
| JavaScript | Executed: 3 of 3 requests behaved as expected | v24.15.0 |
| TypeScript | Executed: 3 of 3 requests behaved as expected | v24.15.0 |
| Python | Executed: 3 of 3 requests behaved as expected | Python 3.14.3 |
| PHP | Generated only — not compiled, syntax-checked or run (no toolchain on the test machine) | — |
| Dart / Flutter | Executed: 3 of 3 requests behaved as expected | Dart SDK version: 3.12.1 |
| Go | Generated only — not compiled, syntax-checked or run (no toolchain on the test machine) | — |
| Java | Generated only — not compiled, syntax-checked or run (no toolchain on the test machine) | — |
| C# | Generated only — not compiled, syntax-checked or run (no toolchain on the test machine) | — |
For the languages that were not run, the quoting of every parameter is covered by unit tests of the generator, but the code itself has not been through a compiler. Treat those snippets as a starting point and tell us if one fails.
The cURL command is quoted for POSIX shells (bash, zsh). In the Windows Command Prompt, replace the single quotes with double quotes.
The Dart snippet uses dart:io, which works with the Dart VM and in Flutter mobile and desktop apps, but not in Flutter web builds.
Full details of every endpoint are in the API reference.