# Yandex Maps (Яндекс Карты) Scraper - Places + Public Reviews (`lanternlab318/yandex-maps`) Actor

Search Yandex Maps by keyword and city, or paste place links, and get the public business data back with every public review.

- **URL**: https://apify.com/lanternlab318/yandex-maps.md
- **Developed by:** [Lantern Lab](https://apify.com/lanternlab318) (community)
- **Categories:** Lead generation, Travel, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 places

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Yandex Maps (Яндекс Карты) Scraper — Places + Public Reviews

A Lantern Lab Actor. Search Yandex Maps by keyword and city, or paste place links, and get the public business data back: name, categories, full address, coordinates, the business's own published phone and website, rating, review count and opening hours — plus every public review with its star rating, text, publish time and the owner's reply. No Yandex login, no cookies, no account of your own.

**Price:** pay per result — **USD 3.99 per 1,000 places, USD 1.83 per 1,000 reviews, USD 1.20 per 1,000 place pages that had to be read for a `website`, and no run-start fee.** The three are charged separately because they cost very different amounts to produce: a place found by search costs a 25th of one request, a place page costs a whole request, and 50 reviews cost one request. Yandex itself puts the website into some search rows; those places are not read again and `place_website` is not charged for them. Empty results, per-input status rows and the run summary are free.

### What you get

```json
{
  "recordType": "place",
  "placeId": "69353267050",
  "name": "Surf Coffee x Flow",
  "categories": ["Кофейня"],
  "address": "Москва, Страстной бульвар, 8А",
  "city": "Москва",
  "country": "Россия",
  "postalCode": "107031",
  "latitude": 55.766219,
  "longitude": 37.610433,
  "phone": "+7 (993) 337-56-86",
  "website": "https://surfcoffee.ru/",
  "rating": 4.9,
  "ratingCount": 1261,
  "reviewCount": 665,
  "workingHoursText": "пн-пт 08:00–23:00; сб,вс 10:00–23:00",
  "status": "open",
  "url": "https://yandex.com/maps/org/surf_coffee_x_flow/69353267050/",
  "source": "search_query",
  "searchQuery": "кофейня Москва",
  "rank": 2,
  "placePageStatus": "ok",
  "partial": false,
  "partialReason": null,
  "collectedAt": "2026-10-24T02:26:53.837Z"
}
```

```json
{
  "recordType": "review",
  "reviewId": "e0FEF4jjxWxvHlUU18EWFNv8vsvILsj",
  "placeId": "235936768533",
  "placeName": "Методика кофе",
  "rating": 5,
  "text": "Кофе замечательный у них, булочки вкусные с корицей…",
  "textLanguage": "ru",
  "publishedAt": "2026-09-03T14:46:56.453Z",
  "authorName": "Lubna",
  "likes": 0,
  "photoCount": 2,
  "ownerReplyText": "Любна, спасибо вам огромное за такой подробный и теплый отзыв!…",
  "ownerReplyAt": "2026-09-07T14:16:33.863Z",
  "collectedAt": "2026-10-23T16:21:05.004Z"
}
```

### Input

Give it search terms, place links, or both.

```json
{
  "searchQueries": ["кофейня", "пекарня"],
  "city": "Москва",
  "maxPlaces": 50,
  "includeReviews": true,
  "maxReviewsPerPlace": 50
}
```

```json
{
  "placeUrls": [
    "https://yandex.com/maps/org/metodika_kofe/235936768533/",
    "32587374037"
  ],
  "includeReviews": true,
  "maxReviewsPerPlace": 150
}
```

| Field | Default | Meaning |
| --- | --- | --- |
| `searchQueries` | — | One search term per line. Use the local language: `кофейня` returns far more than `coffee shop`. Each term is searched separately and its rows are labelled with it. |
| `city` | — | City or region in the local language (`Москва`, `Казань`, `Алматы`). Appended to every term that does not already name it. The run reports which region Yandex resolved it to. |
| `placeUrls` | — | Specific places, as a Yandex Maps place URL or just the numeric place ID. Search terms are not required when this is filled in. |
| `maxPlaces` | `50` | Upper bound on places per search term. Yandex serves 25 per page, so this rounds up to whole pages. A term stopped by this limit says so on its `input_status` row instead of reporting that it saw everything Yandex had. |
| `includeWebsite` | `true` | Read a place's own page for its `website` when the search result did not already carry one. Yandex puts the website into some search rows itself; those places are never read twice and are not charged for a `place_website`. For the rest it is one extra request per place, against one request per 25 places for the search itself — off makes a places-only run about 25x cheaper and leaves `website` null for every place whose search row had none. Every other place field comes from the search result either way. |
| `includeReviews` | `false` | Also collect each place's public reviews as separate rows. |
| `maxReviewsPerPlace` | `50` | Upper bound on review rows per place. Yandex serves 50 per request, so this rounds up to whole pages of 50. |
| `maxUpstreamRequests` | derived | Hard ceiling on requests to Yandex Maps for the whole run. Leave empty and the Actor works one out from your inputs, so a run is never unbounded. |
| `proxyConfiguration` | Apify Unblocker, RU exit | Where the requests come from. Keep the default: it is the only configuration measured to be served (see Limits). |

At least one `searchQueries` or one `placeUrls` entry is required.

### Output

Three row kinds, told apart by `recordType`, plus a final `RUN_SUMMARY` row (also stored under the `RUN_SUMMARY` key).

**`place`** — one per place, deduplicated across the whole run.

| Field | Meaning |
| --- | --- |
| `placeId` | Yandex's own permanent identifier for the business. The dedupe key. |
| `name`, `categories`, `address`, `city`, `country`, `postalCode` | As Yandex publishes them, in the page's language. |
| `latitude`, `longitude` | The place's coordinates. |
| `phone`, `website` | The business's own published contact details. `website` is cleaned of the tracking parameters Yandex appends. |
| `rating`, `ratingCount`, `reviewCount` | Yandex counts star ratings and written reviews separately; both are reported. `rating` carries the one decimal place Yandex itself shows (`4.9`), not the float32 its page store holds. |
| `workingHoursText`, `status` | Opening hours as shown, and `open` / `closed` / `temporarily_closed`. |
| `url` | The page a human would open for this place. |
| `source`, `searchQuery`, `rank` | Which input produced the row, and its position in that term's results. |
| `placePageStatus` | `ok` when the place's own page was read. `search_only` means only the search row was read — which still carries a `website` when Yandex put one in that row, and `null` when it did not. Any other value names the reason the page could not be read, so a `null` `website` always has a stated reason and is never a guess. |
| `collectedAt` | Our own collection time. Yandex Maps publishes no creation time for a place, so a place row has no platform publish time. |

**`review`** — one per public review: `reviewId`, its parent `placeId` / `placeName` / `placeUrl`, `rating`, `text`, `textLanguage`, `publishedAt` (Yandex's own publish time), `authorName`, `likes`, `photoCount`, and `ownerReplyText` / `ownerReplyAt` for the business's reply, kept with the review it answers.

#### What is charged

| Event | Charged when |
| --- | --- |
| `place` | One place row is written. |
| `review` | One review row is written. |
| `place_website` | A place's own page had to be read for its `website`. Once per place whose page was actually read for it, whether or not that place turns out to publish a website — the request is spent either way. Never charged when `includeWebsite` is off, when the page was refused, or when the search row already carried the website (then no page is read at all). |

Nothing else is charged: a search term that returned nothing, an input cut short, the per-input status rows and the run summary are all free.

**`input_status`** — one per search term and per place link, never charged. `placesReturned`, `reviewsReturned`, `duplicatePlacesSkipped`, `totalEstimate` (Yandex's own estimate for the term), `pagesRead`, `region`, and `partial` / `partialReason` / `statusText`.

A field Yandex did not publish is `null`. It is never filled in from somewhere else.

#### Empty is not the same as incomplete

A search term Yandex answered with nothing is recorded as an empty result and says so. A term cut short by a limit, a refusal or an error is marked `partial: true` with one of: `upstream_request_cap`, `charge_limit_reached`, `blocked`, `upstream_error`, `unreadable_page`, `place_not_found`, `invalid_input`, `reviews_incomplete`, `paging_unavailable`, `not_collected`. The two are different records and are never confused, so "0 rows" always means what it says.

### Limits

- **Public pages only.** No login, no cookies, no private, age-restricted or login-only data. Reviewer data is limited to the public display name shown next to the review — no avatars, profile links or badges.
- **Business contact details only.** `phone` and `website` are the business's own published details. No personal phone numbers or e-mail addresses are collected.
- Yandex serves **25 places per result page** and runs out of results for most terms somewhere between 50 and 300 places. `totalEstimate` is Yandex's own figure and drifts between pages; treat it as an estimate.
- Reviews come **50 per request**, newest first, and each has one timestamp (the time it was last written). A high `maxReviewsPerPlace` makes a run noticeably longer and more expensive.
- `website` comes from whichever page carried it. Yandex puts the business URL into some search rows (3 of 3 on one measured term, 2 of 3 on another), so a `search_only` place can have a `website`; the rest need the place's own page, which is what `includeWebsite` pays for. With `includeWebsite` off nothing extra is read, so `website` is filled in only for the places whose search row carried it and is `null` for the others — stated, not guessed.
- **Yandex refuses most proxies.** Measured on 2026-10-23: datacenter exits and plain residential exits (RU, KZ and mixed, 12 exits in all) were answered with Yandex's SmartCaptcha page every time; Apify Unblocker with a Russian exit was served every time, so that is the default `proxyConfiguration` and your Apify plan needs Unblocker access for it. A refusal is reported as `blocked` on the affected input, with the refusing page's own status, URL and visible text in `RUN_SUMMARY.firstBlock` — never as zero results. A refused page is asked for once more, after a wait, from a fresh exit IP; if that is refused too the page is given up on.
- Place text comes back in the page's language — Russian for Russian-language regions. No translation is performed.
- No photos, menus, posts or route data. No scheduling or monitoring built in; use Apify schedules.

### Development

```sh
npm install
npm test            # offline: every test runs against trimmed real responses
```

The tests replay fixtures captured from live logged-out Yandex Maps responses, so a change in Yandex's page store breaks a test instead of quietly turning a field into `null`.

# Actor input Schema

## `searchQueries` (type: `array`):

One Yandex Maps search term per line, in the local language where you can - "кофейня" returns far more than "coffee shop". Each term is searched separately and its results are labelled with it. Use the City field below to pin every term to one city. A place that matches several of your terms is returned once and charged once.

## `city` (type: `string`):

City or region to search in, in the local language: "Москва", "Санкт-Петербург", "Казань", "Алматы". It is appended to every search term that does not already name it, and the run reports which region Yandex resolved it to. Leave empty to search wherever Yandex places the term.

## `placeUrls` (type: `array`):

Collect specific places instead of, or in addition to, searching. Paste the Yandex Maps place URL (https://yandex.com/maps/org/.../235936768533/) or just the numeric place ID. Search terms are not required when this is filled in.

## `maxPlaces` (type: `integer`):

Upper bound on the places one search term may produce. Yandex Maps serves 25 places per result page, so this rounds up to whole pages. Yandex itself runs out of results for most terms somewhere between 50 and 300 places; when it does, the row count is Yandex's limit, not this setting, and the run says so per term.

## `includeWebsite` (type: `boolean`):

The search result already carries name, categories, address, coordinates, published phone, rating, review count and opening hours - and, for some places, the business website too. With this on, a place whose search row has no website gets its own page read for one, which is one extra request per place - against one request per 25 places for the search itself, so turning this off makes a places-only run about 25x cheaper and leaves website null wherever the search row had none. A place whose search row already carried the website is never read twice and is not charged for a place_website. Place links you paste always read the place page, because there is no search result for them.

## `includeReviews` (type: `boolean`):

With this on, every place also gets its public reviews as separate rows: star rating, review text, publish time, the reviewer's public display name, and the owner's reply when there is one. Reviews come 50 per request, so a high Max reviews per place makes a run noticeably longer and more expensive. Off by default.

## `maxReviewsPerPlace` (type: `integer`):

Upper bound on the review rows one place may produce. Yandex serves 50 reviews per request, so this rounds up to whole pages of 50. Only used when Also collect public reviews is on.

## `maxUpstreamRequests` (type: `integer`):

Hard ceiling on the HTTP requests this run sends to Yandex Maps: search pages, place pages, reviews pages and retries together. At the ceiling collection stops - the inputs not reached are written with partialReason "upstream_request_cap" and the run then ends normally. Leave empty and the Actor works a ceiling out from your inputs and limits, so a run is never unbounded.

## `proxyConfiguration` (type: `object`):

The proxy the requests to Yandex Maps go through. Keep the default. Yandex answers datacenter and plain residential exits with its SmartCaptcha page, measured on 2026-10-23 across 12 exits in RU, KZ and mixed; Apify Unblocker with a Russian exit is the only configuration that gets served, so it is the default. A run that is refused anyway reports blocked with the refusing page's own signature, never zero results.

## Actor input object example

```json
{
  "searchQueries": [
    "кофейня"
  ],
  "city": "Москва",
  "maxPlaces": 50,
  "includeWebsite": true,
  "includeReviews": false,
  "maxReviewsPerPlace": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ],
    "apifyProxyCountry": "RU"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "кофейня"
    ],
    "city": "Москва"
};

// Run the Actor and wait for it to finish
const run = await client.actor("lanternlab318/yandex-maps").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQueries": ["кофейня"],
    "city": "Москва",
}

# Run the Actor and wait for it to finish
run = client.actor("lanternlab318/yandex-maps").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "кофейня"
  ],
  "city": "Москва"
}' |
apify call lanternlab318/yandex-maps --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lanternlab318/yandex-maps"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/pff5pbFYpxL33mXyu/builds/W0OgTsgplAgdXJNre/openapi.json
