API

Please read the terms of service before using the API.

Endpoints

Click on the cards to view more information about each endpoint.

Note

Except for /joke, all endpoints have an IP-based rate limit of 2 requests per 10 seconds. If you exceed this limit, you will be blocked for 10 seconds. To make your own live countdown, use christmas.js. Jokes are not rate-limited.

Check if today is Christmas Day
Check if today is Christmas Eve
Get a Christmas joke
Get the current countdown complete percentage
Get the time left until Christmas in all units
Get the time left until Christmas in a given unit
Get the total time left until Christmas
Get the day of the week that Christmas Day is on

Query parameters

language

You may optionally specify the joke language with ?language=. The language defaults to en, and can be one of:

  • en

timezone

You may optionally specify the timezone with ?timezone=. The timezone defaults to UTC and can be any valid IANA timezone name. If not an exact match, the API will attempt to find a valid timezone given the input. For example, London and GMT will resolve to Europe/London. If a valid timezone can’t be resolved the API will respond with a HTTP 400 status code.