# 谷歌地图点评 关键词搜索 API (google_maps_reviews.search)

- Canonical page: https://everyinfra.com/google-maps-reviews-api/search
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "google_maps_reviews", "action": "search", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 15, max 50 per call
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours; up to 120 rows; beyond 60 rows use mode=async
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=google_maps_reviews&action=search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Google Maps 地点、商户类型或名称，例如 dentist 或 dentist in Chicago；search 查地点，不是对已有商户评论全文检索。 |
| country | not declared | no | not declared | search 的查询国家/地区代码，例如 us，默认 us；影响搜索地区语境，不是精确的商户国家过滤保证。 |
| language | not declared | no | not declared | 查询/页面内容语言，默认 en。reviews 同时传 lang 时以 lang 为准；语言选择不保证所有评论原文属于该语言。 |
| location | not declared | no | not declared | search 的地点文本，例如 Chicago；会与 keyword 组合查询。如果 keyword 已包含地点，应避免再填相互矛盾的 location。 |
| page_token | not declared | no | not declared | 翻页令牌：把上一页响应里的 next_page_token 原样传回拿下一页；不传从第一页开始。其他参数须与上一页一致，令牌 24 小时有效，每页算一次调用；最深能翻多少条、多深要改用 mode=async，见目录里的 pagination。 |
| limit | integer (1–50) | no | 15 | 这次调用最多返回的条数，整数，1–50；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| place_id | Google 地点 ID，跨 Google 服务通用的唯一标识。 |
| name | 名称。用于账号/商品/商家类能力，指该对象本身的名字。 |
| url | 该记录在原平台上的可访问链接。 |
| category | 分类名称，取值为原平台的分类体系，未做跨平台归一。 |
| categories | 地点分类（餐厅/酒店等）。 |
| description | 简介或描述，通常比 text 短。 |
| address | 详细地址，原文透传。 |
| city | 城市名，用原平台的语言书写，未做中英归一。 |
| state | 州/省。 |
| postal_code | 邮编。 |
| country_code | 国家代码。 |
| lat | 纬度。 |
| lng | 经度。 |
| phone | 联系电话，原文透传，未做号码格式归一。 |
| website | 账号或商家填写的外链网址。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| review_count | 评价条数，用于商品/商家类能力。null 表示不公开，不等于 0。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| permanently_closed | 是否已永久停业。抓到 true 的店不必再分析。 |
| image_url | 图片链接。多图能力可能返回 image_urls 数组。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "google_maps_reviews",
  "action": "search",
  "params": {
    "keyword": "coffee shops in Seattle"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "google_maps_reviews",
        "action": "search",
        "params": {
            "keyword": "coffee shops in Seattle",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 15. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "google_maps_reviews",
  "action": "search",
  "results": [
    {
      "place_id": "ChIJBR3G8LJqkFQRWD2Wzn0qG3c",
      "name": "Storyville Coffee Pike Place",
      "url": "https://www.google.com/maps/search/?api=1&query=Storyville%20Coffee%20Pike%20Place&query_place_id=ChIJBR3G8LJqkFQRWD2Wzn0qG3c",
      "category": "Coffee shop",
      "categories": [
        "Coffee shop",
        "Bakery",
        "Cafe"
      ],
      "description": "Market-based spot for artisanal coffee & baked goods in stylish wood-clad digs with fireplace.",
      "address": "94 Pike St Top floor Suite 34, Seattle, WA 98101, United States",
      "city": "Seattle",
      "state": "Washington",
      "postal_code": "98101",
      "country_code": "US",
      "lat": 47.60895,
      "lng": -122.3404309,
      "phone": "•••",
      "website": "https://storyville.com/pages/pike-place-market",
      "rating": 4.6,
      "review_count": 3209,
      "image_url": "https://lh3.googleusercontent.com/grass-cs/ACvplmNR_Vj8ZsgTuBRpe5anEhmpHgoWSZkVmcqoRBYbXQFA1T4wVgtNXFTvF8IAmqcn2fIAHcJgvuOB-UrS86s4nWQbz_Nb3Ul62coT0cv8pGXgfpkmtSymcgRC3URMk434OcD1a9ynWw",
      "platform": "google_maps_reviews",
      "rating_scale": 5
    },
    {
      "place_id": "ChIJ6WqLxohrkFQRfyUGQh-AXmc",
      "name": "Overcast Coffee",
      "url": "https://www.google.com/maps/search/?api=1&query=Overcast%20Coffee&query_place_id=ChIJ6WqLxohrkFQRfyUGQh-AXmc",
      "category": "Coffee shop",
      "categories": [
        "Coffee shop",
        "Bar",
        "Coffee stand"
      ],
      "address": "1517 12th Ave Ste 100, Seattle, WA 98122, United States",
      "city": "Seattle",
      "state": "Washington",
      "postal_code": "98122",
      "country_code": "US",
      "lat": 47.6146106,
      "lng": -122.3171338,
      "phone": "•••",
      "website": "http://www.overcastcoffee.co/",
      "rating": 4.7,
      "review_count": 316,
      "image_url": "https://lh3.googleusercontent.com/grass-cs/ACvplmMuQCvzugUkT1SvNoBmkKlDU6w-3cEF9LWcafTNZfKvZSqaltKGwtSvgS_N7mG1JEcWmhdG0z3NZ_LnV_sw0Ye56-n-uUOTAIbjrYxuAWZ5brstSq0ImfRpHw6eO91Gu0MUtni8Lo7eEz7e",
      "platform": "google_maps_reviews",
      "rating_scale": 5
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": 15,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=google_maps_reviews
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
