{
  "openapi": "3.0.1",
  "info": {
    "title": "2GIS Reviews Scraper",
    "description": "2GIS Reviews Scraper extracts reviews of any 2GIS place by link, id or search: rating, full text, author, dates, photos, likes, the owner's reply and the place's name, address, rating and categories. No login.",
    "version": "1.0",
    "x-build-id": "y6bJS861cmrUKm64U"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~2gis-reviews-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-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/neuro-scraper~2gis-reviews-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-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/neuro-scraper~2gis-reviews-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-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 place links or ids",
            "type": "array",
            "description": "Place links (https://2gis.ru/moscow/firm/70000001034739765, also 2gis.kz / 2gis.ae ...) or bare place ids, one per line.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Optional: find places by keyword in the city below (кафе, dentist, hotel) and export their reviews.",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "title": "City (for search)",
            "type": "string",
            "description": "City as in 2GIS links: moscow, spb, novosibirsk, almaty, dubai ...",
            "default": "moscow"
          },
          "maxPlaces": {
            "title": "Max places per search query",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Places taken from each search query (2GIS shows at most 60 per query and city).",
            "default": 10
          },
          "maxReviewsPerPlace": {
            "title": "Max reviews per place",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Reviews per place; pages of 50 are followed until this number or the last review.",
            "default": 100
          },
          "maxItems": {
            "title": "Max reviews in total",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Optional: stop the run after this many reviews. 0 = no total limit.",
            "default": 0
          },
          "sortBy": {
            "title": "Order",
            "enum": [
              "date_edited",
              "date_created",
              "rating",
              "trust",
              "friends"
            ],
            "type": "string",
            "description": "Order in which the reviews of a place are collected.",
            "default": "date_edited"
          },
          "locale": {
            "title": "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"
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Keep reviews with at least this many stars (0 = off).",
            "default": 0
          },
          "maxRating": {
            "title": "Max rating",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Keep reviews with at most this many stars.",
            "default": 5
          },
          "reviewsRating": {
            "title": "Tone",
            "enum": [
              "all",
              "positive",
              "negative"
            ],
            "type": "string",
            "description": "Keep all, only positive or only negative reviews.",
            "default": "all"
          },
          "onlyWithText": {
            "title": "Only reviews with text",
            "type": "boolean",
            "description": "Leave out ratings without a written text.",
            "default": false
          },
          "reviewsWithAnswer": {
            "title": "Only reviews with an owner reply",
            "type": "boolean",
            "description": "Keep only reviews the business answered.",
            "default": false
          },
          "reviewsStartDate": {
            "title": "Reviews from (date)",
            "type": "string",
            "description": "Optional: only reviews posted (or edited, with the default order) on or after this date; paging stops at the first older review."
          },
          "reviewsFilterKeyword": {
            "title": "Text contains",
            "type": "string",
            "description": "Optional: keep only reviews whose text contains this word or phrase (case-insensitive)."
          },
          "reviewsSource": {
            "title": "Review source",
            "enum": [
              "all",
              "2gis",
              "flamp",
              "booking"
            ],
            "type": "string",
            "description": "Keep reviews of all sources or of one source.",
            "default": "all"
          },
          "includePlaceDetails": {
            "title": "Place details",
            "type": "boolean",
            "description": "Open each place once for its name, address, city, coordinates, categories and rating (search results already carry them).",
            "default": true
          },
          "includeRawData": {
            "title": "Raw record",
            "type": "boolean",
            "description": "Also save the complete original review record 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"
              ]
            }
          },
          "maxReviews": {
            "title": "Max reviews (alias)",
            "type": "integer",
            "description": "Same as maxItems."
          },
          "maxItemsPerFirm": {
            "title": "Max reviews per firm (alias)",
            "type": "integer",
            "description": "Same as maxReviewsPerPlace."
          },
          "resultsPerPlace": {
            "title": "Results per place (alias)",
            "type": "integer",
            "description": "Same as maxReviewsPerPlace."
          },
          "maxPlacesPerSearchUrl": {
            "title": "Max places per search (alias)",
            "type": "integer",
            "description": "Same as maxPlaces."
          },
          "language": {
            "title": "Language (alias)",
            "type": "string",
            "description": "Same as locale (ru, en, kk ...)."
          },
          "withTextOnly": {
            "title": "Only with text (alias)",
            "type": "boolean",
            "description": "Same as onlyWithText."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}