POST Venues Nearby
Returns stores ordered by distance from a set of coordinates, each with its distance in metres and miles — the query behind a store-finder map or list.
The result set is capped at 50 stores. Send page and per_page to paginate instead.
Prefer POST /directory/search for a customer-facing store finder. The two share an implementation; the difference is that the directory endpoint always restricts to directory-visible stores, while this one leaves directory_only to you. Reach for this one when you specifically need stores the brand has hidden from its directory.
A customer token is optional. Send it to use only_favorites, and so that any test store the customer is entitled to see is included.
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringContent
- Type requiredContent-Type header
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Body
- Type: stringlatituderequired
- Type: stringlongituderequired
- Type: booleandirectory
_only Restrict to stores visible in the public directory
- Type: integerlimit
Capped at 50
- Type: booleanonly
_favorites Requires a signed-in customer; ignored otherwise
- Type: integerorder
_type Filter to stores offering this order type
- Type: integerpage
Integer numbers.
- Type: integerper
_page Capped at 50
- Type: numberradius
Search radius in metres. Effectively unlimited when omitted.
Responses
- application/json
- 422
latitudeorlongitudeis missing or malformed, orradius/limitare the wrong type.
curl https://api-public-demo.menu.app/api/venues/nearby \
--request POST \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'Content-Type: application/json' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
--data '{
"latitude": "41.879",
"longitude": "-87.63",
"radius": 5000,
"limit": 20
}'
{
"status": "OK",
"code": 200,
"data": {
"venues": [
{
"distance": 812.4,
"distance_in_miles": 0.5,
"venue": {
"id": 3540,
"uuid": "4fac4dfc-3d0e-4b9f-8081-8448be89013b",
"name": "South Corona",
"city": "Corona",
"address": "2320 Compton Avenue"
}
}
]
}
}