{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Maps Search Scraper",
    "description": "[ 1k / 1$ ] Yandex Maps scraper: search places and businesses by keyword around a latitude, longitude and zoom level, in your language and Yandex domain, and extract names, addresses, coordinates, categories, ratings, phones and websites, with optional opening hours, reviews and photos.",
    "version": "0.1",
    "x-build-id": "ZFbX9jQX8JAyrdHpG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/alpha-scraper~yandex-maps-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-alpha-scraper-yandex-maps-search-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/alpha-scraper~yandex-maps-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-alpha-scraper-yandex-maps-search-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/alpha-scraper~yandex-maps-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-alpha-scraper-yandex-maps-search-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": {
          "queries": {
            "title": "Place Keywords",
            "type": "array",
            "description": "One or more kinds of places or business names to look for (for example 'coffee', 'pharmacy', 'hotel'). Russian terms usually return more results. Every keyword is searched on its own and gets its own 'Max Items Per Keyword'.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Items Per Keyword",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of places to extract per keyword. Yandex Maps returns 25 places per result page; the Actor loads page after page until this number is reached or a page brings no new places.",
            "default": 15
          },
          "latitude": {
            "title": "Search Area Center Latitude",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "Latitude of the centre of the map area that is searched, in decimal degrees (-90 to 90). Yandex ranks places for this map area, it does not search the whole world for a text. Default is central Moscow (55.7558). Examples: Saint Petersburg 59.9343, Istanbul 41.0082, Kyiv 50.4501, Minsk 53.9006, Almaty 43.2389.",
            "default": 55.7558
          },
          "longitude": {
            "title": "Search Area Center Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Longitude of the centre of the map area that is searched, in decimal degrees (-180 to 180). Default is central Moscow (37.6173). Examples: Saint Petersburg 30.3351, Istanbul 28.9784, Kyiv 30.5234, Minsk 27.5590, Almaty 76.8897.",
            "default": 37.6173
          },
          "zoom": {
            "title": "Map Zoom Level",
            "minimum": 10,
            "maximum": 16,
            "type": "integer",
            "description": "Zoom of the map window around the centre point, from 10 (a whole metropolitan area) to 16 (a few streets); this is the range the Actor is built for. Higher values narrow the area that the results are ranked for.",
            "default": 12
          },
          "language": {
            "title": "Result Language",
            "type": "string",
            "description": "Yandex locale of the result texts such as category names and address parts, for example 'en_US', 'ru_RU' or 'tr_TR'. Russian is the most complete; some fields may stay in Russian whatever you choose. You can also type another locale code.",
            "default": "en_US"
          },
          "domain": {
            "title": "Yandex Domain",
            "enum": [
              "yandex.com",
              "yandex.ru"
            ],
            "type": "string",
            "description": "Which Yandex site is used for the search and for the place links in the results: yandex.com or yandex.ru.",
            "default": "yandex.com"
          },
          "fetchDetails": {
            "title": "Fetch Place Details",
            "type": "boolean",
            "description": "Open each place's own Yandex Maps page and add postal code, chain, feature lists (price levels, payment methods and similar), structured opening hours per weekday, photo URLs and logo, review aspects with positive / neutral / negative counts, the newest reviews shown on the page (rating, text, language, date, likes; reviewer names and avatars are not kept), the business's own posts, popular menu items with prices, awards, nearby public-transport stops, entrances and region path. One request per place, at least 1.5 seconds apart, after reading robots.txt; a captcha stops this step and 'orgPageStatus' says what happened. Turn off for a faster run with search-result data only.",
            "default": true
          },
          "detailLimit": {
            "title": "Max Places To Enrich",
            "minimum": 0,
            "type": "integer",
            "description": "Caps how many places per keyword get details. 0 means no cap. Used only while 'Fetch Place Details' is on; places beyond the cap keep their search data and are marked 'skipped: detailLimit'.",
            "default": 0
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}