List restaurant locations
curl --request GET \
--url https://api.staging.blackbird.xyz/flynet/v1/restaurants/{id}/locationsconst options = {method: 'GET'};
fetch('https://api.staging.blackbird.xyz/flynet/v1/restaurants/{id}/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET'};
fetch('https://api.staging.blackbird.xyz/flynet/v1/restaurants/{id}/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Restaurants
List restaurant locations
GET
/
restaurants
/
{id}
/
locations
List restaurant locations
curl --request GET \
--url https://api.staging.blackbird.xyz/flynet/v1/restaurants/{id}/locationsconst options = {method: 'GET'};
fetch('https://api.staging.blackbird.xyz/flynet/v1/restaurants/{id}/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {method: 'GET'};
fetch('https://api.staging.blackbird.xyz/flynet/v1/restaurants/{id}/locations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Returns paginated locations for a restaurant.
Auth: API key in
X-API-Key.
Example
curl "https://api.staging.blackbird.xyz/flynet/v1/restaurants/{uuid}/locations?page=0&page_size=25" \
-H "X-API-Key: $API_KEY"
Response
{
"locations": [
{
"id": "{uuid}",
"object": "location",
"name": "West Village",
"restaurant": { "id": "{uuid}", "object": "restaurant" },
"neighborhood": { "name": "West Village", "region": "New York, NY" },
"address": { "city": "New York", "state": "NY" },
"payments_enabled": true,
"is_club": false
}
],
"pagination": {
"total_count": 1,
"total_pages": 1,
"current_page": 0,
"next_page": null,
"page_size": 25
}
}
⌘I