Get a Google Business Profile location's food menus
curl --request GET \
--url https://api.social-api.ai/v1/platforms/google/accounts/{id}/food-menus \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/platforms/google/accounts/{id}/food-menus', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/google/accounts/{id}/food-menus"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"menus": [
{
"cuisines": [
"<string>"
],
"labels": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
],
"sections": [
{
"items": [
{
"attributes": {
"allergen": [
"<string>"
],
"dietary_restriction": [
"<string>"
],
"ingredients": [
{
"labels": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
]
}
],
"media_keys": [
"<string>"
],
"nutrition_facts": {
"calories": {
"lower_amount": 123,
"unit": "CALORIE",
"upper_amount": 123
},
"cholesterol": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"protein": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"sodium": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"total_carbohydrate": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"total_fat": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
}
},
"portion_size": {
"quantity": 123,
"unit": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
]
},
"preparation_methods": [
"<string>"
],
"price": {
"currency_code": "EUR",
"nanos": 123,
"units": "80"
},
"serves_num_people": 123,
"spiciness": "<string>"
},
"labels": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
],
"options": [
{
"attributes": {
"allergen": [
"<string>"
],
"dietary_restriction": [
"<string>"
],
"ingredients": [
{
"labels": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
]
}
],
"media_keys": [
"<string>"
],
"nutrition_facts": {
"calories": {
"lower_amount": 123,
"unit": "CALORIE",
"upper_amount": 123
},
"cholesterol": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"protein": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"sodium": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"total_carbohydrate": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"total_fat": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
}
},
"portion_size": {
"quantity": 123,
"unit": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
]
},
"preparation_methods": [
"<string>"
],
"price": {
"currency_code": "EUR",
"nanos": 123,
"units": "80"
},
"serves_num_people": 123,
"spiciness": "<string>"
},
"labels": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
]
}
]
}
],
"labels": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
]
}
],
"source_url": "https://joes.example/menu"
}
]
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}Google
Get a Google Business Profile location's food menus
Returns the location’s menus with their sections, dishes, prices and dish details. A location with no menus returns an empty list. Only locations whose details report can_have_food_menus=true support menus, so check it first: Google refuses menus on any other location.
GET
/
platforms
/
google
/
accounts
/
{id}
/
food-menus
Get a Google Business Profile location's food menus
curl --request GET \
--url https://api.social-api.ai/v1/platforms/google/accounts/{id}/food-menus \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/platforms/google/accounts/{id}/food-menus', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/platforms/google/accounts/{id}/food-menus"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"menus": [
{
"cuisines": [
"<string>"
],
"labels": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
],
"sections": [
{
"items": [
{
"attributes": {
"allergen": [
"<string>"
],
"dietary_restriction": [
"<string>"
],
"ingredients": [
{
"labels": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
]
}
],
"media_keys": [
"<string>"
],
"nutrition_facts": {
"calories": {
"lower_amount": 123,
"unit": "CALORIE",
"upper_amount": 123
},
"cholesterol": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"protein": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"sodium": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"total_carbohydrate": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"total_fat": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
}
},
"portion_size": {
"quantity": 123,
"unit": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
]
},
"preparation_methods": [
"<string>"
],
"price": {
"currency_code": "EUR",
"nanos": 123,
"units": "80"
},
"serves_num_people": 123,
"spiciness": "<string>"
},
"labels": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
],
"options": [
{
"attributes": {
"allergen": [
"<string>"
],
"dietary_restriction": [
"<string>"
],
"ingredients": [
{
"labels": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
]
}
],
"media_keys": [
"<string>"
],
"nutrition_facts": {
"calories": {
"lower_amount": 123,
"unit": "CALORIE",
"upper_amount": 123
},
"cholesterol": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"protein": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"sodium": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"total_carbohydrate": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
},
"total_fat": {
"lower_amount": 123,
"unit": "GRAM",
"upper_amount": 123
}
},
"portion_size": {
"quantity": 123,
"unit": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
]
},
"preparation_methods": [
"<string>"
],
"price": {
"currency_code": "EUR",
"nanos": 123,
"units": "80"
},
"serves_num_people": 123,
"spiciness": "<string>"
},
"labels": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
]
}
]
}
],
"labels": [
{
"description": "Tomato, mozzarella, basil",
"display_name": "Margherita",
"language_code": "en"
}
]
}
],
"source_url": "https://joes.example/menu"
}
]
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}