Search
Search finds and ranks venues for one or more people, based on where they are and what they want.
POST /v1/search is InBe's main endpoint. You describe who is searching (one or more locations), how to search (a midpoint radius or a route), and what they want (preferences). InBe returns venues ranked by how well they match.
Caching
You may cache venue ids. Don't cache full venue responses. Venue data
changes often and must be fetched fresh for accuracy and compliance.
How a search works
- Where: in
POINTmode InBe finds the weighted midpoint of your locations; inPATHmode it draws a route through them. Only venues withinmode.maxDistancemetres are considered. - Filter: some preferences are hard filters that remove venues (see the table below).
- Rank: the remaining venues are sorted by how many of your preferences they match (
matchScore), with closer venues first when scores are tied. - Paginate: one page of
limitresults (default 20) is returned.
Request
{
"locations": [
{ "lat": 51.5072, "lon": -0.1276 },
{ "locationName": "Oxford Circus, London" }
],
"mode": { "mode": "POINT", "maxDistance": 750 },
"preferences": {
"genre": ["Italian"],
"catersFilters": ["vegetarian", "gluten_free"],
"establishmentFilters": ["serves_dinner", "good_for_groups"],
"chainPreference": "PREFER_INDEPENDENT",
"openingConditions": {
"state": "OPEN",
"atTime": "2026-06-12T19:30:00+01:00"
}
}
}Prop
Type
Searching for a group?
Send members to give each person their own preferences and get back how well
every place suits each of them. See Group Search.
Always send mode
If mode is missing, or PATH is used with fewer than two locations, no
location filter is applied and results can come from anywhere.
| Query parameter | Default | Description |
|---|---|---|
| limit | 20 | Results per page, up to 100. |
| offset | 0 | Zero-based page number. See Pagination. |
Filters vs. ranking
Some preferences remove venues from the results. Others only change the order. Mixing them up is the most common cause of "too few results" or "irrelevant results".
| Preference | Effect |
|---|---|
genre | Filter: venue must match at least one genre |
goodFor | Filter for values that map to genres, ranking for the rest |
establishmentFilters | Ranking. Filter if listed in nonCompromise |
catersFilters | Ranking. Filter if listed in nonCompromise |
chainPreference | NO_CHAINS / CHAINS_ONLY filter; PREFER_* ranking |
openingConditions | Filter when state is OPEN or CLOSED |
accessibilityOptions, parkingOptions, paymentOptions | Filter: venue must have at least one of the listed options |
maxPricePerHead | Filter: leaves out venues known to cost more per head |
Examples
curl -X POST "https://api.inbe.us/v1/search?limit=10" \
-H "Content-Type: application/json" \
-H "API-Key: $INBE_API_KEY" \
-d '{
"locations": [{ "lat": 51.5081, "lon": -0.1278 }],
"mode": { "mode": "POINT", "maxDistance": 500 },
"preferences": {
"establishmentFilters": ["serves_coffee", "free_wifi"],
"chainPreference": "NO_CHAINS"
}
}'type Location =
| { lat: number; lon: number; weight?: number; label?: string }
| { locationName: string; weight?: number; label?: string };
type SearchRequest = {
locations: Location[];
mode: { mode: "POINT" | "PATH"; maxDistance?: number };
preferences?: {
genre?: string[];
establishmentFilters?: string[];
catersFilters?: string[];
goodFor?: string[];
chainPreference?:
| "NO_PREFERENCE"
| "PREFER_INDEPENDENT"
| "PREFER_CHAINS"
| "NO_CHAINS"
| "CHAINS_ONLY";
nonCompromise?: ("establishmentFilters" | "catersFilters")[];
maxPricePerHead?: number;
openingConditions?: { state: "ALL" | "OPEN" | "CLOSED"; atTime?: string };
accessibilityOptions?: ("ENTRANCE" | "PARKING" | "BATHROOM" | "SEATING")[];
parkingOptions?: ("STREET" | "GARAGE" | "LOT" | "VALET")[];
paymentOptions?: (
| "CREDIT"
| "DEBIT"
| "CASH"
| "NFC"
| "ONLINE"
| "AMEX"
| "AMEX_FEE"
| "EXCL_AMEX"
)[];
};
};
const body: SearchRequest = {
locations: [{ lat: 51.5081, lon: -0.1278 }],
mode: { mode: "POINT", maxDistance: 500 },
preferences: {
establishmentFilters: ["serves_coffee", "free_wifi"],
chainPreference: "NO_CHAINS",
},
};
const res = await fetch("https://api.inbe.us/v1/search?limit=10", {
method: "POST",
headers: {
"Content-Type": "application/json",
"API-Key": process.env.INBE_API_KEY!,
},
body: JSON.stringify(body),
});
const data = await res.json();import os
import requests
response = requests.post(
"https://api.inbe.us/v1/search",
params={"limit": 10},
headers={"API-Key": os.environ["INBE_API_KEY"]},
json={
"locations": [{"lat": 51.5081, "lon": -0.1278}],
"mode": {"mode": "POINT", "maxDistance": 500},
"preferences": {
"establishmentFilters": ["serves_coffee", "free_wifi"],
"chainPreference": "NO_CHAINS",
},
},
timeout=10,
)
data = response.json()payload := map[string]any{
"locations": []map[string]any{{"lat": 51.5081, "lon": -0.1278}},
"mode": map[string]any{"mode": "POINT", "maxDistance": 500},
"preferences": map[string]any{
"establishmentFilters": []string{"serves_coffee", "free_wifi"},
"chainPreference": "NO_CHAINS",
},
}
body, _ := json.Marshal(payload)
req, _ := http.NewRequest(http.MethodPost, "https://api.inbe.us/v1/search?limit=10", bytes.NewReader(body))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("API-Key", os.Getenv("INBE_API_KEY"))
resp, err := http.DefaultClient.Do(req)Common scenarios
{
"locations": [
{ "lat": 51.5072, "lon": -0.1276 },
{ "lat": 51.5154, "lon": -0.1419 }
],
"mode": { "mode": "POINT", "maxDistance": 750 },
"preferences": {
"goodFor": ["date"],
"establishmentFilters": ["serves_wine"],
"openingConditions": {
"state": "OPEN",
"atTime": "2026-06-12T19:30:00+01:00"
}
}
}{
"locations": [
{ "lat": 51.5072, "lon": -0.1276, "weight": 50, "label": "Organiser" },
{ "lat": 51.5154, "lon": -0.1419 },
{ "lat": 51.5034, "lon": -0.1195 }
],
"mode": { "mode": "POINT", "maxDistance": 1000 },
"preferences": {
"establishmentFilters": ["good_for_groups", "serves_beer"],
"chainPreference": "PREFER_INDEPENDENT"
}
}{
"locations": [
{ "locationName": "Westminster Bridge, London" },
{ "locationName": "Tower Bridge, London" }
],
"mode": { "mode": "PATH", "maxDistance": 150 },
"preferences": {
"establishmentFilters": ["serves_coffee", "outdoor_seating"],
"openingConditions": { "state": "OPEN" }
}
}Response
{
"centerPoint": { "lat": 51.5113, "lon": -0.13475 },
"radius": 750,
"totalFound": 38,
"page": 0,
"establishments": [
{
"id": "0b6f4f3e-5d0c-4a52-9d57-1e1f0d1a2b3c",
"name": "THE LEAKY CAULDRON LIMITED",
"displayName": "The Leaky Cauldron",
"formattedAddress": "1 Charing Cross Road, London, WC2H 0DA",
"location": { "type": "Point", "coordinates": [51.5115, -0.1281] },
"websiteUri": "https://www.example.com",
"contactEmail": "hello@example.com",
"contactNumber": "020 7946 0000",
"description": "A candle-lit wine bar with small plates.",
"primaryGenre": "Wine Bar",
"additionalGenres": ["Romantic", "Cozy"],
"wordOnTheStreet": "Locals rate the natural wine list and the quiet back room.",
"isOpen": true,
"isChain": false,
"regularOpeningHours": [
{ "weekday": "Sun", "openingTimes": [] },
{
"weekday": "Mon",
"openingTimes": [{ "openTime": "17:00", "closeTime": "23:00" }]
},
{
"weekday": "Tue",
"openingTimes": [{ "openTime": "17:00", "closeTime": "23:00" }]
},
{
"weekday": "Wed",
"openingTimes": [{ "openTime": "17:00", "closeTime": "23:00" }]
},
{
"weekday": "Thu",
"openingTimes": [{ "openTime": "17:00", "closeTime": "23:30" }]
},
{
"weekday": "Fri",
"openingTimes": [
{ "openTime": "12:00", "closeTime": "15:00" },
{ "openTime": "17:00", "closeTime": "01:00" }
]
},
{
"weekday": "Sat",
"openingTimes": [{ "openTime": "12:00", "closeTime": "01:00" }]
}
],
"mainImageUrl": "https://cdn.example.com/venues/leaky-cauldron.jpg",
"logo": "",
"establishmentFlags": ["good_for_date", "serves_wine", "serves_dinner"],
"catersFlags": ["vegan", "vegetarian"],
"vibes": ["cosy", "candlelit", "historic"],
"dressCode": null,
"distanceMeters": 482.6,
"matchScore": 3
}
]
}| Field | Description |
|---|---|
| centerPoint | The weighted midpoint searched around. null in PATH mode. |
| radius | The maxDistance used, in metres. |
| totalFound | Number of matching venues across all pages. |
| page | The page returned (same as offset). |
| establishments | The venues, best match first. |
Things to know about each venue:
displayNameis the name to show users.nameis the raw or registered name.location.coordinatesis[lat, lon]. This is the reverse of the GeoJSON[lon, lat]order, so swap them before passing them to most map libraries.regularOpeningHourshas seven entries, starting with Sunday, or is[]when the venue's hours aren't known. An emptyopeningTimesarray on a day means closed or unknown. AcloseTimeearlier thanopenTimemeans the venue closes after midnight.isOpenis whether the venue is open when you make the request, not atopeningConditions.atTime.matchScoreis roughly how many of your preferences the venue matched.PREFER_INDEPENDENTandPREFER_CHAINSadd one for a venue that fits and subtract one for a venue that doesn't, so the score can be negative. Higher is better. Only compare scores within a single response. It's left out when it's0.distanceMetersis the straight-line distance fromcenterPoint. It's left out inPATHmode.vibesis the venue's atmosphere, strongest first. See Vibes.dressCodeis the dress code the venue states, ornullwhen it states none. See Dress code.- Missing text fields are returned as
""and missing lists as[], notnull.dressCodeis the one exception.
API reference
Authorization
ApiKeyAuth Your public (pk_…) or secret (sk_…) API key from the dashboard access page.
In: header
Query Parameters
Number of results per page. Values above 100 are capped at 100.
1 <= value <= 10020Zero-based page number (not a row offset). Results skipped = offset × limit.
0 <= value0Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Send locations and mode for a search, or members for a group search (see below). Without members the request behaves exactly as before.
Send locations and mode for a search, or members for a group search (see below). Without members the request behaves exactly as before.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/search" \ -H "Content-Type: application/json" \ -d '{ "locations": [ { "lat": 51.5072, "lon": -0.1276 }, { "lat": 51.5154, "lon": -0.1419 } ], "mode": { "mode": "POINT", "maxDistance": 750 }, "preferences": { "goodFor": [ "date" ], "catersFilters": [ "vegan" ], "openingConditions": { "state": "OPEN" } } }'{ "centerPoint": { "lat": 51.5252, "lon": -0.0919 }, "radius": 2000, "totalFound": 37, "page": 0, "establishments": [ { "id": "7c1e5a52-3f0e-4c55-9d7a-2b1d8f0b6a11", "name": "Example Tap House", "displayName": "Example Tap House", "distanceMeters": 412.6, "matchScore": 0.42, "memberFit": [ { "id": "sam", "score": 0.96, "status": "match", "matched": [ "catersFilters:vegan" ], "unmet": [], "unknown": [], "travel": { "distanceMeters": 1100, "minutes": 18, "mode": "walk" } }, { "id": "priya", "score": 0.63, "status": "match", "matched": [], "unmet": [], "unknown": [ "maxPricePerHead" ], "travel": { "distanceMeters": 900, "minutes": 10, "mode": "transit" } }, { "id": "alex", "score": 0.48, "status": "partial", "matched": [ "vibes:lively" ], "unmet": [ "genre:italian", "genre:pizza" ], "unknown": [], "travel": { "distanceMeters": 1500, "minutes": 25, "mode": "walk" } } ], "groupFit": { "score": 0.59, "worksForCount": 2, "memberCount": 3, "everyone": false, "worstTravelMinutes": 25 } } ]}{ "error": "you submitted an incorrectly formatted request. please refer to our documentation and double check that the request body is formatted correctly. docs: https://www.inbe.us/docs/api/search"}{ "error": { "message": "Missing API key. Please include your API key in the API-Key header.", "type": "authentication_error", "code": "MISSING_API_KEY" }}{ "error": { "message": "You ran out of credit. Please top up!", "type": "billing_error", "code": "INSUFFICIENT_CREDIT" }}{ "error": { "message": "Rate limit exceeded. Too many requests per second.", "type": "rate_limit_error", "code": "SECOND_LIMIT_EXCEEDED", "limit": 5, "reset": "1s", "currentCount": 6, "retryAfterSeconds": 1 }}{ "error": "internal server fetching your data has occured. if the error persists please contact our support"}