{
  "openapi": "3.0.1",
  "info": {
    "title": "2GIS Scraper · Парсер 2ГИС",
    "description": "2GIS businesses by query, city or link: phones, emails (also from websites), socials, hours, reviews, photos, menus, jobs. Организации 2ГИС по запросу, городу или ссылке: телефоны, почта (и с сайтов), соцсети, часы, отзывы, фото, меню, вакансии.",
    "version": "1.0",
    "x-build-id": "BrySsVadmaRU7NC1d"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/theshark~2gis-places-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-theshark-2gis-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/theshark~2gis-places-scraper/runs": {
      "post": {
        "operationId": "runs-sync-theshark-2gis-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/theshark~2gis-places-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-theshark-2gis-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 queries · Поисковые запросы",
            "type": "array",
            "description": "What to look for, as you would type it in 2GIS: «кафе», «стоматология», «автосервис», «coffee». Every query runs in every location.<br><br>Что искать, как вы написали бы в 2ГИС: «кафе», «стоматология», «автосервис», «coffee». Каждый запрос идёт в каждом месте.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations · Где искать",
            "type": "array",
            "description": "A 2GIS city, optionally followed by a district, town, metro station or street: «Москва», «Казань», «Алматы», «dubai», «Москва, Тверской район», «Москва, Балашиха», «Москва, метро Маяковская». Towns of a region also work on their own («Балашиха»).<br><br>Город 2ГИС, а после него по желанию район, город области, станция метро или улица: «Москва», «Казань», «Алматы», «dubai», «Москва, Тверской район», «Москва, Балашиха», «Москва, метро Маяковская». Города области можно писать и без региона («Балашиха»).",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories (rubrics) · Рубрики",
            "type": "array",
            "description": "2GIS rubrics by name («Стоматологические клиники») or ID («161»). They run in every location, like queries. A rubric returns every place of that category, even ones whose name doesn't contain your words.<br><br>Рубрики 2ГИС по названию («Стоматологические клиники») или номеру («161»). Идут в каждом месте, как запросы. Рубрика отдаёт все места этой категории, даже те, в названии которых нет ваших слов.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "2GIS links · Ссылки 2ГИС",
            "type": "array",
            "description": "Any 2GIS link: a place (/firm/), a search (/search/...), a category (/rubricId/), all branches of a chain (/branches/), all companies in a building (/inside/ or /geo/), or a go.2gis.com short link. Any 2GIS site works (2gis.ru, 2gis.kz, 2gis.ae...).<br><br>Любая ссылка 2ГИС: карточка (/firm/), поиск (/search/...), рубрика (/rubricId/), все филиалы сети (/branches/), все компании в здании (/inside/ или /geo/) или короткая ссылка 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"
            }
          },
          "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. Example: [{\"type\":\"Feature\",\"properties\":{\"radiusMeters\":1000},\"geometry\":{\"type\":\"Point\",\"coordinates\":[37.6173,55.7558]}}]<br><br>Свои области поиска в GeoJSON: Polygon или MultiPolygon либо Point с properties.radiusMeters. Каждый запрос и каждая рубрика идут в каждой области. Пример: [{\"type\":\"Feature\",\"properties\":{\"radiusMeters\":1000},\"geometry\":{\"type\":\"Point\",\"coordinates\":[37.6173,55.7558]}}]"
          },
          "maxItems": {
            "title": "Max places in total · Мест за запуск, не больше",
            "minimum": 0,
            "type": "integer",
            "description": "The run stops at this number of places, across all queries, locations and links. 0 means no limit.<br><br>На этом числе мест запуск останавливается, по всем запросам, местам и ссылкам вместе. 0 — без предела.",
            "default": 100
          },
          "maxItemsPerQuery": {
            "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: «кафе» in Moscow then returns all 8,600+ places.<br><br>Предел для каждой пары «запрос × место», чтобы один большой город не забрал весь предел запуска. 0 — без предела: тогда «кафе» в Москве отдаст все 8 600+ мест.",
            "default": 0
          },
          "minRating": {
            "title": "Minimum rating · Рейтинг от",
            "enum": [
              "any",
              "3",
              "3.5",
              "4",
              "4.5",
              "4.8"
            ],
            "type": "string",
            "description": "Only places with at least this 2GIS rating. The filters in this section are free: places left out are not charged. They apply to searches and search links, not to place links and place IDs.<br><br>Только места с рейтингом 2ГИС не ниже этого. Отбор в этом разделе бесплатный: отсеянные места не оплачиваются. Он действует на поиски и ссылки на поиск, а не на ссылки на карточки и ID мест.",
            "default": "any"
          },
          "minReviews": {
            "title": "Minimum reviews · Отзывов от",
            "minimum": 0,
            "type": "integer",
            "description": "Only places with at least this many reviews. 0 means no filter.<br><br>Только места, где отзывов не меньше этого числа. 0 — без отбора.",
            "default": 0
          },
          "onlyWithPhone": {
            "title": "Only with a phone · Только с телефоном",
            "type": "boolean",
            "description": "Leave out places that have no phone number.<br><br>Пропускать места без телефона.",
            "default": false
          },
          "onlyWithWebsite": {
            "title": "Only with a website · Только с сайтом",
            "type": "boolean",
            "description": "Leave out places that have no website.<br><br>Пропускать места без сайта.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only with an email · Только с почтой",
            "type": "boolean",
            "description": "Leave out places that have no email.<br><br>Пропускать места без почты.",
            "default": false
          },
          "onePerOrganization": {
            "title": "One branch per chain · Один филиал от сети",
            "type": "boolean",
            "description": "For chains, keep only the first branch found. Useful for lead lists.<br><br>У сетей оставлять только первый найденный филиал. Удобно для списков лидов.",
            "default": false
          },
          "includeReviews": {
            "title": "Add reviews · Добавить отзывы",
            "type": "boolean",
            "description": "Review text, rating, dates, author, photos, likes and the owner's reply. Charged per review.<br><br>Текст отзыва, оценка, даты, автор, фото, лайки и ответ владельца. Оплата за каждый отзыв.",
            "default": false
          },
          "maxReviewsPerPlace": {
            "title": "Max reviews per place · Отзывов на место, не больше",
            "minimum": 0,
            "type": "integer",
            "description": "0 means all reviews.<br><br>0 — все отзывы.",
            "default": 20
          },
          "reviewsSort": {
            "title": "Reviews order · Порядок отзывов",
            "enum": [
              "date_edited",
              "trust"
            ],
            "type": "string",
            "description": "Newest first, or the most relevant first, as 2GIS shows them by default.<br><br>Сначала новые или сначала самые полезные, как 2ГИС показывает их по умолчанию.",
            "default": "date_edited"
          },
          "reviewsSources": {
            "title": "Review sources · Источники отзывов",
            "type": "array",
            "description": "Keep only reviews from these sources: 2gis, flamp, booking, otello, avito... Empty means all sources.<br><br>Брать отзывы только из этих источников: 2gis, flamp, booking, otello, avito... Пусто — из всех.",
            "items": {
              "type": "string"
            }
          },
          "includePhotos": {
            "title": "Add photos · Добавить фото",
            "type": "boolean",
            "description": "Photo links (full size and preview), size, description and source. Charged per photo.<br><br>Ссылки на фото (полный размер и превью), размер, описание и источник. Оплата за каждое фото.",
            "default": false
          },
          "maxPhotosPerPlace": {
            "title": "Max photos per place · Фото на место, не больше",
            "minimum": 0,
            "type": "integer",
            "description": "0 means all photos.<br><br>0 — все фото.",
            "default": 20
          },
          "includeProducts": {
            "title": "Add menu / price list · Добавить меню и прайс",
            "type": "boolean",
            "description": "Goods, services and menu items with prices, categories and pictures, from the «Цены» tab of a 2GIS card, plus price lists as pictures where the place has them. Charged per item; price-list pictures are free.<br><br>Товары, услуги и блюда с ценами, разделами и картинками, с вкладки «Цены» карточки 2ГИС, а ещё прайс-листы картинками, если они есть. Оплата за каждую позицию, картинки прайс-листов бесплатно.",
            "default": false
          },
          "maxProductsPerPlace": {
            "title": "Max menu items per place · Позиций меню на место, не больше",
            "minimum": 0,
            "type": "integer",
            "description": "0 means all items.<br><br>0 — все позиции.",
            "default": 50
          },
          "includeReviewInsights": {
            "title": "Add review summary, star breakdown and topics · Сводка отзывов, оценки по звёздам и темы",
            "type": "boolean",
            "description": "The summary 2GIS writes from a place's reviews, how many 1–5 star ratings the place has, and the topics people write about (staff, food, prices…). Free; the run takes a bit longer.<br><br>Сводка, которую 2ГИС пишет по отзывам места, сколько у него оценок от 1 до 5 звёзд и темы, о которых пишут (персонал, еда, цены…). Бесплатно, запуск идёт чуть дольше.",
            "default": false
          },
          "includeBuildingInfo": {
            "title": "Add building details · Данные здания",
            "type": "boolean",
            "description": "What the building is (residential, business center, mall…), floors, year built, wall material, elevators and more, where 2GIS has them. Free.<br><br>Что за здание (жилой дом, бизнес-центр, ТЦ…), этажность, год постройки, материал стен, лифты и другое — там, где это есть в 2ГИС. Бесплатно.",
            "default": true
          },
          "includeVacancies": {
            "title": "Add vacancies · Вакансии",
            "type": "boolean",
            "description": "Open jobs at the place from 2GIS: title, salary, employment type, description and the link to apply (hh.ru and others). Free; one more request per place, so the run takes longer.<br><br>Открытые вакансии места из 2ГИС: название, зарплата, тип занятости, описание и ссылка на отклик (hh.ru и другие). Бесплатно, но это ещё один запрос на место, поэтому запуск идёт дольше.",
            "default": false
          },
          "includeWebsiteContacts": {
            "title": "Emails and contacts from websites · Почта и контакты с сайтов",
            "type": "boolean",
            "description": "Opens the company's website (the home page and up to two contact pages) and takes emails, phones and social links from it. Charged only when the site has an email that 2GIS doesn't have, and once per site, even if a whole chain shares it. The run takes longer.<br><br>Открывает сайт компании (главную и до двух страниц контактов) и берёт с него почту, телефоны и ссылки на соцсети. Оплата — только если на сайте нашлась почта, которой нет в 2ГИС, и один раз за сайт, даже если он общий у целой сети. Запуск идёт дольше.",
            "default": false
          },
          "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 names, addresses and categories, where the city has it (for example, kk for Kazakhstan, ar or en for the UAE). Otherwise the data comes in the city's main language. Reviews stay as they were written.<br><br>Язык названий, адресов и рубрик, если он есть у города (например, kk в Казахстане, ar или en в ОАЭ). Иначе данные приходят на основном языке города. Отзывы остаются такими, как их написали.",
            "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. Your own proxy URL may contain {session}, for example http://user-session-{session}:pass@host:port, and the run will change sessions itself.<br><br>Оставьте «No proxy»: тогда запуск идёт через свои российские прокси, они уже входят в цену. Apify Proxy (RESIDENTIAL, страна RU) или свои прокси выбирайте, только если хотите именно их. В адресе своего прокси можно написать {session}, например http://user-session-{session}:pass@host:port, и запуск сам будет менять сессии.",
            "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: more rarely makes a run faster.<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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}