API Hub
A frictionless time-calculation endpoint for streamers and bots.
Endpoint
Request URL
Pass the `date` parameter (YYYY-MM-DD) and optionally `format=json` or `format=text`.
https://mark-wesley.co.uk/tools/date/daysuntil.php?date=2026-12-31&format=json
Integration
Nightbot / StreamElements
Use `format=text` so Nightbot can read the output directly into chat without breaking.
!addcmd !until $urlfetch(https://mark-wesley.co.uk/tools/date/daysuntil.php?date=2026-10-15&format=text)
Payload
JSON Response Preview
Live calculation for: New Year's Eve
{
"success": true,
"days_until": 100,
"target_date": "2026-12-31",
"message": "100 days remaining."
}