{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Maps Places Scraper",
    "description": "Yandex Maps Places Scraper - businesses and places by keyword and city or by link: category, address, GPS, rating, review counts, opening hours, features, menu, chain, metro, photos, website, social links and the latest reviews.",
    "version": "1.0",
    "x-build-id": "JpQ2VF6c6wnVfqPIm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~yandex-maps-places-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-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/neuro-scraper~yandex-maps-places-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-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/neuro-scraper~yandex-maps-places-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "What to search on Yandex Maps, e.g. cafe, hotel, dentist, car repair. Each keyword gets its own limit.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search keyword (single)",
            "type": "string",
            "description": "One keyword, same as Search keywords (kept for tools that use this name).",
            "default": ""
          },
          "location": {
            "title": "Location (city or area)",
            "type": "string",
            "description": "City, district or address the search is centred on, e.g. Moscow, Saint Petersburg, Kazan, Almaty, Istanbul.",
            "default": ""
          },
          "city": {
            "title": "City (alias)",
            "type": "string",
            "description": "Same as Location (kept for tools that use this name).",
            "default": ""
          },
          "coordinates": {
            "title": "Centre coordinates",
            "type": "string",
            "description": "Optional centre as \"latitude,longitude\", e.g. 55.7558,37.6176. Overrides Location.",
            "default": ""
          },
          "latitude": {
            "title": "Centre latitude",
            "type": "string",
            "description": "Optional centre latitude (with Centre longitude), e.g. 55.7558.",
            "default": ""
          },
          "longitude": {
            "title": "Centre longitude",
            "type": "string",
            "description": "Optional centre longitude (with Centre latitude), e.g. 37.6176.",
            "default": ""
          },
          "radiusKm": {
            "title": "Search radius (km)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How far from the centre map cells are searched. Bigger = more places.",
            "default": 5
          },
          "zoom": {
            "title": "Map zoom of each cell",
            "minimum": 10,
            "maximum": 19,
            "type": "integer",
            "description": "Zoom level of every map cell (10-19). Higher zoom = smaller cells = more places per area, more requests.",
            "default": 15
          },
          "cellStepKm": {
            "title": "Distance between map cells (km)",
            "type": "string",
            "description": "Optional distance between cell centres. Empty = chosen from the zoom (1.6 km at zoom 15).",
            "default": ""
          },
          "viewportSpan": {
            "title": "Map cell span (degrees)",
            "type": "string",
            "description": "Optional size of each map cell as \"longitude span,latitude span\" in degrees, e.g. 0.03,0.015. Overrides the distance between cells.",
            "default": ""
          },
          "maxItems": {
            "title": "Max places per keyword",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "How many places each keyword returns.",
            "default": 50
          },
          "startUrls": {
            "title": "Place links",
            "type": "array",
            "description": "Yandex Maps place links, e.g. https://yandex.com/maps/org/mu_mu/1198937086/. Each gives one row with full details.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "businessIds": {
            "title": "Place ids",
            "type": "array",
            "description": "Yandex Maps place (organization) ids, e.g. 1198937086.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeBusinessIds": {
            "title": "Exclude place ids",
            "type": "array",
            "description": "Place ids that are skipped (e.g. places you already have).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category filter",
            "type": "array",
            "description": "Keep only places whose category contains one of these words, e.g. Cafe, Restaurant, Hotel.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minRating": {
            "title": "Minimum rating",
            "type": "string",
            "description": "Keep only places rated at least this (1-5), e.g. 4.5. Empty = all.",
            "default": ""
          },
          "filterOpenNow": {
            "title": "Open now only",
            "type": "boolean",
            "description": "Keep only places that are open at run time.",
            "default": false
          },
          "requireWebsite": {
            "title": "Only places with a website",
            "type": "boolean",
            "description": "Keep only places that list a website.",
            "default": false
          },
          "priceCategories": {
            "title": "Price categories",
            "type": "array",
            "description": "Keep only places in these price categories, e.g. low, average, high, very high.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "goodPlaceOnly": {
            "title": "Good Place award only",
            "type": "boolean",
            "description": "Keep only places with the Good Place award.",
            "default": false
          },
          "sortBy": {
            "title": "Sort results",
            "enum": [
              "relevance",
              "rating",
              "reviews",
              "distance"
            ],
            "type": "string",
            "description": "Order of the places of each keyword. Other than Yandex order, the rows of a keyword are written when the keyword is finished.",
            "default": "relevance"
          },
          "reviewsSince": {
            "title": "Reviews since (date)",
            "type": "string",
            "description": "Only reviews on or after this date go into the reviews column (YYYY-MM-DD).",
            "default": ""
          },
          "deduplicate": {
            "title": "Remove duplicates across keywords",
            "type": "boolean",
            "description": "A place found by several keywords is written once.",
            "default": true
          },
          "includeDetails": {
            "title": "Include full place details",
            "type": "boolean",
            "description": "Open every place for related places, review aspects and the full record.",
            "default": true
          },
          "includeReviews": {
            "title": "Include reviews",
            "type": "boolean",
            "description": "Add the latest reviews of every place to the reviews column.",
            "default": false
          },
          "maxReviews": {
            "title": "Reviews per place",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many reviews go into the reviews column (up to 50). For more reviews use the Yandex Maps Reviews Scraper.",
            "default": 10
          },
          "maxPhotos": {
            "title": "Max photos per place",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "How many photo links go into the photos column (0 = none).",
            "default": 20
          },
          "includeMenu": {
            "title": "Include menu",
            "type": "boolean",
            "description": "Add the menu / price list (popular items with price and photo).",
            "default": true
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "ru",
              "tr",
              "kk",
              "uz",
              "by"
            ],
            "type": "string",
            "description": "Language of names, categories, hours and features.",
            "default": "en"
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many pages are read at the same time.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy. Residential IPs are used by default.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}