{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Maps Places Scraper - Emails, Phones & Reviews",
    "description": "Scrapes Yandex Maps (yandex.com/maps) businesses by search and location, map area or link: name, address, phone, website, business emails, social links, hours, rating, categories, photos, menu and reviews. Cache for new places only.",
    "version": "1.0",
    "x-build-id": "kNhxsqOmszb3aNbpY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/confidential_gnat~yandex-maps-places-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-confidential_gnat-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/confidential_gnat~yandex-maps-places-scraper/runs": {
      "post": {
        "operationId": "runs-sync-confidential_gnat-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/confidential_gnat~yandex-maps-places-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-confidential_gnat-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": "Yandex Maps links",
            "type": "array",
            "description": "Search links (https://yandex.com/maps/213/moscow/search/coffee/, with ll, spn or filter parameters if you like) or place links (https://yandex.com/maps/org/name/1234567890/).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "What to find and where, for example coffee in Moscow, dentist in Almaty or hotel in Istanbul. The part after \"in\" is the location. A keyword without \"in\" is searched in the locations below.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "What to look for, for example coffee, dentist, hotel or pharmacy. Each query is searched in every location below. Any language works. Use this together with Locations, or put the place in a keyword instead.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Cities, districts or addresses to search in, for example Moscow, Almaty or Istanbul. Each name is looked up on Yandex Maps and its whole area is searched.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max items per search",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum places saved for each query and location (or for each link). One Yandex search shows about 1,000 places at most; above that the area is split into smaller map areas automatically.",
            "default": 2
          },
          "scrapeEmail": {
            "title": "Scrape emails from websites",
            "type": "boolean",
            "description": "Open each place's own website (its home page and, if needed, its contact page) and save the email addresses found there. Yandex Maps does not show emails, so this makes runs slower. Places without a website get no emails.",
            "default": false
          },
          "cacheProjectName": {
            "title": "Cache project name - [Avoid duplicate results across multiple runs]",
            "type": "string",
            "description": "Use the same name on each scheduled run to get only new or changed places. Places already saved under this name with the same rating, review count, status, phones and hours are skipped, not charged and not counted towards Max items. Each record gets a changeType: new or updated."
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "ru",
              "kk",
              "tr",
              "az"
            ],
            "type": "string",
            "description": "Language of categories, addresses and other texts. Business names stay as their owners wrote them.",
            "default": "en"
          },
          "minRating": {
            "title": "Minimum rating",
            "enum": [
              "3.0",
              "3.5",
              "4.0",
              "4.5",
              "4.7",
              "4.9"
            ],
            "type": "string",
            "description": "Only places rated at least this high."
          },
          "goodPlaceOnly": {
            "title": "Good Place award only",
            "type": "boolean",
            "description": "Only places that carry the Yandex Good Place award.",
            "default": false
          },
          "priceCategory": {
            "title": "Price level",
            "enum": [
              "cheap",
              "reasonable",
              "expensive",
              "very_expensive"
            ],
            "type": "string",
            "description": "Only places of this price level (used by food and drink places)."
          },
          "categories": {
            "title": "Category names",
            "type": "array",
            "description": "Keep only places with one of these category names (partial match, in the language chosen above), for example cafe or coffee shop.",
            "items": {
              "type": "string"
            }
          },
          "latitude": {
            "title": "Latitude",
            "type": "number",
            "description": "Search around a point instead of (or as well as) a named location. Used together with longitude."
          },
          "longitude": {
            "title": "Longitude",
            "type": "number",
            "description": "Longitude of the point to search around."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 0.1,
            "maximum": 200,
            "type": "number",
            "description": "Half the width of the area searched around the latitude and longitude.",
            "default": 5
          },
          "organizationIds": {
            "title": "Organization IDs",
            "type": "array",
            "description": "Yandex organization ids (the number at the end of a place link) to scrape directly.",
            "items": {
              "type": "string"
            }
          },
          "maxReviews": {
            "title": "Reviews per place",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "How many reviews to save with each place (author, rating, text, date, likes, owner reply). 0 means none. Reviews are read 50 at a time and make runs slower.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Leave off to use the default proxy.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "UNBLOCKER"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}