---
title: "Reviews"
description: "从 Google 获取地点的评论。"
---

> Every apinoa docs page as markdown: https://apinoa.com/llms.txt (all in one file: https://apinoa.com/llms-full.txt; this API family in one file: https://apinoa.com/docs/serp/llms.txt)

```http
GET | POST /v1/google/reviews
```

参数可以用 `GET` 的查询字符串发送，也可以用 `POST` 的 JSON 请求体发送，两者等价。

## 请求

```bash tab="cURL"
curl "https://gateway.apinoa.com/v1/google/reviews?place=0x89e37a41212ce669:0x78b9e5c9d502f25c&sort=newest" \
  -H "x-api-key: $APINOA_API_KEY"
```

```js tab="JavaScript"
const params = new URLSearchParams({ place: "0x89e37a41212ce669:0x78b9e5c9d502f25c", sort: "newest" });
const res = await fetch(`https://gateway.apinoa.com/v1/google/reviews?${params}`, {
  headers: { "x-api-key": process.env.APINOA_API_KEY },
});
const { success, data, error } = await res.json();
```

```python tab="Python"
import os

import requests

res = requests.get(
    "https://gateway.apinoa.com/v1/google/reviews",
    params={"place": "0x89e37a41212ce669:0x78b9e5c9d502f25c", "sort": "newest"},
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
)
body = res.json()
```

## 参数

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `lang` | string |  | Interface language. |
| `place` | string |  | The place's id, as `places` returns it. |
| `sort` | enum |  | Review order: most relevant (default), newest, highest or lowest rated. Each order gives its own five reviews. `relevant` `newest` `highest` `lowest` |
| `url` | string |  | A Google Maps place URL. |

The same parameters, and every response type, are in the OpenAPI document: https://apinoa.com/openapi.json

## 响应

在 `data` 中返回 [`PlaceReviewsPage`](/docs/api-reference/serp/response-schema#placereviewspage)。 真实响应的节选：数组只保留前几项，长文本已截断。

```json
{
  "success": true,
  "data": {
    "engine": "google",
    "placeId": "0x89e37a41212ce669:0x78b9e5c9d502f25c",
    "summary": {
      "average": 2.9,
      "count": 3597
    },
    "starCounts": {
      "1": 1161,
      "2": 354,
      "3": 624,
      "4": 500,
      "5": 958
    },
    "sort": "newest",
    "page": {
      "index": 1,
      "size": 5,
      "total": 3597
    },
    "reviews": [
      {
        "id": "Ci9DQUlRQUNvZENodHljRjlvT25OM1pubEdNRTh0WDAxZldsUkNVbUpHTVZaSmIzYxAB",
        "author": "Bobby",
        "rating": 5,
        "date": "2026-11-23T05:01:28.134Z",
        "authorId": "115561830522931695875",
        "authorUrl": "https://www.google.com/maps/contrib/115561830522931695875?hl=en-US",
        "ext": {
          "dateText": "3 days ago",
          "source": "Google",
          "url": "https://www.google.com/maps/reviews/data=!4m8!14m7!1m6!2m5!1sCi9DQUlRQUNvZENodHljRjlvT25OM1pubEdNRTh0WDAxZldsUkNVbUpHTVZaSmIzYxAB!2m1!1s0x0:0x78b9e5c9d502f25c!3m1!1s2@1:CAIQACodChtycF9oOnN3ZnlGME8tX01fWlRCUmJGMVZJb3c%7C%7C?hl=en-US",
          "authorImage": "https://lh3.googleusercontent.com/a-/ALV-UjWy244l3Awqx9FNYuSwZS544Tspw9sYPaAYX1OhYh0On9PWEOo=s120-c-rp-mo-ba12-br100",
          "authorReviewCount": 18,
          "authorPhotoCount": 5,
          "authorBadge": "Local Guide · 18 reviews"
        },
        "images": []
      },
      {
        "id": "Ci9DQUlRQUNvZENodHljRjlvT2xKdFRFOVJSVVJNVkVRdFQwSmtObVZLVTJSNk1HYxAB",
        "author": "Fendi VeNoM",
        "rating": 1,
        "body": "The worst McDonalds location rude staff they just sit there and watch you wait at the window and refuses to give refunds never going here again",
        "date": "2026-11-21T09:56:14.988Z",
        "language": "en",
        "authorId": "114252221338891078518",
        "authorUrl": "https://www.google.com/maps/contrib/114252221338891078518?hl=en-US",
        "ext": {
          "dateText": "5 days ago",
          "source": "Google",
          "url": "https://www.google.com/maps/reviews/data=!4m8!14m7!1m6!2m5!1sCi9DQUlRQUNvZENodHljRjlvT2xKdFRFOVJSVVJNVkVRdFQwSmtObVZLVTJSNk1HYxAB!2m1!1s0x0:0x78b9e5c9d502f25c!3m1!1s2@1:CAIQACodChtycF9oOlJtTE9RRURMVEQtT0JkNmVKU2R6MGc%7C%7C?hl=en-US",
          "authorImage": "https://lh3.googleusercontent.com/a-/ALV-UjUqLCbo-DZ1PZ_EDko6dViyGiEciHKhVgEIaLOyk37lHSVe29GT=s120-c-rp-mo-br100",
          "authorReviewCount": 4,
          "authorPhotoCount": 0,
          "authorBadge": "4 reviews",
          "answers": [
            {
              "question": "Order type",
              "answer": "Dine in"
            },
            {
              "question": "Meal type",
              "answer": "Dinner"
            },
            {
              "question": "Food",
              "rating": 1
            },
            {
              "question": "Service",
              "rating": 1
            },
            {
              "question": "Atmosphere",
              "rating": 1
            }
          ]
        },
        "images": []
      }
    ],
    "fetchedAt": "2026-11-26T23:15:36.135Z"
  }
}
```

## 错误

| 状态 | 代码 | 含义 |
|---|---|---|
| 400 | `INVALID_PARAMS` | 参数缺失、未知、超出范围，或该引擎不接受。消息中会指出是哪一个。 |
| 401 | `UNAUTHORIZED` | 缺少 `x-api-key` 请求头，或密钥已吊销或未知。 |
| 402 | `INSUFFICIENT_CREDITS` | 积分不足以支付本次调用。请在控制台选择套餐或充值。 |
| 404 | `NOT_FOUND` | 该地点不存在。 |
| 429 | `MARKETPLACE_SATURATED` | 并发调用过多。请等待 `Retry-After` 秒后重试。 |
| 502 | `UPSTREAM_ERROR` | 引擎返回了无法使用的内容。请退避后重试。 |
| 503 | `SERVICE_UNAVAILABLE` | 临时故障。请退避后重试。 |

全部错误代码见 [Errors](/docs/errors)。失败的调用不计费。

## 价格

**Price** 1 credit per call. [Plans and credits](https://apinoa.com/en/pricing).

## 说明

- 把 `places` 返回的地点 `id` 作为 `place` 传入，或把地点的地图链接作为 `url` 传入。
- Google 每种排序显示 5 条评论：`relevant`（默认）、`newest`、`highest` 和 `lowest`。每种排序单独调用，各返回不同的 5 条，四种合计最多 20 条。没有下一页。
- `summary` 和 `starCounts` 涵盖该地点的全部评论；`page.total` 是地点标明的评论数。
