List a Google Business Profile location's attributes
curl --request GET \
--url https://api.social-api.ai/v1/platforms/google/accounts/{id}/attributes \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/platforms/google/accounts/{id}/attributes', 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"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"bool_value": true,
"enum_value": "<string>",
"name": "has_outdoor_seating",
"repeated_enum_value": {
"set_values": [
"<string>"
],
"unset_values": [
"<string>"
]
},
"uri_values": [
"<string>"
],
"value_type": "BOOL"
}
]
}{
"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 a Google Business Profile location's attributes
Returns the attributes set on a location, such as outdoor seating, accepted payment methods or a wheelchair accessible entrance. value_type says which value field is filled: bool_value for BOOL, enum_value for ENUM, uri_values for URL, repeated_enum_value for REPEATED_ENUM.
GET
/
platforms
/
google
/
accounts
/
{id}
/
attributes
List a Google Business Profile location's attributes
curl --request GET \
--url https://api.social-api.ai/v1/platforms/google/accounts/{id}/attributes \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/platforms/google/accounts/{id}/attributes', 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"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"bool_value": true,
"enum_value": "<string>",
"name": "has_outdoor_seating",
"repeated_enum_value": {
"set_values": [
"<string>"
],
"unset_values": [
"<string>"
]
},
"uri_values": [
"<string>"
],
"value_type": "BOOL"
}
]
}{
"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"
}