Preferences
The preferences object describes what your users are looking for, and decides which venues are returned and how they're ranked.
preferences is optional. Without it, search returns every venue in range, nearest first. With it, InBe filters out venues that don't fit and ranks the rest by how well they match.
All preferences
"preferences": {
"genre": ["Italian", "Wine Bar"],
"goodFor": ["date"],
"establishmentFilters": ["serves_dinner", "outdoor_seating"],
"catersFilters": ["vegetarian", "gluten_free"],
"vibes": ["cosy", "candlelit"],
"dressCode": ["casual", "smart_casual"],
"nonCompromise": ["catersFilters"],
"chainPreference": "PREFER_INDEPENDENT",
"openingConditions": { "state": "OPEN", "atTime": "2026-06-12T19:30:00+01:00" },
"accessibilityOptions": ["ENTRANCE"],
"parkingOptions": ["STREET"],
"paymentOptions": ["NFC"]
}Don't send all of these at once. Every filter removes venues, so a long list of preferences can quickly return nothing.
| Preference | Type | Effect |
|---|---|---|
genre | string[] | Filter: at least one must match |
goodFor | string[] | Shortcut that expands into the other preferences |
establishmentFilters | string[] | Ranking |
catersFilters | string[] | Ranking |
vibes | string[] | Ranking |
dressCode | enum[] | Filter: venues stating another dress code are left out |
nonCompromise | string[] | Turns establishmentFilters, catersFilters and/or vibes into filters |
chainPreference | enum | Filter (NO_CHAINS, CHAINS_ONLY) or ranking (PREFER_*) |
openingConditions | object | Filter when state is OPEN or CLOSED |
accessibilityOptions | enum[] | Filter: at least one must match |
parkingOptions | enum[] | Filter: at least one must match |
paymentOptions | enum[] | Filter: at least one must match |
special | object | Reserved. Accepted but ignored |
How matching works
- Location: only venues within
mode.maxDistanceare considered. - Filters: venues that fail any filter are removed. Filters are combined with AND. Inside a single list, values are combined with OR. For example,
"genre": ["Italian", "Pizza"]means Italian or Pizza. - Ranking: the remaining venues get a
matchScore, which goes up by one for each requested genre, establishment flag, caters flag and vibe the venue has.PREFER_INDEPENDENTandPREFER_CHAINSadd or subtract one. Results are sorted by score, highest first, then by distance.
Ranking preferences never remove venues. A venue with none of your establishmentFilters can still appear, lower down the list.
Values must match exactly
establishmentFilters and catersFilters values are lowercase snake_case
(for example gluten_free, not glutenFree). The API doesn't return an error
for values it doesn't recognise. They're ignored for ranking, but in a filter
they match nothing, so an unrecognised genre or non-compromise flag can return
no results. Check spelling against the lists on each page.
Examples
{
"locations": [
{ "lat": 51.5072, "lon": -0.1276 },
{ "lat": 51.5154, "lon": -0.1419 }
],
"mode": { "mode": "POINT", "maxDistance": 750 },
"preferences": {
"goodFor": ["date"],
"establishmentFilters": ["serves_wine", "serves_dinner"],
"chainPreference": "NO_CHAINS",
"openingConditions": {
"state": "OPEN",
"atTime": "2026-06-12T19:30:00+01:00"
}
}
}{
"locations": [{ "lat": 51.5145, "lon": -0.089 }],
"mode": { "mode": "POINT", "maxDistance": 500 },
"preferences": {
"establishmentFilters": [
"good_for_working",
"free_wifi",
"serves_lunch",
"serves_coffee"
],
"openingConditions": { "state": "OPEN" }
}
}{
"locations": [{ "lat": 51.4613, "lon": -0.1156 }],
"mode": { "mode": "POINT", "maxDistance": 1500 },
"preferences": {
"goodFor": ["family", "children"],
"accessibilityOptions": ["ENTRANCE"],
"parkingOptions": ["LOT", "STREET"]
}
}{
"locations": [{ "lat": 51.5136, "lon": -0.1365 }],
"mode": { "mode": "POINT", "maxDistance": 800 },
"preferences": {
"catersFilters": ["gluten_free"],
"nonCompromise": ["catersFilters"],
"establishmentFilters": ["serves_dinner"]
}
}Strategy
- Start broad. Use location and one or two ranking preferences, then add filters if results aren't relevant enough.
- Prefer ranking over filtering.
establishmentFiltersandcatersFilterspush the best venues to the top without risking an empty response. - Filter for real constraints only, such as allergies, accessibility, or "must be open now".
- Handle empty results. If
totalFoundis0, retry with a largermaxDistanceor fewer filters, and tell your user what you relaxed.