# 谷歌地图点评 商家库检索 API (google_maps_reviews.business_listings)

- Canonical page: https://everyinfra.com/google-maps-reviews-api/business_listings
- Endpoint: POST /api/v1/social with {"platform": "google_maps_reviews", "action": "business_listings", "params": {...}}
- Price: $0.01536 per call ($15.36 per 1,000 requests); failed and empty results are not charged
- Returns: list, default 20, max 20 per call (larger values are capped)
- 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=business_listings

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| category | not declared | yes | not declared | business_listings 的 Google 地图商家分类，英文小写、空格写成下划线，例如 dentist、coffee_shop、italian_restaurant；按分类查商家库。 |
| city | not declared | no | not declared | 只要这个城市的商家，写法要和 Google 地图上商家地址里的城市名一致，例如 New York、London；对不上就没有结果。不传不限城市。 |
| country | not declared | no | not declared | 只要这个国家/地区的商家，两位字母代码，例如 us、gb、de（大小写都行）；不传不限国家。 |
| min_rating | not declared | no | not declared | business_listings 的最低评分（1–5，可带小数，例如 4.5）。 |
| name | not declared | no | not declared | business_listings 的商家名称关键词，只留名称里含这个词的商家。 |
| limit | integer (1–20) | no | 20 | 这次调用最多返回的条数，整数，1–20；不传按默认值，实际返回可能少于这个数。超过上限照收，按上限返回。 |

## 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": "business_listings",
  "params": {
    "category": "crm"
  }
}'
```

```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": "business_listings",
        "params": {
            "category": "crm",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "google_maps_reviews",
  "action": "business_listings",
  "results": [
    {
      "place_id": …,
      "name": …,
      "url": …,
      "category": …,
      "categories": …,
      "description": …,
      "address": …,
      "city": …,
      "state": …,
      "postal_code": …,
      "country_code": …,
      "lat": …,
      "lng": …,
      "phone": …,
      "website": …,
      "rating": …,
      "rating_scale": …,
      "review_count": …,
      "price": …,
      "permanently_closed": …,
      "image_url": …,
      "platform": …
    }
  ],
  "count": …,
  "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
