{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Maps Reviews Scraper",
    "description": "Scrape public Yandex Maps (Яндекс Карты) place reviews by org URL or business ID, with author, rating, text, date, photos and business replies. For place search, use Yandex Maps Scraper.",
    "version": "0.2",
    "x-build-id": "q6YHNX9lL3QCfP1F8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~yandex-maps-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-yandex-maps-reviews-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/khadinakbar~yandex-maps-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-yandex-maps-reviews-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/khadinakbar~yandex-maps-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-yandex-maps-reviews-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 place URLs",
            "type": "array",
            "description": "Yandex Maps place links to scrape reviews from, for example https://yandex.com/maps/org/tanuki/1036014863/reviews/ . Also accepts maps.yandex.ru links. Up to 50 different places per run. This is not a search box: to find places first, use the Yandex Maps Scraper.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "businessIds": {
            "title": "Business / org IDs",
            "type": "array",
            "description": "Numeric Yandex organization IDs when you already have them (for example 1036014863). Combined with startUrls and deduped by ID. Use this for batch jobs from yandex-maps-scraper output. Invalid non-numeric values are skipped.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxReviewsPerPlace": {
            "title": "Max reviews per place",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Most reviews to save per place, from 1 to 600. Yandex itself shows only the first 600 reviews of any place, so 600 is the real maximum. You are charged only for reviews that are saved.",
            "default": 50
          },
          "maxPlaces": {
            "title": "Max places per run",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Most different places to process in one run (1 to 50). Lower it to keep a long list of links cheap.",
            "default": 50
          },
          "reviewSort": {
            "title": "Sort reviews by",
            "enum": [
              "relevance",
              "newest",
              "highest",
              "lowest"
            ],
            "type": "string",
            "description": "Order of the saved reviews. relevance keeps Yandex's own order. newest, highest and lowest re-sort the reviews Yandex serves for the place (up to 600) and then keep the first ones.",
            "default": "relevance"
          },
          "minRating": {
            "title": "Minimum star rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews with at least this many stars (1 to 5). 0 means no limit. Reviews that do not match are never charged.",
            "default": 0
          },
          "maxRating": {
            "title": "Maximum star rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Keep only reviews with at most this many stars (1 to 5). 0 means no limit. Use 2 to collect complaints. Reviews that do not match are never charged.",
            "default": 0
          },
          "sinceDate": {
            "title": "Only reviews since (date)",
            "type": "string",
            "description": "Keep only reviews written or last edited on or after this date, for example 2026-01-01. Leave empty for all dates. Reviews before the date are never charged."
          },
          "keyword": {
            "title": "Only reviews containing a word",
            "type": "string",
            "description": "Keep only reviews whose text contains this word or phrase. Separate several words with commas; a review matches if it contains any of them. Capital letters do not matter. Leave empty for no filter."
          },
          "onlyWithOwnerReply": {
            "title": "Only reviews with an owner reply",
            "type": "boolean",
            "description": "Keep only reviews where the business has answered. Reviews without an answer are never charged.",
            "default": false
          },
          "onlyWithPhotos": {
            "title": "Only reviews with photos",
            "type": "boolean",
            "description": "Keep only reviews that have at least one photo attached. Reviews without photos are never charged.",
            "default": false
          },
          "newOnly": {
            "title": "Only new reviews since the last run",
            "type": "boolean",
            "description": "Off by default. When on, the Actor remembers which reviews it already delivered for each place (in a storage on your account) and returns only reviews it has not delivered before. Useful for weekly checks.",
            "default": false
          },
          "includePhotos": {
            "title": "Include photo URLs",
            "type": "boolean",
            "description": "When true, attach public review photo URL templates (size resolved to orig). Defaults to true. Set false for smaller rows when you only need text and ratings.",
            "default": true
          },
          "language": {
            "title": "Yandex domain language",
            "enum": [
              "en",
              "ru",
              "tr"
            ],
            "type": "string",
            "description": "Chooses the default Yandex host for bare business IDs: en→yandex.com, ru→yandex.ru, tr→yandex.com.tr. Place URLs keep their own host. Does not translate review text.",
            "default": "en"
          },
          "proxyConfiguration": {
            "title": "Proxy (optional backup)",
            "type": "object",
            "description": "Normally not needed: the Actor first asks Yandex directly. If Yandex refuses a page, a backup route is used automatically, limited so it stays a small share of the cost. Set your own proxy here only if you want that backup to use it."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}