List the attributes a Google Business Profile location accepts
curl --request GET \
--url https://api.social-api.ai/v1/platforms/google/accounts/{id}/attributes/available \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/platforms/google/accounts/{id}/attributes/available', 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}/attributes/available"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"deprecated": true,
"display_name": "Outdoor seating",
"group_display_name": "Amenities",
"name": "has_outdoor_seating",
"repeatable": true,
"value_type": "BOOL",
"values": [
{
"bool_value": true,
"display_name": "Yes",
"enum_value": "<string>"
}
]
}
]
}{
"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
List the attributes a Google Business Profile location accepts
Returns every attribute available for the location’s category and country, with its value_type, display names and accepted values. Use it to find the attribute ids and values to send when updating attributes. Attributes marked deprecated still read but should no longer be set.
GET
/
platforms
/
google
/
accounts
/
{id}
/
attributes
/
available
List the attributes a Google Business Profile location accepts
curl --request GET \
--url https://api.social-api.ai/v1/platforms/google/accounts/{id}/attributes/available \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/platforms/google/accounts/{id}/attributes/available', 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}/attributes/available"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"deprecated": true,
"display_name": "Outdoor seating",
"group_display_name": "Amenities",
"name": "has_outdoor_seating",
"repeatable": true,
"value_type": "BOOL",
"values": [
{
"bool_value": true,
"display_name": "Yes",
"enum_value": "<string>"
}
]
}
]
}{
"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"
}