# 2gis Scraper (`piotrv1001/2gis-scraper`) Actor

Scrapes business listings from 2GIS search pages, extracting names,    addresses, ratings, categories, working hours, and coordinates. Ideal for local market research, competitor analysis, and location intelligence.

- **URL**: https://apify.com/piotrv1001/2gis-scraper.md
- **Developed by:** [FalconScrape](https://apify.com/piotrv1001) (community)
- **Categories:** Lead generation, Travel, SEO tools
- **Stats:** 90 total users, 2 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.80 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### 🚀 2GIS Places Scraper

Easily extract business listings from 2GIS search pages. The **2GIS Places Scraper** allows you to gather structured data for market research, competitor analysis, and local business intelligence.

### ✨ Features

- 📍 **Comprehensive Business Data**: Retrieve names, addresses, coordinates, ratings, reviews, categories, working hours, and more.
- 🔍 **Search-Based Extraction**: Provide 2GIS search result URLs to extract all matching business listings.
- 📄 **Automatic Pagination**: Crawls multiple pages of results with configurable limits.
- ⚡ **Fast & Efficient**: Built on Crawlee's CheerioCrawler for lightweight, high-speed scraping without a browser.

### 🛠️ How It Works

1. **Enter 2GIS Search URLs** – Provide one or more 2GIS search result page URLs (e.g. `https://2gis.ae/dubai/search/restaurants`).
2. **Set Limits** – Configure `maxItems` and `maxPages` to control how much data to extract.
3. **Run the Scraper** – Start the process and receive structured business data instantly.

### 📊 Sample Output Data

The scraper provides structured JSON output with key business details. Example:

```json
[
    {
        "id": "70000001041258673",
        "name": "Ce La Vi Dubai, restaurant",
        "nameExtension": "Ce La Vi Dubai",
        "address": "Address Sky View Hotel, 133a, Sheikh Zayed road",
        "buildingName": null,
        "city": "Dubai",
        "district": "Burj Khalifa/Downtown Dubai",
        "latitude": 25.201722,
        "longitude": 55.270756,
        "categories": ["Cafe / Restaurants"],
        "rating": 4.6,
        "reviewCount": 33,
        "schedule": {
            "Fri": [{ "from": "12:00", "to": "03:00" }],
            "Mon": [{ "from": "12:00", "to": "03:00" }],
            "Sat": [{ "from": "12:00", "to": "03:00" }],
            "Sun": [{ "from": "12:00", "to": "03:00" }],
            "Thu": [{ "from": "12:00", "to": "03:00" }],
            "Tue": [{ "from": "12:00", "to": "03:00" }],
            "Wed": [{ "from": "12:00", "to": "03:00" }]
        },
        "attributes": {
            "Restaurants / Café": [
                "Average bill 180 AED",
                "Asian cuisine",
                "Vegeterian menu",
                "Desserts",
                "Alcohol menu",
                "Live music",
                "Restaurants with a View",
                "Valet Parking",
                "Outdoor sitting area",
                "Brunch",
                "Brunch hours 13:00-16:00",
                "Brunch price 290–690 AED",
                "Seating capacity 150 people"
            ],
            "Assortment": ["Fresh juice"],
            "Payment by credit cards": ["Wi-Fi"],
            "Payment methods": ["Payment by credit cards", "Cash payment"],
            "Service Language": ["English", "Tagalog", "French", "Russian"],
            "Wheelchair Accessible": ["Entrance for handicapped people"]
        },
        "photoCount": null,
        "orgName": "Ce La Vi Dubai, restaurant",
        "branchCount": 1,
        "url": "https://2gis.ae/dubai/firm/70000001041258673",
        "searchUrl": "https://2gis.ae/dubai/search/restaurants",
        "scrapedAt": "2026-02-07T15:21:19.853Z"
    }
]
```

Supercharge your local business research with **2GIS Places Scraper** today! 🚀

# Actor input Schema

## `startUrls` (type: `array`):

2GIS search page URLs to scrape.

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

Maximum number of places to extract across all search URLs. Set to 0 for unlimited.

## `maxPages` (type: `integer`):

Maximum number of pagination pages to scrape per search URL. Set to 0 for unlimited.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://2gis.ae/dubai/search/restaurants"
    }
  ],
  "maxItems": 50,
  "maxPages": 5
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        {
            "url": "https://2gis.ae/dubai/search/restaurants"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("piotrv1001/2gis-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 = { "startUrls": [{ "url": "https://2gis.ae/dubai/search/restaurants" }] }

# Run the Actor and wait for it to finish
run = client.actor("piotrv1001/2gis-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 '{
  "startUrls": [
    {
      "url": "https://2gis.ae/dubai/search/restaurants"
    }
  ]
}' |
apify call piotrv1001/2gis-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,piotrv1001/2gis-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/XB9276Hm5U9dhaQSj/builds/M1wYs28RNtNbRcN72/openapi.json
