{
  "openapi": "3.0.1",
  "info": {
    "title": "2GIS Reviews Scraper · Парсер отзывов 2ГИС",
    "description": "2GIS reviews of a place or a whole chain by link, ID or search: rating, date, text, topics, author, photos, videos, owner's reply. Отзывы 2ГИС о месте или всей сети по ссылке, ID или поиску: оценка, дата, текст, темы, автор, фото, видео, ответ владельца.",
    "version": "1.0",
    "x-build-id": "BSQ2brZp0P5BvMjWi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/theshark~2gis-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-theshark-2gis-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/theshark~2gis-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-theshark-2gis-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/theshark~2gis-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-theshark-2gis-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": "2GIS links · Ссылки 2ГИС",
            "type": "array",
            "description": "Links to places whose reviews you need: a place (/firm/), all branches of a chain (/branches/), all companies in a building (/inside/ or /geo/), a search (/search/...), a category (/rubricId/) or a go.2gis.com short link. Any 2GIS site works (2gis.ru, 2gis.kz, 2gis.ae...).<br><br>Ссылки на места, чьи отзывы нужны: карточка (/firm/), все филиалы сети (/branches/), все компании в здании (/inside/ или /geo/), поиск (/search/...), рубрика (/rubricId/) или короткая ссылка go.2gis.com. Подходит любой сайт 2ГИС (2gis.ru, 2gis.kz, 2gis.ae...).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "placeIds": {
            "title": "Place IDs · ID мест",
            "type": "array",
            "description": "2GIS branch IDs, for example 70000001034739765 (the number after /firm/ in a link).<br><br>Номера филиалов 2ГИС, например 70000001034739765 (число после /firm/ в ссылке).",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries · Поисковые запросы",
            "type": "array",
            "description": "Reviews of every place a search finds: «кафе», «стоматология», «автосервис». Every query runs in every location below.<br><br>Отзывы всех мест, которые находит поиск: «кафе», «стоматология», «автосервис». Каждый запрос идёт в каждом месте ниже.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations · Где искать",
            "type": "array",
            "description": "For search queries: a 2GIS city, optionally followed by a district, town, metro station or street: «Казань», «Москва, Тверской район», «Москва, метро Маяковская», «Алматы».<br><br>Для поисковых запросов: город 2ГИС, а после него по желанию район, город области, станция метро или улица: «Казань», «Москва, Тверской район», «Москва, метро Маяковская», «Алматы».",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories (rubrics) · Рубрики",
            "type": "array",
            "description": "2GIS rubrics by name («Стоматологические клиники») or ID («161»). They run in every location, like queries.<br><br>Рубрики 2ГИС по названию («Стоматологические клиники») или номеру («161»). Идут в каждом месте, как запросы.",
            "items": {
              "type": "string"
            }
          },
          "geoAreas": {
            "title": "Custom areas (GeoJSON) · Свои области (GeoJSON)",
            "type": "array",
            "description": "Your own search areas in GeoJSON: a Polygon or MultiPolygon, or a Point with properties.radiusMeters. Every query and category runs in every area.<br><br>Свои области поиска в GeoJSON: Polygon или MultiPolygon либо Point с properties.radiusMeters. Каждый запрос и каждая рубрика идут в каждой области."
          },
          "wholeChain": {
            "title": "Reviews of the whole chain · Отзывы всей сети",
            "type": "boolean",
            "description": "For every place you give or find, get the reviews of all branches of its chain in one go. Each review comes with its branch: name, address, city, categories, rating and coordinates. A chain is read once, even if several of its branches are found, and a chain link (/branches/) is read without listing its branches. Reviews per place then counts per chain, and Max places per run counts chains.<br><br>Для каждого места, которое вы указали или которое нашлось, — отзывы всех филиалов его сети сразу. У каждого отзыва его филиал: название, адрес, город, рубрики, рейтинг и координаты. Сеть читается один раз, даже если нашлось несколько её филиалов, а ссылка на сеть (/branches/) читается без перебора филиалов. «Отзывов на место» тогда считается на сеть, а «Мест за запуск» — сетей.",
            "default": false
          },
          "maxPlaces": {
            "title": "Max places per run · Мест за запуск, не больше",
            "minimum": 0,
            "type": "integer",
            "description": "How many places the run takes reviews from, across all links and searches. 0 means no limit.<br><br>У скольких мест запуск берёт отзывы, по всем ссылкам и поискам вместе. 0 — без предела.",
            "default": 10
          },
          "maxPlacesPerQuery": {
            "title": "Max places per query and location · Мест на запрос в одном месте, не больше",
            "minimum": 0,
            "type": "integer",
            "description": "A limit for every «query × location» pair, so one big city doesn't take the whole run limit. 0 means no limit.<br><br>Предел для каждой пары «запрос × место», чтобы один большой город не забрал весь предел запуска. 0 — без предела.",
            "default": 0
          },
          "maxReviewsPerPlace": {
            "title": "Reviews per place · Отзывов на место",
            "minimum": 0,
            "type": "integer",
            "description": "How many reviews of each place to collect. With filters it counts the matching reviews. 0 means all reviews.<br><br>Сколько отзывов каждого места собрать. С отбором считает подходящие. 0 — все отзывы.",
            "default": 100
          },
          "maxReviews": {
            "title": "Max reviews per run · Отзывов за запуск, не больше",
            "minimum": 0,
            "type": "integer",
            "description": "The run stops at this number of reviews. 0 means no limit.<br><br>На этом числе отзывов запуск останавливается. 0 — без предела.",
            "default": 0
          },
          "reviewsSort": {
            "title": "Review order · Порядок отзывов",
            "enum": [
              "date_edited",
              "date_created",
              "trust"
            ],
            "type": "string",
            "description": "The order 2GIS gives reviews in. 2GIS has no order by rating: use the rating filters instead.<br><br>Порядок, в котором 2ГИС отдаёт отзывы. Порядка по оценке у 2ГИС нет: для этого есть отбор по оценке.",
            "default": "date_edited"
          },
          "minRating": {
            "title": "Rating from · Оценка от",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only reviews rated at least this, 1–5. Reviews that do not match the filters of this section are not returned and not charged.<br><br>Только отзывы с оценкой не ниже этой, 1–5. Отзывы, которые не подходят под отбор этого раздела, не отдаются и не оплачиваются."
          },
          "maxRating": {
            "title": "Rating up to · Оценка до",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Only reviews rated at most this, 1–5. For example, 1 to 2 gives only negative reviews.<br><br>Только отзывы с оценкой не выше этой, 1–5. Например, от 1 до 2 — только негативные отзывы."
          },
          "dateFrom": {
            "title": "Date from · Дата от",
            "type": "string",
            "description": "Only reviews written on this day or later.<br><br>Только отзывы, написанные в этот день или позже."
          },
          "dateTo": {
            "title": "Date up to · Дата до",
            "type": "string",
            "description": "Only reviews written on this day or earlier.<br><br>Только отзывы, написанные в этот день или раньше."
          },
          "onlyWithText": {
            "title": "Only with text · Только с текстом",
            "type": "boolean",
            "description": "Leave out ratings without a written review.<br><br>Пропускать оценки без текста.",
            "default": false
          },
          "onlyWithMedia": {
            "title": "Only with photos or videos · Только с фото или видео",
            "type": "boolean",
            "description": "Only reviews with at least one photo or video.<br><br>Только отзывы, где есть хотя бы одно фото или видео.",
            "default": false
          },
          "ownerReply": {
            "title": "Owner's reply · Ответ владельца",
            "enum": [
              "any",
              "with",
              "without"
            ],
            "type": "string",
            "description": "Keep reviews the owner has or hasn't answered.<br><br>Оставлять отзывы, на которые владелец ответил или не ответил.",
            "default": "any"
          },
          "sources": {
            "title": "Review sources · Источники отзывов",
            "type": "array",
            "description": "2GIS also shows reviews from its partner services. Empty means all sources.<br><br>2ГИС показывает и отзывы с сервисов-партнёров. Пусто — из всех источников.",
            "items": {
              "type": "string",
              "enum": [
                "2gis",
                "flamp",
                "booking",
                "otello",
                "avito",
                "netmonet",
                "tbank",
                "sbertips"
              ],
              "enumTitles": [
                "2GIS · 2ГИС",
                "Flamp",
                "Booking.com",
                "Otello",
                "Avito · Авито",
                "Netmonet",
                "T-Bank · Т-Банк",
                "SberTips · СберЧаевые"
              ]
            }
          },
          "keywords": {
            "title": "Words in the text · Слова в тексте",
            "type": "array",
            "description": "Only reviews whose text has at least one of these words or phrases, capital letters ignored. Reviews keep the language they were written in.<br><br>Только отзывы, в тексте которых есть хотя бы одно из этих слов или фраз, без учёта заглавных букв. Отзывы — на том языке, на котором написаны.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Words to leave out · Слова-исключения",
            "type": "array",
            "description": "Leave out reviews whose text has any of these words or phrases.<br><br>Пропускать отзывы, в тексте которых есть любое из этих слов или фраз.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Only reviews about topics · Только отзывы на темы",
            "type": "array",
            "description": "Topics in the data language, as 2GIS shows them on a place's page and in placeReviewTopics (organizationReviewTopics for a whole chain): «персонал», «сервис», «еда», «чистота»… A review fits if it is about any of them. 2GIS picks these reviews itself, so the run reads nothing extra.<br><br>Темы на языке данных, как их показывает 2ГИС в карточке места и в поле placeReviewTopics (у всей сети — organizationReviewTopics): «персонал», «сервис», «еда», «чистота»… Подходит отзыв хотя бы на одну из них. Такие отзывы отбирает сам 2ГИС, поэтому лишнего запуск не читает.",
            "items": {
              "type": "string"
            }
          },
          "includeUnratedReviews": {
            "title": "Include reviews not counted in the rating · Включать отзывы вне рейтинга",
            "type": "boolean",
            "description": "2GIS does not count some reviews in a place's rating, and its site hides them by default. Turn this on to get them too: their isRated is false.<br><br>Часть отзывов 2ГИС не учитывает в рейтинге места, и сайт по умолчанию их не показывает. Включите, чтобы получить и их: у них isRated — false.",
            "default": false
          },
          "tagTopics": {
            "title": "Topics of each review · Темы каждого отзыва",
            "type": "boolean",
            "description": "For each review: its topics and the words they were found by (staff → «attentive waiters»). The run takes a bit longer.<br><br>У каждого отзыва — его темы и слова, по которым они найдены (персонал → «внимательные официанты»). Запуск идёт немного дольше.",
            "default": true
          },
          "newOnly": {
            "title": "Only new reviews · Только новые отзывы",
            "type": "boolean",
            "description": "For scheduled runs: reads reviews newest written first and skips the ones this history store has already delivered, so you pay only for new ones. The first run delivers everything that matches.<br><br>Для запусков по расписанию: читает отзывы от новых к старым по дате написания и пропускает те, что это хранилище истории уже отдавало, — платите только за новые. Первый запуск отдаёт всё подходящее.",
            "default": false
          },
          "historyStore": {
            "title": "History store · Хранилище истории",
            "type": "string",
            "description": "Named key-value store that keeps delivered reviews between runs (with Only new reviews).<br><br>Именованное key-value хранилище, где между запусками лежат отданные отзывы (с «Только новыми отзывами»).",
            "default": "2gis-reviews-history"
          },
          "language": {
            "title": "Language of the data · Язык данных",
            "enum": [
              "ru",
              "en",
              "kk",
              "uz",
              "ar",
              "az",
              "ka",
              "ky",
              "hy",
              "tg",
              "it",
              "cs",
              "es"
            ],
            "type": "string",
            "description": "Language of place names, addresses and categories, where the city has it. Reviews stay as they were written.<br><br>Язык названий, адресов и рубрик мест, если он есть у города. Отзывы остаются такими, как их написали.",
            "default": "ru"
          },
          "proxyConfiguration": {
            "title": "Proxy · Прокси",
            "type": "object",
            "description": "Leave it on «No proxy»: the run then uses its own Russian proxies, already included in the price. Choose Apify Proxy (RESIDENTIAL, country RU) or your own proxies only if you prefer them.<br><br>Оставьте «No proxy»: тогда запуск идёт через свои российские прокси, они уже входят в цену. Apify Proxy (RESIDENTIAL, страна RU) или свои прокси выбирайте, только если хотите именно их.",
            "default": {
              "useApifyProxy": false
            }
          },
          "maxConcurrency": {
            "title": "Requests at once · Запросов одновременно",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many requests run at the same time. 10 suits most runs.<br><br>Сколько запросов идёт одновременно. 10 подходит для большинства запусков.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}