{
  "openapi": "3.0.1",
  "info": {
    "title": "Yandex Maps Reviews Scraper",
    "description": "Extract Yandex Maps reviews for any place by org id or URL: text, 1-5 rating, date, language and translations, author, photos, likes and the owner's response with its date, plus place rating and aspect counts. Date and rating filters. Export JSON, CSV or Excel.",
    "version": "1.0",
    "x-build-id": "7jkBgMshSI4ZHiENd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/valiant_quarter~yandex-maps-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-valiant_quarter-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/valiant_quarter~yandex-maps-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-valiant_quarter-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/valiant_quarter~yandex-maps-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-valiant_quarter-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": {
          "businessIds": {
            "title": "Business (org) IDs",
            "type": "array",
            "description": "Yandex Maps organization ids: the number in https://yandex.com/maps/org/<slug>/<id>/. Either this or Place URLs is required.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Place URLs",
            "type": "array",
            "description": "Yandex Maps place URLs, e.g. https://yandex.com/maps/org/sherwood_exclusive_kemer/178619177282/ (any /maps/org/.../<id>, /harita/org/.../<id>, ?oid=<id> or encoded poi[uri]=ymapsbm1://org?oid=<id> form). Short links (/maps/-/...) carry no id and are rejected; a URL without an id fails the run.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxReviewsPerPlace": {
            "title": "Max reviews per place",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many reviews per place (newest first). 0 = all reviews.",
            "default": 0
          },
          "maxPlaces": {
            "title": "Max places",
            "minimum": 0,
            "type": "integer",
            "description": "Process at most this many of the given places. 0 = all.",
            "default": 0
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Only return reviews rated at least this (1-5). 0 = no filter.",
            "default": 0
          },
          "maxRating": {
            "title": "Max rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Only return reviews rated at most this (1-5). 0 = no filter.",
            "default": 0
          },
          "language": {
            "title": "Language",
            "enum": [
              "en",
              "ru",
              "tr",
              "uk",
              "kk",
              "uz",
              "be"
            ],
            "type": "string",
            "description": "Interface language Yandex uses for labels such as the author level (en = en_US, ru = ru_RU, tr = tr_TR...). Review text is always returned in its original language.",
            "default": "en"
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Only reviews dated on or after this (YYYY-MM-DD, full ISO date, or relative such as '8 days' / '3 months'). Paging is newest first and stops once it passes this date. Empty = full history."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Only reviews dated on or before this (YYYY-MM-DD = the whole day, full ISO date, or relative). Empty = no upper bound."
          },
          "fillBeyondCap": {
            "title": "Fill beyond the 600-review window",
            "type": "boolean",
            "description": "Yandex serves at most 600 reviews per sort order. For larger places, also walk the other sort orders (rating ascending/descending, relevance, every review-aspect list, relevance in ru/tr) until every review Yandex counts is found or the request budget is used up. SUMMARY says whether the place was covered completely.",
            "default": true
          },
          "maxRequestsPerPlace": {
            "title": "Request budget per place",
            "minimum": 20,
            "maximum": 2000,
            "type": "integer",
            "description": "Upper bound on API requests per place; the fill beyond 600 reviews stops there (SUMMARY.complete = false with the reason). One request returns up to 50 reviews.",
            "default": 400
          },
          "timeBudgetSecs": {
            "title": "Time budget (seconds)",
            "minimum": 60,
            "maximum": 86400,
            "type": "integer",
            "description": "Run-wide time budget, kept well inside the default 3600 s run timeout (and never closer than 2 minutes to the run's actual timeout). No request or HTTP 429 cool-down starts after it: on the newest-first list that fails the run, during the fill beyond 600 it ends the fill with SUMMARY.complete = false.",
            "default": 3000
          },
          "locale": {
            "title": "Locale (override)",
            "type": "string",
            "description": "Explicit Yandex locale (e.g. en_US, ru_RU, tr_TR); overrides Language."
          },
          "yandexHost": {
            "title": "Yandex host",
            "enum": [
              "yandex.com.tr",
              "yandex.com",
              "yandex.ru"
            ],
            "type": "string",
            "description": "Yandex Maps host to query. yandex.com redirects Turkish visitors to yandex.com.tr; yandex.com.tr answers visitors from other countries as well.",
            "default": "yandex.com.tr"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxies are recommended. Each place keeps one sticky proxy session; it is rotated when Yandex blocks it or rate-limits it (HTTP 429, after a 10-60 s cool-down). German (DE) residential exits worked best in tests; Turkish exits were rate-limited more often. To run without a proxy, switch Apify Proxy off.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "DE"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}