Retrieve a location
curl --request GET \
--url https://api.staging.blackbird.xyz/flynet/v1/locations/{id}const options = {method: 'GET'};
fetch('https://api.staging.blackbird.xyz/flynet/v1/locations/{id}', 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/locations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Locations
Retrieve a location
GET
/
locations
/
{id}
Retrieve a location
curl --request GET \
--url https://api.staging.blackbird.xyz/flynet/v1/locations/{id}const options = {method: 'GET'};
fetch('https://api.staging.blackbird.xyz/flynet/v1/locations/{id}', 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/locations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Returns one location by UUID. The response embeds its restaurant and
neighborhood.
Auth: API key in
X-API-Key.
Example
curl https://api.staging.blackbird.xyz/flynet/v1/locations/{uuid} \
-H "X-API-Key: $API_KEY"
Response
{
"id": "{uuid}",
"object": "location",
"name": "West Village",
"restaurant": { "id": "{uuid}", "object": "restaurant" },
"neighborhood": { "name": "West Village", "region": "New York, NY" },
"address": {
"street": "570 Hudson St",
"city": "New York",
"state": "NY",
"zipcode": "10014",
"country": "USA"
},
"coordinate": { "latitude": 40.734, "longitude": -74.002 },
"time_zone": "America/New_York",
"payments_enabled": true,
"is_club": false
}
⌘I