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-10-15&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: Mark's Birthday

{
    "success": true,
    "days_until": 23,
    "target_date": "2026-10-15",
    "message": "23 days remaining."
}