{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Maps Scraper | Парсер Яндекс Карт - All Places in a City",
    "description": "$4.00 per 1,000 places. Every Yandex Maps place for a category in Russian cities, not just the first 1,000: name, phones, website, address, hours, rating, coordinates. Все места категории в городе с Яндекс Карт: телефоны, сайт, адрес, часы, рейтинг.",
    "version": "0.1",
    "x-build-id": "RSsvG5s5mVMli8IiQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automa-flow~yandex-maps-places/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automa-flow-yandex-maps-places",
        "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/automa-flow~yandex-maps-places/runs": {
      "post": {
        "operationId": "runs-sync-automa-flow-yandex-maps-places",
        "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/automa-flow~yandex-maps-places/run-sync": {
      "post": {
        "operationId": "run-sync-automa-flow-yandex-maps-places",
        "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",
        "required": [
          "queries"
        ],
        "properties": {
          "queries": {
            "title": "What to search / Что искать",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Categories or any words, one per line, in Russian or English, for example кафе, стоматология, автосервис or dentist. Each one runs in every city below. Up to 20.",
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities / Города",
            "maxItems": 20,
            "type": "array",
            "description": "City names in any spelling (Москва, Moscow, Санкт-Петербург, Казань) or Yandex region ids (213 is Moscow, 2 is Saint Petersburg), one per line. Up to 20. Leave empty to search only the map area below. Crimea, Sevastopol and the Donetsk, Luhansk, Zaporizhzhia and Kherson oblasts are not covered.",
            "items": {
              "type": "string"
            }
          },
          "boundingBox": {
            "title": "Map area / Область на карте",
            "required": [
              "south",
              "west",
              "north",
              "east"
            ],
            "type": "object",
            "description": "Optional rectangle to search instead of, or next to, the cities: south and north latitudes, west and east longitudes in degrees, at most 10 degrees each way. Example: {\"south\": 55.70, \"west\": 37.50, \"north\": 55.80, \"east\": 37.70}.",
            "properties": {
              "south": {
                "title": "South",
                "type": "number",
                "description": "Southern edge, latitude in degrees.",
                "minimum": -90,
                "maximum": 90
              },
              "west": {
                "title": "West",
                "type": "number",
                "description": "Western edge, longitude in degrees.",
                "minimum": -180,
                "maximum": 180
              },
              "north": {
                "title": "North",
                "type": "number",
                "description": "Northern edge, latitude in degrees.",
                "minimum": -90,
                "maximum": 90
              },
              "east": {
                "title": "East",
                "type": "number",
                "description": "Eastern edge, longitude in degrees.",
                "minimum": -180,
                "maximum": 180
              }
            },
            "additionalProperties": false
          },
          "maxItems": {
            "title": "Max places / Максимум мест",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Unique places for the whole run, across every search and city. You pay only for places delivered. A big city can hold tens of thousands of places for a broad category.",
            "default": 50
          },
          "fullCoverage": {
            "title": "Every place in the city / Все места в городе",
            "type": "boolean",
            "description": "On: when a search reaches Yandex's 1,000-place list limit and you asked for more, the map is split into smaller areas until every area is searched to its end. Off: only the plain list, at most 1,000 places per search.",
            "default": true
          },
          "maxItemsPerSearch": {
            "title": "Max places per search",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Optional cap for each search on its own (each search term in each city). Empty: only the run's Max places applies."
          },
          "onlyWithPhone": {
            "title": "Only places with a phone",
            "type": "boolean",
            "description": "Skip places without a phone number. Skipped places are not charged.",
            "default": false
          },
          "onlyWithWebsite": {
            "title": "Only places with a website",
            "type": "boolean",
            "description": "Skip places without a website. Skipped places are not charged.",
            "default": false
          },
          "language": {
            "title": "Language / Язык",
            "enum": [
              "ru",
              "en"
            ],
            "type": "string",
            "description": "Language of names, addresses and categories as Yandex Maps shows them: ru (Russian) or en (English).",
            "default": "ru"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}