{
  "openapi": "3.0.1",
  "info": {
    "title": "2GIS Places Scraper",
    "description": "2GIS Places Scraper extracts businesses from 2GIS by search, place link or organisation: name, categories, address, coordinates, working hours, rating, reviews count, attributes, photos, website and social links, plus optional reviews. No login.",
    "version": "1.0",
    "x-build-id": "dCXfsL5s2QU4TTTV3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~2gis-places-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-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/neuro-scraper~2gis-places-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-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/neuro-scraper~2gis-places-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-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 in the city, one per line: кафе, стоматология, car service, hotel ...",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City as in 2GIS links: moscow, spb, novosibirsk, almaty, astana, dubai ...",
            "default": "moscow"
          },
          "domain": {
            "title": "2GIS country site",
            "enum": [
              "2gis.ru",
              "2gis.kz",
              "2gis.ae",
              "2gis.kg",
              "2gis.uz",
              "2gis.az",
              "2gis.am",
              "2gis.ge",
              "2gis.com.cy",
              "2gis.com"
            ],
            "type": "string",
            "description": "Which 2GIS country site the search uses (place links carry their own site).",
            "default": "2gis.ru"
          },
          "startUrls": {
            "title": "Place or search links",
            "type": "array",
            "description": "Optional: place links (https://2gis.ru/moscow/firm/70000001034739765) or search links (https://2gis.ru/moscow/search/кафе).",
            "items": {
              "type": "string"
            }
          },
          "organizationIds": {
            "title": "Organisation ids (all branches)",
            "type": "array",
            "description": "Optional: organisation (chain) ids - every branch of the chain in the city becomes a row (the id is in the 'all branches' link /branches/<id>).",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max places per query",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Places per search query, search link or organisation (2GIS shows at most 60 per list).",
            "default": 20
          },
          "maxTotalItems": {
            "title": "Max places in total",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Optional: stop the run after this many places. 0 = no total limit.",
            "default": 0
          },
          "includeDetails": {
            "title": "Full place record",
            "type": "boolean",
            "description": "Open every place once for its full record (website, social links, entrances, photo albums); off = the search card only (faster).",
            "default": true
          },
          "includeBuildingDetails": {
            "title": "Building details",
            "type": "boolean",
            "description": "Add the building of each place: purpose, floors, material, emergency state, branches in the building (one lookup per building, cached).",
            "default": true
          },
          "filterRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Keep places rated at least this (0-5). 0 = off.",
            "default": 0
          },
          "rubricIds": {
            "title": "Only category ids",
            "type": "array",
            "description": "Optional: keep places with one of these 2GIS category (rubric) ids, e.g. 161 = cafes, 159 = bars.",
            "items": {
              "type": "string"
            }
          },
          "categoryFilter": {
            "title": "Only categories (words)",
            "type": "array",
            "description": "Optional: keep places whose category name contains one of these words.",
            "items": {
              "type": "string"
            }
          },
          "filterHasSite": {
            "title": "Only with a website",
            "type": "boolean",
            "description": "Keep places that list a website.",
            "default": false
          },
          "filterHasPhotos": {
            "title": "Only with photos",
            "type": "boolean",
            "description": "Keep places that have photos.",
            "default": false
          },
          "filterHasGoods": {
            "title": "Only with goods / menu",
            "type": "boolean",
            "description": "Keep places that publish goods, a menu or a price list.",
            "default": false
          },
          "filterWifi": {
            "title": "Only with Wi-Fi",
            "type": "boolean",
            "description": "Keep places whose attributes mention Wi-Fi.",
            "default": false
          },
          "filterPaymentCard": {
            "title": "Only with card payment",
            "type": "boolean",
            "description": "Keep places whose attributes mention card payment.",
            "default": false
          },
          "filterTakeaway": {
            "title": "Only with takeaway",
            "type": "boolean",
            "description": "Keep places whose attributes mention takeaway.",
            "default": false
          },
          "filterDelivery": {
            "title": "Only with delivery",
            "type": "boolean",
            "description": "Keep places whose attributes mention delivery.",
            "default": false
          },
          "filter24h": {
            "title": "Only open 24/7",
            "type": "boolean",
            "description": "Keep places open around the clock.",
            "default": false
          },
          "filterCreatedRecently": {
            "title": "Only new places",
            "type": "boolean",
            "description": "Keep places added to 2GIS in the last 90 days.",
            "default": false
          },
          "skipClosedPlaces": {
            "title": "Skip closed places",
            "type": "boolean",
            "description": "Leave out places marked closed or temporarily closed.",
            "default": false
          },
          "customGeolocation": {
            "title": "Only near a point",
            "type": "object",
            "description": "Optional: {\"lat\": 55.7558, \"lng\": 37.6173, \"radiusKm\": 3} keeps places within the radius of the point."
          },
          "includeReviews": {
            "title": "Reviews",
            "type": "boolean",
            "description": "Add the newest reviews of every place in the reviews column.",
            "default": false
          },
          "maxReviewsPerPlace": {
            "title": "Max reviews per place",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Reviews per place when reviews are on (pages of 50 are followed).",
            "default": 10
          },
          "reviewSortBy": {
            "title": "Review order",
            "enum": [
              "date_edited",
              "date_created",
              "rating",
              "trust",
              "friends"
            ],
            "type": "string",
            "description": "Order of the reviews.",
            "default": "date_edited"
          },
          "reviewRatings": {
            "title": "Review stars",
            "type": "array",
            "description": "Optional: keep only reviews with these star ratings, e.g. 1, 2.",
            "items": {
              "type": "string"
            }
          },
          "includeUnratedReviews": {
            "title": "Include unrated reviews",
            "type": "boolean",
            "description": "Also add reviews without a star rating.",
            "default": false
          },
          "includeReviewerData": {
            "title": "Reviewer data",
            "type": "boolean",
            "description": "Add the author name, id, photo and review count to every review.",
            "default": true
          },
          "language": {
            "title": "Review language",
            "enum": [
              "ru_RU",
              "en_RU",
              "en_AE",
              "ar_AE",
              "kk_KZ",
              "uz_UZ",
              "ky_KG",
              "az_AZ",
              "hy_AM",
              "ka_GE",
              "en_CY"
            ],
            "type": "string",
            "description": "Language and country of the review service.",
            "default": "ru_RU"
          },
          "maxConcurrency": {
            "title": "Places in parallel",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many places (with their full record, building and reviews) are processed at the same time.",
            "default": 8
          },
          "includeRawData": {
            "title": "Raw record",
            "type": "boolean",
            "description": "Also save the complete original place record (without contact data) in the raw column.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy is the default and recommended.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          },
          "location": {
            "title": "Location (alias)",
            "type": "string",
            "description": "Same as city."
          },
          "locationQuery": {
            "title": "Location (alias)",
            "type": "string",
            "description": "Same as city."
          },
          "country": {
            "title": "Country (alias)",
            "type": "string",
            "description": "Same as domain (ru, kz, ae ...)."
          },
          "maxResults": {
            "title": "Max results (alias)",
            "type": "integer",
            "description": "Same as maxItems."
          },
          "maxReviews": {
            "title": "Max reviews (alias)",
            "type": "integer",
            "description": "Same as maxReviewsPerPlace."
          },
          "filterMinRating": {
            "title": "Min rating (alias)",
            "type": "number",
            "description": "Same as filterRating."
          },
          "filterWebsite": {
            "title": "Website (alias)",
            "type": "boolean",
            "description": "Same as filterHasSite."
          },
          "filterCardPayment": {
            "title": "Card (alias)",
            "type": "boolean",
            "description": "Same as filterPaymentCard."
          },
          "filterHomeDelivery": {
            "title": "Home delivery (alias)",
            "type": "boolean",
            "description": "Same as filterDelivery."
          },
          "filterOpen24h": {
            "title": "24/7 (alias)",
            "type": "boolean",
            "description": "Same as filter24h."
          },
          "filterNewPlaces": {
            "title": "New places (alias)",
            "type": "boolean",
            "description": "Same as filterCreatedRecently."
          },
          "reviewsRating": {
            "title": "Review tone",
            "type": "string",
            "description": "all / positive / negative (API)."
          },
          "reviewsWithAnswer": {
            "title": "Only answered reviews",
            "type": "boolean",
            "description": "Keep only reviews with an owner reply (API)."
          },
          "reviewsStartDate": {
            "title": "Reviews from",
            "type": "string",
            "description": "Only reviews from this date (API)."
          },
          "reviewsFilterKeyword": {
            "title": "Review text contains",
            "type": "string",
            "description": "Only reviews containing this text (API)."
          },
          "reviewsSource": {
            "title": "Review source",
            "type": "string",
            "description": "2gis / flamp / booking (API)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}