Restaurant

Retrieve availability for the given restaurant

Retrieve the availability for a specific restaurant over a given date range. Every date in the range is returned; one without availability comes back closed with no timeslots. Dates in the past are omitted.

get/api/v1/restaurants/{restaurant_id}/availability

Request

  • Base URL: https://gotable.app
  • URL: https://gotable.app/api/v1/restaurants/{restaurant_id}/availability
  • Auth: HTTP bearer

Path parameters

restaurant_idinteger required

Query parameters

fromstring

Start date for availability (format: YYYY-MM-DD)

tillstring

End date for availability (format: YYYY-MM-DD). Capped at three months after from.

Response

With a valid API token

fromstring date

The first date that is covered by the dates array

tillstring date

The last date that is covered by the dates array

Example response

{
  "from": "2026-09-15",
  "till": "2026-09-16",
  "dates": [
    {
      "date": "2026-09-15",
      "closed": false,
      "timeslots": [
        {
          "time": "18:00",
          "minimum": 0,
          "maximum": 20
        },
        {
          "time": "20:00",
          "minimum": 0,
          "maximum": 20
        }
      ]
    },
    {
      "date": "2026-09-16",
      "closed": true,
      "timeslots": []
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.