{
  "openapi": "3.0.1",
  "info": {
    "title": "2GIS Scraper: Business Profiles, Phones & Emails",
    "description": "Search 2GIS (2ГИС) by keyword and city and get business profiles with phones, emails, websites, social links, hours, rating, review count, coordinates and categories. Optionally add the latest reviews. 207 cities. Export JSON, CSV or Excel.",
    "version": "1.0",
    "x-build-id": "gZ5g9FqKwsq7Fxw7h"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~2gis-profiles-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-2gis-profiles-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/sian.agency~2gis-profiles-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-2gis-profiles-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/sian.agency~2gis-profiles-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-2gis-profiles-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": {
          "operation": {
            "title": "🎯 What do you want to scrape?",
            "enum": [
              "search",
              "lookup"
            ],
            "type": "string",
            "description": "🔎 **PICK A MODE:** Business search finds businesses for your keywords in the cities you list. Profile lookup reads the businesses you list by 2GIS link or ID. Only information 2GIS shows publicly is read.",
            "default": "search"
          },
          "searchQueries": {
            "title": "🔑 Search queries",
            "type": "array",
            "description": "🔑 **SEARCH QUERIES:** What to look for, one per line, in Russian or English. Business types (кафе, аптека, dentist) and company names both work. Each query is searched in every city below. Used by Business search.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "🌍 Cities",
            "type": "array",
            "description": "🌍 **CITIES:** One per line. Use the city name in Russian or English, or its 2GIS code such as moscow, spb, novosibirsk, almaty or dubai. 207 cities and regions in 20 countries are supported. Used by Business search.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "↕️ Sort results by",
            "enum": [
              "relevance",
              "rating",
              "creation_time"
            ],
            "type": "string",
            "description": "↕️ **SORT:** Best match is 2GIS's own ranking. Highest rated puts the best reviewed businesses first. Newest listings finds recently added businesses. Used by Business search.",
            "default": "relevance"
          },
          "onlyWithWebsite": {
            "title": "🌐 Only businesses with a website",
            "type": "boolean",
            "description": "🌐 **WEBSITE FILTER:** Save only businesses that list a website on 2GIS. Used by Business search.",
            "default": false
          },
          "onlyWithEmail": {
            "title": "📧 Only businesses with an email",
            "type": "boolean",
            "description": "📧 **EMAIL FILTER:** Save only businesses that list an email on 2GIS. Other businesses are read but not saved or charged. The run reads up to about 30 times your result limit in total, so a rare email may mean fewer rows. Used by Business search.",
            "default": false
          },
          "minRating": {
            "title": "⭐ Minimum rating",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "⭐ **MINIMUM RATING:** Save only businesses rated at least this many stars (0 to 5). 0 keeps everything, including unrated businesses. Other businesses are read but not saved or charged. Used by Business search.",
            "default": 0
          },
          "maxResults": {
            "title": "🔢 Maximum businesses",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "🔢 **RESULT LIMIT:** Save up to this many businesses in total across all queries and cities. Free plans save at most 25. Used by every mode.",
            "default": 20
          },
          "reviewsPerPlace": {
            "title": "💬 Reviews per business",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "💬 **REVIEWS:** Add the latest reviews to each business, up to this many (0 to 50). 0 skips reviews. Each review saved is billed as a Review. Used by every mode.",
            "default": 0
          },
          "language": {
            "title": "🗣️ Language of results",
            "enum": [
              "ru",
              "en"
            ],
            "type": "string",
            "description": "🗣️ **LANGUAGE:** Language for category names, addresses and attributes. English is available where 2GIS has translated the data. Used by every mode.",
            "default": "ru"
          },
          "places": {
            "title": "🏢 Businesses",
            "type": "array",
            "description": "🏢 **BUSINESSES:** 2GIS business links or numeric IDs, one per line, for example https://2gis.ru/moscow/firm/70000001113263430 or 70000001113263430. Used by Profile lookup.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}