# Yandex 评价 API (yandex.reviews)

- Canonical page: https://everyinfra.com/yandex-api/reviews
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "yandex", "action": "reviews", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 200 per call
- 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=yandex&action=reviews

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | reviews 的地图商户完整 URL，也可在 url 中直接填 businessId；不是 Yandex Market 商品链接。 |
| language | not declared | no | not declared | search 的默认界面语言 ru，reviews 默认 en；search 显式传 lang 时覆盖 language。 |
| sort | enum: lowest_rated / newest / relevance / top_rated | no | not declared | search 使用 relevance、distance；market 使用 popular、top_rated；reviews 使用 newest、relevance、top_rated、lowest_rated。不可跨 action 混用。 |
| limit | integer (1–200) | no | 20 | 这次调用最多返回的条数，整数，1–200；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| language | 内容语言代码（如 zh、en），由平台判定，可能不准。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| dislike_count | 点踩数。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| author_name | 作者昵称（显示名）。 |
| owner_reply | 商家回复。 |
| business_id | 商家 ID。 |
| business_name | 商家名称。 |
| business_rating | 商家评分。 |
| business_review_count | 商家评价数。 |
| 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": "yandex",
  "action": "reviews",
  "params": {
    "url": "https://yandex.com/maps/org/tanuki/1036014863/reviews/"
  }
}'
```

```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": "yandex",
        "action": "reviews",
        "params": {
            "url": "https://yandex.com/maps/org/tanuki/1036014863/reviews/",
        },
    },
    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 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "yandex",
  "action": "reviews",
  "results": [
    {
      "id": "fiG_U8XT6pO3RSY1ZJERNYEL7cZavC",
      "url": "https://yandex.com/maps/org/tanuki/1036014863/",
      "text": "все хорошо ",
      "rating": 5,
      "posted_at": "2026-09-25T19:20:48.046000+00:00",
      "language": "RU",
      "like_count": 0,
      "dislike_count": 0,
      "comment_count": 0,
      "author_name": "•••",
      "owner_reply": "",
      "business_id": "1036014863",
      "business_name": "Тануки",
      "business_rating": 5,
      "business_review_count": 11416,
      "platform": "yandex",
      "rating_scale": 5
    },
    {
      "id": "HsGQp2Ee5wuRfg4_tAgpnWVc6q4tEMK",
      "text": "Всем здоровья!\nПосетил уголок японской жизненной силы икигай!\nНамсте",
      "rating": 5,
      "posted_at": "2026-09-25T19:20:26.902000+00:00",
      "language": "RU",
      "like_count": 0,
      "dislike_count": 0,
      "comment_count": 0,
      "author_name": "•••",
      "owner_reply": "",
      "business_id": "1036014863",
      "platform": "yandex",
      "rating_scale": 5
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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