# Yandex 市场与地点搜索 API (yandex.market)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | search 的地图商户关键词，market 的商品关键词；地图点评与电商商品不是同一数据集。 |
| city | enum: chelyabinsk / kazan / krasnodar / krasnoyarsk / moscow / nizhny_novgorod / novosibirsk / omsk / perm / rostov_on_don / saint_petersburg / samara / ufa / volgograd / voronezh / yekaterinburg | no | not declared | market 的城市选择，例如 moscow 莫斯科、saint_petersburg 圣彼得堡；按完整允许值选取，不用于地图 search 的 location。 |
| max_price | not declared | no | not declared | 对应 action 的最高价格条件，与 min_price 配合；不是最高评分。按整数筛选，带小数时向上取整。 |
| min_price | not declared | no | not declared | market 为商品最低价，search 为地图商户价格筛选，两者价格含义不同；不应把商户价位直接当商品单价或 API 费用。按整数筛选，带小数时向下取整。 |
| region | not declared | no | not declared | market 的数字城市地区码，默认 213（莫斯科）；不是 RU 国家代码。优先使用更明确的 city，传 city 会覆盖 region。 |
| sort | enum: popular / top_rated | no | not declared | search 使用 relevance、distance；market 使用 popular、top_rated；reviews 使用 newest、relevance、top_rated、lowest_rated。不可跨 action 混用。 |
| limit | integer (1–100) | no | 20 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| price | 价格数值，不含货币符号；币种见 currency。 |
| currency | 价格币种代码（如 CNY、USD）。price 存在但 currency 为 null 时不要假定币种。 |
| rating | 评分。**分制随平台而异**，同一行的 `rating_scale` 给出该平台满分 (多数是 5，Booking/豆瓣/爱奇艺/NAVER 是 10)。跨平台比较前必须先按 rating_scale 换算。直接比数字会得出反的结论。 |
| rating_scale | 上一列 `rating` 的满分。5 表示五星制、10 表示十分制。只在该行有 rating 时出现。 |
| rating_count | 参与评分的人数。null 表示不公开，不等于 0。 |
| review_count | 评价条数，用于商品/商家类能力。null 表示不公开，不等于 0。 |
| purchase_count | 购买数。 |
| category | 分类名称，取值为原平台的分类体系，未做跨平台归一。 |
| shop_name | 店铺名（市场类目用）。 |
| shop_rating | 店铺评分。 |
| stock | 库存。 |
| is_available | 是否有货。 |
| 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": "yandex",
  "action": "market",
  "params": {
    "keyword": "ноутбук"
  }
}'
```

```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": "market",
        "params": {
            "keyword": "ноутбук",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-10-24T18:28:34Z. `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": "market",
  "results": [
    {
      "id": "•••",
      "url": "https://market.yandex.ru/card/156-noutbuk-lunnen-ground-15-2025-amd-ryzen-5-7430u-ram-16-gb-ssd-512-gb-ips-full-hd-1920x1080-windows-11-home-tsvet-silver-sea-ll5fawl03/4625706033?sku=4607478433",
      "title": "15.6\" Ноутбук LUNNEN Ground 15 (2025), AMD Ryzen 5 7430U, RAM 16 ГБ, SSD 512 ГБ, IPS Full HD 1920x1080, Windows 11 Home, цвет Silver Sea, LL5FAWL03",
      "price": 73897,
      "currency": "RUR",
      "rating": 4.8,
      "rating_count": 1826,
      "review_count": 705,
      "category": "Ноутбуки персональные LUNNEN",
      "shop_name": "Яндекс Фабрика",
      "shop_rating": 4.8,
      "stock": 39,
      "is_available": true,
      "image_url": "https://avatars.mds.yandex.net/get-mpic/18753496/pic79f0e899ffc11c4c1cbf9724429d2f5a/orig",
      "platform": "yandex",
      "rating_scale": 5
    },
    {
      "id": "•••",
      "url": "https://market.yandex.ru/card/noutbuk-lunnen-ground-16-ll6fawg07/4347177021?sku=5729303927",
      "title": "16\" Ноутбук LUNNEN Ground 16, AMD Ryzen 7 7730U, RAM 16 ГБ, SSD 512 ГБ, 1920x1200, Windows 11, Light Grey, LL6FAWG07",
      "price": 87211,
      "currency": "RUR",
      "rating": 4.6,
      "rating_count": 1885,
      "review_count": 698,
      "category": "Ноутбуки персональные LUNNEN",
      "shop_name": "Яндекс Фабрика",
      "shop_rating": 4.8,
      "stock": 25,
      "is_available": true,
      "image_url": "https://avatars.mds.yandex.net/get-mpic/19298711/2a0000019dfd0f14196878604346140157e0/orig",
      "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
