InBe Docs

Opening times

Use this object to find places that are open now, or at a set time

The openingConditions object lets you filter venues based on their open status and availability now, or at specific times. This is crucial for users who need venues that are currently open or will be open when they plan to visit.

Basic structure

Opening conditions structure
  : {
    : {
      : "OPEN",
      : "2025-10-18T19:30:00Z",
    },
  },
 

Properties

state (optional)

Filter by opening status: "OPEN", "CLOSED", or "ANY". Defaults to "ANY".

atTime (optional)

Check availability at a specific time. Can be "HH:MM" format or ISO date-time.

Opening states

Only return venues that are currently open.

Open venues only
  : {
    : {
      state: "OPEN",
state: "OPEN" | "CLOSED" | "ANY"
: "2025-10-18T19:30:00Z", }, },

The atTime property is optional, and if not provided, the search will return venues that are open now.

Time formats

  : {
    : {
      : "OPEN",
      : "19:30", 
    },
  },
 

atTime is optional and flexible, when provided, it can be a date time, or just a time. If you only provide a time, the search will return venues that are open at that time today.

Real-world examples

const :  = {
  : [
    { : 51.5072, : -0.1276, : 50 },
    { : 51.5154, : -0.1419, : 50 },
  ],
  : {
    : "POINT",
    : 750,
  },
  : {
    : ["Lunch"],
    : { : "OPEN" }, 
  },
 

Best practice

  • Use OPEN state for immediate needs: Users often need venues that are open now
  • Specify times for planning: Use atTime when users are planning ahead
  • Consider user context: Different times suit different use cases
  • Handle time zones: Be aware of time zone differences in your application

Time considerations

Peak dining times

TimeDescription
07:00 - 10:00Breakfast
11:30 - 14:00Lunch
18:00 - 21:00Dinner
22:00 - 02:00Late night

Day of week patterns

Day of weekDescription
MondayBusiness hours, lunch crowds, dinner crowds
TuesdayBusiness hours, lunch crowds, dinner crowds
WednesdayBusiness hours, lunch crowds, dinner crowds
ThursdayBusiness hours, lunch crowds, dinner crowds
FridayBusiness hours, lunch crowds, late night
SaturdayBrunch, dinner, social dining, late night
SundayBrunch, dinner, social dining, late night

The returned opening times object

Single opening time
{
  // Other properties
  "regularOpeningHours": [
    {
      "days": ["Mon", "Tue", "Wed", "Thu", "Fri"],
      "timeSlots": [
        {
          "open": "12:00",
          "close": "22:00",
          "isClosed": false,
          "closeNextDay": false
        }
      ]
    },
    {
      "days": ["Sat"],
      "timeSlots": [
        {
          "open": "12:00",
          "close": "17:00",
          "isClosed": false,
          "closeNextDay": false
        }
      ]
    }
  ]
}

Next steps

On this page