{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Maps Scraper — Places, Reviews, Phones & Emails",
    "description": "Scrape Yandex Maps places by keyword and city, map area or URL: name, address, phones, website, social links, rating, opening hours, menu, busy hours, INN, plus unlimited reviews, photos, posts and e-mails. Whole cities, not just 600 results. Export to JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "8BHyDUO6xjdqCQkdx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nice_dev~yandex-maps-places-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nice_dev-yandex-maps-places-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/nice_dev~yandex-maps-places-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nice_dev-yandex-maps-places-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/nice_dev~yandex-maps-places-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nice_dev-yandex-maps-places-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "maxItems": 1000,
            "type": "array",
            "description": "Yandex Maps URLs: search results (`https://yandex.com/maps/213/moscow/search/dentist/`, the map area and filters of the URL are kept), place pages (`https://yandex.ru/maps/org/<name>/<id>/`, also `/reviews/`) or short links (`https://yandex.ru/maps/-/CDabc123`). yandex.ru, .com, .com.tr, .kz, .by, .uz are accepted. When this list or **Place IDs** is not empty, the search fields below (keywords, locations, map area) are ignored; filters, caps, reviews and monitoring still apply. Max 1 000 URLs.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "businessIds": {
            "title": "Place IDs",
            "maxItems": 1000,
            "uniqueItems": true,
            "type": "array",
            "description": "Yandex Maps place IDs (the number at the end of a place URL, e.g. `1124715036`). One request per place. Added to **Start URLs**: the search fields below are then ignored.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search keyword",
            "maxLength": 200,
            "type": "string",
            "description": "What to look for, as typed on Yandex Maps, in any language (e.g. `dentist`, `стоматология`, `кафе`, `kuaför`)."
          },
          "searchQueries": {
            "title": "More search keywords",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Several keywords in one run: one search per keyword (times each location below). Added to **Search keyword**; places found by several searches are saved once.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "location": {
            "title": "Location",
            "maxLength": 200,
            "type": "string",
            "description": "City, district, street or country, as typed on Yandex Maps (e.g. `Moscow`, `Санкт-Петербург`, `Istanbul`, `Almaty`, `Kazan, Bauman street`). The whole area of the place is searched (split in tiles when needed). Empty = the map area below, or Moscow."
          },
          "locations": {
            "title": "More locations",
            "maxItems": 100,
            "uniqueItems": true,
            "type": "array",
            "description": "Several locations in one run: every keyword is searched in every location (3 keywords × 4 locations = 12 searches, max 500). Added to **Location**.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "coordinates": {
            "title": "Map center (longitude,latitude)",
            "pattern": "^\\s*-?\\d{1,3}(\\.\\d+)?\\s*,\\s*-?\\d{1,2}(\\.\\d+)?\\s*$",
            "maxLength": 60,
            "type": "string",
            "description": "Search around this point instead of a named location: `longitude,latitude` in decimal degrees, longitude FIRST as in Yandex URLs (e.g. `37.6173,55.7558` = Moscow center). Used with **Map span** or **Radius**; ignored when a location is given."
          },
          "viewportSpan": {
            "title": "Map span (longitude,latitude)",
            "pattern": "^\\s*\\d{1,3}(\\.\\d+)?\\s*,\\s*\\d{1,2}(\\.\\d+)?\\s*$",
            "maxLength": 60,
            "type": "string",
            "description": "Size of the searched area around **Map center**, in degrees: `width,height` (e.g. `0.2,0.1` ≈ 12 × 11 km in Moscow). Default `0.2,0.1`."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Search a square of this half-size around **Map center** instead of **Map span** (e.g. `5` = 10 × 10 km). 0 = use Map span.",
            "default": 0
          },
          "boundingBox": {
            "title": "Map rectangle",
            "pattern": "^\\s*-?\\d{1,3}(\\.\\d+)?\\s*,\\s*-?\\d{1,2}(\\.\\d+)?\\s*,\\s*-?\\d{1,3}(\\.\\d+)?\\s*,\\s*-?\\d{1,2}(\\.\\d+)?\\s*$",
            "maxLength": 120,
            "type": "string",
            "description": "Search this rectangle: `west,south,east,north` in decimal degrees (e.g. `37.35,55.57,37.85,55.92` = Moscow inside the ring road). Wins over Map center; ignored when a location is given."
          },
          "splitArea": {
            "title": "Split big areas automatically",
            "type": "boolean",
            "description": "One Yandex search shows at most ~650 distinct places. When a search fills up, its area is cut into 4 tiles and each tile is searched again (and so on), so a whole city can be covered. Off = one search per keyword × location (faster, fewer places).",
            "default": true
          },
          "tileGrid": {
            "title": "Start grid (tiles per side)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Cut every searched area into N × N tiles from the start (e.g. `4` = 16 searches), before any automatic split. 1 = one search per area.",
            "default": 1
          },
          "maxItems": {
            "title": "Max places",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of places to save for the whole run (after deduplication and filters). 0 = no limit.",
            "default": 100
          },
          "maxItemsPerQuery": {
            "title": "Max places per search",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap for EACH search (keyword × location, or search URL), so that the first search cannot use up the whole **Max places** budget. 0 = no per-search cap.",
            "default": 0
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "ru",
              "tr",
              "uk",
              "kk"
            ],
            "type": "string",
            "description": "Language of names, addresses, categories, opening hours and feature labels (Yandex translates or transliterates them). Review texts stay as written; their Yandex translations are in `textTranslations`. Yandex collections (the collections field) come with Russian, Ukrainian or Kazakh only.",
            "default": "en"
          },
          "includeDetails": {
            "title": "Place details (full menu / price list)",
            "type": "boolean",
            "description": "Open each place (1 extra request per place) for its full menu / price list. Charged as a separate event, see Pricing. Off = search-result fields only (they already carry the busy hours, rating, phones, features and a short menu).",
            "default": true
          },
          "minRating": {
            "title": "Minimum place rating",
            "enum": [
              "",
              "4",
              "4.5",
              "4.7",
              "4.9"
            ],
            "type": "string",
            "description": "Only places rated at least this (Yandex filter, then checked on each place by the Actor: a place it drops is charged as a *Filter check*).",
            "default": ""
          },
          "openNow": {
            "title": "Open now",
            "type": "boolean",
            "description": "Only places open at the time of the run (Yandex filter).",
            "default": false
          },
          "open24h": {
            "title": "Open 24 hours",
            "type": "boolean",
            "description": "Only places open around the clock (Yandex filter).",
            "default": false
          },
          "goodPlaceOnly": {
            "title": "\"Good place\" award only",
            "type": "boolean",
            "description": "Only places with the Yandex \"Good place\" award (Yandex filter).",
            "default": false
          },
          "hasPhotos": {
            "title": "With photos only",
            "type": "boolean",
            "description": "Only places that have photos (Yandex filter).",
            "default": false
          },
          "categoryIds": {
            "title": "Yandex category IDs",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Only places of these Yandex categories (rubric IDs, e.g. `184106132` = dental clinic; the ID of each place's categories is in the output). Yandex filter.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "chainIds": {
            "title": "Chain IDs",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Only the branches of these chains (chain ID, in the `chainId` output field). Yandex filter.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "customFilters": {
            "title": "Other Yandex filters",
            "maxItems": 20,
            "uniqueItems": true,
            "type": "array",
            "description": "Any other filter shown by Yandex for the search, as `filterId:value` (e.g. `car_park:1`, `wheelchair_accessability:1`, `payment_by_credit_card:1`, `type_cuisine:georgian_cuisine`). Tick **Debug log** to see the filters Yandex offers for each search in the run log; they are also listed when a filter is refused. A filter Yandex does not know for the search is reported and the search stops, instead of returning unfiltered places.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "requirePhone": {
            "title": "With phone only",
            "type": "boolean",
            "description": "Drop the places without a phone number.",
            "default": false
          },
          "requireWebsite": {
            "title": "With website only",
            "type": "boolean",
            "description": "Drop the places without a website (the Yandex \"has website\" filter is sent too).",
            "default": false
          },
          "minReviewCount": {
            "title": "Minimum number of reviews",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Drop the places with fewer reviews than this. 0 = no minimum.",
            "default": 0
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Drop the places whose name or category contains one of these words (case and accents ignored).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeBusinessIds": {
            "title": "Exclude place IDs",
            "maxItems": 10000,
            "uniqueItems": true,
            "type": "array",
            "description": "Never save these places (e.g. your own branches, or places you already have).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Add the reviews of each place (50 per request), with author, rating, date, text, Yandex translations, likes, photos and the owner's answer.",
            "default": false
          },
          "maxReviewsPerPlace": {
            "title": "Max reviews per place",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of reviews per place. Yandex shows 600 reviews per sort order; above 600 (or 0 = as many as possible) the 4 sort orders are merged, which roughly doubles what one order gives.",
            "default": 100
          },
          "reviewSort": {
            "title": "Review order",
            "enum": [
              "newest",
              "relevance",
              "highest",
              "lowest"
            ],
            "type": "string",
            "description": "Order in which reviews are read (and cut by Max reviews per place).",
            "default": "newest"
          },
          "postedAfter": {
            "title": "Reviews posted after",
            "type": "string",
            "description": "Only reviews written (or last edited) on or after this date: `2026-09-01`, or a period before now such as `7 days`, `2 weeks`, `1 month` (API: `24 hours` and full ISO date-times work too). Places are never dropped by this filter."
          },
          "postedBefore": {
            "title": "Reviews posted before",
            "type": "string",
            "description": "Only reviews written on or before this date (the whole day is included), or older than a period such as `30 days`."
          },
          "minReviewRating": {
            "title": "Minimum review rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Only reviews rated at least this many stars (1-5). 0 = all.",
            "default": 0
          },
          "maxReviewRating": {
            "title": "Maximum review rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Only reviews rated at most this many stars (e.g. `2` = complaints only). 0 = all.",
            "default": 0
          },
          "onlyWithText": {
            "title": "Reviews with text only",
            "type": "boolean",
            "description": "Drop the ratings without any text.",
            "default": false
          },
          "onlyWithBusinessReply": {
            "title": "Reviews with an owner's answer only",
            "type": "boolean",
            "description": "Keep only the reviews the business answered.",
            "default": false
          },
          "reviewKeywords": {
            "title": "Review keywords",
            "maxItems": 50,
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only the reviews whose text contains one of these words (case and accents ignored).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includePhotos": {
            "title": "Include photos",
            "type": "boolean",
            "description": "Add the photo gallery of each place (full-size URL, size, tags, author and date), up to **Max photos per place**. The cover photo and the photo count are always in the output.",
            "default": false
          },
          "maxPhotos": {
            "title": "Max photos per place",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of photos per place. 0 = all.",
            "default": 50
          },
          "includePosts": {
            "title": "Include posts",
            "type": "boolean",
            "description": "Add the news / posts published by the business on its Yandex page (text, date, photos), up to **Max posts per place**. The post count and the latest post preview are always in the output.",
            "default": false
          },
          "maxPosts": {
            "title": "Max posts per place",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of posts per place. 0 = all.",
            "default": 20
          },
          "enrichEmails": {
            "title": "Find e-mails on the business website",
            "type": "boolean",
            "description": "Yandex Maps shows no e-mail. On: open the place's own website (home page + contact / legal pages linked from it, 3 pages at most) and add the e-mail addresses found there to `emails`. Only for places with a website.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new places",
            "type": "boolean",
            "description": "Skip the places that a previous run (same **Memory key**) already delivered: they are not saved and not charged. First run = everything is new.",
            "default": false
          },
          "onlyNewReviews": {
            "title": "Only new reviews",
            "type": "boolean",
            "description": "With **Include reviews**: return every place, but only the reviews a previous run (same **Memory key**) did not deliver (`reviews` then holds the new ones only). With Newest first: the reviews written since — reading stops at the first already-known review, and older reviews a previous run left out (its **Max reviews per place**) are not returned either.",
            "default": false
          },
          "stateKey": {
            "title": "Memory key",
            "pattern": "^[a-zA-Z0-9_-]{1,64}$",
            "maxLength": 64,
            "type": "string",
            "description": "Name of the memory used by **Only new places** and **Only new reviews**. Give each schedule / task its own key (e.g. `moscow-dentists`) so that they do not share their memory. Letters, digits, `-` and `_`.",
            "default": "default"
          },
          "resetState": {
            "title": "Reset the memory",
            "type": "boolean",
            "description": "Forget everything remembered under this **Memory key** before the run: this run returns (and charges) everything again. Untick it afterwards.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy or your own proxies. Keep the default: it is included in the price. The residential Apify proxy is not available in this Actor.",
            "default": {
              "useApifyProxy": true
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum number of requests processed in parallel.",
            "default": 8
          },
          "maxRequestsPerMinute": {
            "title": "Max requests per minute",
            "minimum": 10,
            "maximum": 3000,
            "type": "integer",
            "description": "Most requests to Yandex Maps in any 60 seconds, all of them counted: search pages, places, pages of reviews, photos and posts, session tokens. A budget, not an even pace: up to this many can leave at once when the minute starts (spread them with the minimum delay below). E-mail lookups on the places' own websites are not counted.",
            "default": 600
          },
          "minRequestIntervalMs": {
            "title": "Minimum delay between requests (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Wait at least this long between two requests. 0 = no delay.",
            "default": 0
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Retries per request before it is marked as failed. Behind a proxy, a request the site turns away is also retried on a new proxy session up to 10 times without using up these retries.",
            "default": 5
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Verbose log.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}