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 gamescom.js. Jokes are not rate-limited.

/is-today Check if today is gamescom Day
/is-tomorrow Check if today is gamescom Eve
/joke Get a gamescom joke
/percentage Get the current countdown complete percentage
/timeleft/ Get the time left until gamescom in all units
/timeleft/:period Get the time left until gamescom in a given unit
/timeleft/total Get the total time left until gamescom
/weekday Get the day of the week that gamescom 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.