List customer reviews on your business listing
google-business-profile.reviewsRead the reviews customers left on your Google Business Profile listing
- Price
- freePelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoAinda não há dados da taxa de sucesso
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/google-business-profile.reviewsPreview- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
HOST OVERRIDE: mybusiness.googleapis.com — reviews are the one job never migrated off the legacy v4 API, so v4 here is correct rather than stale. Response carries averageRating and totalReviewCount alongside reviews[]; starRating is the WORD ("FIVE"), not a number, and a review already answered carries a reviewReply object
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de caminho | ||||
account_id | string | Obrigatório | 123456789 | |
location_id | string | Obrigatório | digits from the location resource name (locations/987654321) | 987654321 |
| Parâmetros de consulta | ||||
orderBy | string | Opcional | updateTime desc | rating | rating desc | updateTime desc |
pageSize | inteiro | Opcional | max 50 | 50 |
pageToken | string | Opcional | ||
- Parâmetros de caminho
account_idstringObrigatórioExemplo:
123456789location_idstringObrigatóriodigits from the location resource name (locations/987654321)
Exemplo:
987654321- Parâmetros de consulta
orderBystringOpcionalupdateTime desc | rating | rating desc
Exemplo:
updateTime descpageSizeinteiroOpcionalmax 50
Exemplo:
50pageTokenstringOpcional
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
curl -X GET 'https://toolswitch.dev/v1/tools/google-business-profile.reviews' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/google-business-profile.reviews",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-business-profile.reviews", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a free, incluindo a taxa de serviço.