# 2GIS Places and Reviews Scraper | 2ГИС (`automatic/2gis-places-scraper`) Actor

Build local business lists from 2GIS (2ГИС) by city, keyword or firm link. Export addresses, coordinates, hours and ratings, plus optional public phone numbers, websites and customer reviews.

- **URL**: https://apify.com/automatic/2gis-places-scraper.md
- **Developed by:** [Philip Kirkbride](https://apify.com/automatic) (community)
- **Categories:** Lead generation, Travel
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 places

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 2GIS Places and Reviews Scraper

Find businesses by keyword and city and export their addresses, coordinates, categories, opening hours and ratings. Turn on business contacts for published phones, websites and social links, or add public reviews to compare customer feedback. Export the dataset as CSV, Excel or JSON.

### Quick start

Run with `{}` or use the Console prefill to get five restaurant listings from the Dubai directory. For your own search, use the city slug from the 2GIS URL and the corresponding domain.

```json
{
  "searches": [{"domain": "2gis.ae", "city": "dubai", "query": "restaurants"}],
  "maxItems": 5
}
```

Add more entries to search several city and keyword pairs in one run. Use `firmUrls` to look up known branches directly. Set `includeContacts` for full business contacts or `includeReviews` for separate review rows with text, stars, author display name and publication date when available. Review lookups also include contacts. `maxItems` caps the total rows across both types. `maxReviewsPerPlace` caps the reviews for each branch.

### Output and monitoring

`kind` identifies each row as `place` or `review`. Join them by `placeId`. `contactsChecked` indicates that the business contact section was checked. A checked section may still have no published contacts. `reviewCount` is 2GIS’s written review count when supplied. The `OUTPUT` record summarizes saved rows, skipped inputs and reasons a run stopped early.

**Selected fields only.** This row comes from the Dubai restaurants sample.

```json
{
  "kind": "place",
  "placeId": "70000001112999544",
  "name": "Kausar",
  "city": "dubai",
  "rating": 4.4,
  "reviewCount": 7,
  "url": "https://2gis.ae/dubai/firm/70000001112999544"
}
```

For recurring exports, set `monitorMode` to `new` and reuse a `monitorName`. The first run delivers matching rows. Later runs with the same name deliver newly found places and reviews. Use a different name for independent history and schedule each monitor so its runs finish before the next one starts.

### Use it as an API

Get a business profile with its address, hours, ratings, and any published contact details. Get the answer in JSON from one HTTPS call. Call it from an AI agent through an HTTP-capable MCP tool, or add an HTTP request step in n8n, Make, or Zapier.

```bash
curl --get 'https://automatic--2gis-places-scraper.apify.actor/' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --data-urlencode firmUrl=https://2gis.ae/dubai/firm/70000001112999544
```

Send the same fields as a JSON object with `POST /`. Results are in `data`. See `GET /openapi.json` for the request and response definitions.

### Pricing

**$1.50 per 1,000 places** ($1.35 Bronze, $1.20 Silver, $1.05 Gold and above) and **$0.75 per 1,000 reviews** when you ask for reviews. There is no start fee, so a search that finds nothing costs nothing. Monitor runs charge for newly delivered places and, when reviews are included, newly delivered reviews.

Set a maximum charge on the run to cap spending; the run stops cleanly at the cap and keeps what it already saved.

### Coverage and limits

Use domains `2gis.ae`, `2gis.ru`, `2gis.kz`, `2gis.uz` or `2gis.kg` and public HTTPS firm links. City slugs can differ from display names. Searches exclude results explicitly assigned to another city, including results the directory may show from neighboring cities. Reviews are limited to the first batch available on the public firm page, up to 50 per place. Values depend on what 2GIS publishes for each branch. Unavailable scalar fields are `null`. Invalid or empty searches can finish with `no_results`. A source error after rows were saved leaves those rows available in the dataset.

# Actor input Schema

## `searches` (type: `array`):

Each object needs domain, city (the slug in the 2GIS URL), and query.

## `firmUrls` (type: `array`):

One public firm URL per entry.

## `maxItems` (type: `integer`):

Maximum place and review rows combined.

## `includeContacts` (type: `boolean`):

Read each firm's published phones, websites and social links.

## `includeReviews` (type: `boolean`):

Include reviews available on each firm's public page as separate rows. Also includes business contacts.

## `maxReviewsPerPlace` (type: `integer`):

Maximum reviews per firm, subject to the overall row limit and availability.

## `monitorMode` (type: `string`):

New exports rows that this named monitor has never delivered.

## `monitorName` (type: `string`):

Reuse the same name on runs for one ongoing export.

## Actor input object example

```json
{
  "searches": [
    {
      "domain": "2gis.ae",
      "city": "dubai",
      "query": "restaurants"
    }
  ],
  "maxItems": 5,
  "includeContacts": false,
  "includeReviews": false,
  "maxReviewsPerPlace": 10,
  "monitorMode": "off",
  "monitorName": "default"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searches": [
        {
            "domain": "2gis.ae",
            "city": "dubai",
            "query": "restaurants"
        }
    ],
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("automatic/2gis-places-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searches": [{
            "domain": "2gis.ae",
            "city": "dubai",
            "query": "restaurants",
        }],
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("automatic/2gis-places-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searches": [
    {
      "domain": "2gis.ae",
      "city": "dubai",
      "query": "restaurants"
    }
  ],
  "maxItems": 5
}' |
apify call automatic/2gis-places-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automatic/2gis-places-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/cqOdWj1o877MLmEWp/builds/hdpnM8jgCMvrFLvcO/openapi.json
