List restaurants
curl --request GET \
--url https://api.staging.blackbird.xyz/flynet/v1/restaurantsconst options = {method: 'GET'};
fetch('https://api.staging.blackbird.xyz/flynet/v1/restaurants', 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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Restaurants
List restaurants
GET
/
restaurants
List restaurants
curl --request GET \
--url https://api.staging.blackbird.xyz/flynet/v1/restaurantsconst options = {method: 'GET'};
fetch('https://api.staging.blackbird.xyz/flynet/v1/restaurants', 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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Returns a paginated list of restaurants.
Auth: API key in
X-API-Key.
Example
curl "https://api.staging.blackbird.xyz/flynet/v1/restaurants?page=0&page_size=25" \
-H "X-API-Key: $API_KEY"
Response
{
"restaurants": [
{
"id": "{uuid}",
"object": "restaurant",
"name": "Anton's",
"cuisine": ["American"],
"cohort": "fsr",
"price": 3,
"tags": [],
"asset": {
"preview_1x": "https://...",
"web_2x": "https://...",
"full_3x": "https://..."
},
"website_url": "https://...",
"instagram_url": null,
"created_at": 1698770846,
"updated_at": 1720461018
}
],
"pagination": {
"total_count": 268,
"total_pages": 11,
"current_page": 0,
"next_page": 1,
"page_size": 25
}
}
⌘I