Find by Name
Find looks up venues by full or partial name, optionally near a location.
Use GET /v1/find when your user already knows the venue they want, such as for a search box, an "add a place" flow or matching your own records to InBe venue IDs.
GET https://api.inbe.us/v1/find?name={name}Query parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| name | string | Full or partial venue name, matched against name and displayName. Case-insensitive substring match: cauldron matches "The Leaky Cauldron". Required unless you send a location. | |
| lat, lon | number | Centre point. Send both together. | |
| locationName | string | A place name or address to geocode as the centre point. Takes priority over lat/lon. | |
| maxDistanceMeters | integer | 500 | Radius around the centre point, in metres. Ignored without a centre point. |
| limit | integer | 20 | Results per page, up to 100. |
| offset | integer | 0 | Zero-based page number. See Pagination. |
Send a name, a location, or both. A request with neither returns 400.
Add a location
With a centre point, results are limited to maxDistanceMeters and sorted
nearest first. Without one, matches can come from anywhere. They are
sorted by how closely the name matches: exact names first, then names that
start with your search, then names that contain it. Send a location whenever
you can.
URL-encode your values
Encode every query value, for example a space as %20 and a % sign as
%25. URLSearchParams in JavaScript and params= in Python's requests do
this for you. A query string that can't be read, such as name=Little%Italy,
returns 400 rather than being ignored.
Examples
# Near coordinates
curl "https://api.inbe.us/v1/find?name=dishoom&lat=51.5131&lon=-0.1263&maxDistanceMeters=2000" \
-H "API-Key: $INBE_API_KEY"
# Near a named place
curl "https://api.inbe.us/v1/find?name=dishoom&locationName=Covent%20Garden%2C%20London&maxDistanceMeters=2000" \
-H "API-Key: $INBE_API_KEY"const params = new URLSearchParams({
name: "dishoom",
lat: "51.5131",
lon: "-0.1263",
maxDistanceMeters: "2000",
});
const res = await fetch(`https://api.inbe.us/v1/find?${params}`, {
headers: { "API-Key": process.env.INBE_API_KEY! },
});
const { establishments } = await res.json();import os
import requests
response = requests.get(
"https://api.inbe.us/v1/find",
headers={"API-Key": os.environ["INBE_API_KEY"]},
params={"name": "dishoom", "lat": 51.5131, "lon": -0.1263, "maxDistanceMeters": 2000},
timeout=10,
)
establishments = response.json()["establishments"]Response
The response has the same shape as search, without matchScore:
{
"centerPoint": { "lat": 51.5131, "lon": -0.1263, "crs": 4326 },
"radius": 2000,
"totalFound": 2,
"page": 0,
"establishments": [
{
"id": "6a1c1d4e-8b55-4f3e-9f0a-7f2b9c3d4e5f",
"name": "DISHOOM COVENT GARDEN",
"displayName": "Dishoom Covent Garden",
"formattedAddress": "12 Upper St Martin's Lane, London, WC2H 9FB",
"location": { "type": "Point", "coordinates": [51.5124, -0.1269] },
"primaryGenre": "Indian",
"additionalGenres": ["Casual Dining"],
"isOpen": true,
"isChain": true,
"establishmentFlags": [
"serves_breakfast",
"serves_dinner",
"good_for_groups"
],
"catersFlags": ["vegetarian", "vegan"],
"distanceMeters": 86.3
}
]
}Some fields are left out of the example above to keep it short. Every field listed under search results is returned.
centerPointisnullanddistanceMetersis left out when you don't send a location.radiusis always returned, even when no location was sent and it wasn't used.- Results are matched on both the venue's
name(often its registered name) and itsdisplayName, solittle italyfinds a venue registered as "LITTLE ITALY LTD" and one shown as "Little Italy".
Tips
- Use distinctive words.
leaky cauldronis better thanthe. - Debounce search-as-you-type, for example wait 300 ms after the last keystroke, and require at least three characters.
- Handle unknown places. If
locationNamecan't be found, the API returns400with the messagecould not find location '<name>'. You aren't charged.
Errors
| Status | When |
|---|---|
| 400 | The query string can't be read, for example a % that isn't encoded as %25. |
| 400 | Neither name nor a location (lat and lon, or locationName) was sent. |
| 400 | Only one of lat and lon was sent. |
| 400 | locationName couldn't be found. |
You aren't charged for any of these. See Authentication & errors for 401, 402, 429 and 500.
- To resolve free text such as a social post or "that pasta place in Borough Market", use Deduce first, then
find.
API reference
Authorization
ApiKeyAuth Your public (pk_…) or secret (sk_…) API key from the dashboard access page.
In: header
Query Parameters
Full or partial venue name, matched against name and displayName. Case-insensitive. Required unless you send a location.
Latitude of the centre point. Must be sent together with lon.
double-90 <= value <= 90Longitude of the centre point. Must be sent together with lat.
double-180 <= value <= 180A place name or address to geocode and use as the centre point. Overrides lat/lon when both are sent.
Search radius in metres around the centre point. Only used when a centre point is supplied.
1 <= value500Number 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 <= value0Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/find?name=leaky+cauldron&lat=51.5131&lon=-0.1263&locationName=Covent+Garden%2C+London"{ "centerPoint": { "lat": 0, "lon": 0, "crs": 0 }, "radius": 0, "establishments": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "displayName": "string", "formattedAddress": "string", "location": { "type": "Point", "coordinates": [ 0, 0 ] }, "websiteUri": "string", "contactEmail": "string", "contactNumber": "string", "description": "string", "primaryGenre": "string", "additionalGenres": [ "string" ], "wordOnTheStreet": "string", "isOpen": true, "isChain": true, "regularOpeningHours": [ { "weekday": "Sun", "openingTimes": [ { "openTime": "string", "closeTime": "string" } ] } ], "mainImageUrl": "string", "logo": "string", "establishmentFlags": [ "air_conditioned" ], "catersFlags": [ "alcohol_free" ], "vibes": [ "calm" ], "dressCode": { "level": "casual", "label": "Smart casual", "notes": "No sportswear, caps or flip-flops" }, "distanceMeters": 0, "matchScore": 0, "memberFit": [ { "id": "string", "score": 0, "status": "match", "matched": [ "catersFilters:vegan", "goodFor:date" ], "unmet": [ "maxPricePerHead" ], "unknown": [ "openingConditions" ], "travel": { "distanceMeters": 0, "minutes": 0, "mode": "walk" } } ], "groupFit": { "score": 0, "worksForCount": 0, "memberCount": 0, "everyone": true, "worstTravelMinutes": 0 } } ], "totalFound": 0, "page": 0}{ "error": "your query string could not be read. make sure every value is URL-encoded, e.g. a space as %20 and a % sign as %25. 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"}