Skip to content

About

Business listings across Russia, Central Asia, Cyprus and the UAE. Python, Node.js and cURL clients for the 2GIS Scraper on Apify, pay per result.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

2GIS Scraper: Парсер 2ГИС

Scrape 2GIS business listings across Russia, Central Asia, Cyprus and the UAE. Phone numbers, published emails, ratings, addresses and branch counts, by city or category.

Run it on Apify: apify.com/themineworks/2gis-places-search Docs, FAQ and pricing: themineworks.com/actors/2gis-places-search

Price: From $0.50 per 1,000 businesses on Apify's higher plans, plus a $0.005 start fee per run. Failed and empty results are never charged.

What it returns

  • Phone numbers, published emails, ratings, and review counts per business
  • Full address breakdown including district, city, and coordinates
  • Chain affiliation and branch counts for multi-location operators
  • Search by city name or category, local-language queries supported
  • No login, no API key

Quick start

You need a free Apify account and its API token (Settings, API & Integrations).

Python

pip install apify-client
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("themineworks/2gis-places-search").call(run_input={
    "queries": [
        "кафе"
    ],
    "city": "Москва",
    "maxItems": 50
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

Node.js

npm install apify-client
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('themineworks/2gis-places-search').call({
    "queries": [
        "кафе"
    ],
    "city": "Москва",
    "maxItems": 50
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

cURL

One request that runs the actor and returns the results in the response (for runs under 5 minutes):

curl -X POST "https://api.apify.com/v2/acts/themineworks~2gis-places-search/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries": ["кафе"], "city": "Москва", "maxItems": 50}'

Command line

This repo includes ready-made clients that save results to JSON and CSV:

python3 2gis_scraper.py --token YOUR_APIFY_TOKEN --queries "кафе" --city "Москва" --max-items "50"
node 2gis_scraper.mjs --token YOUR_APIFY_TOKEN --queries "кафе" --city "Москва" --max-items "50"

Input

Field Type Default Description
queries (required) array Business types or names
city string "Москва" City name in its local spelling, for example Москва, Алматы, Toshkent, Bakı
maxItems integer 50 Maximum businesses to return across all queries
monitorMode boolean false Run on a schedule and get ONLY businesses not delivered in a previous run

Output

One row per result, as JSON, CSV, Excel or through the API.

Field Type Description
name Business
category Category
address Address
district District
phone Phone
website Website
rating Rating
review_count Reviews
maps_url 2GIS

Use it from an AI agent

The actor works as a tool in Claude, Cursor or any MCP client through Apify's MCP server:

https://mcp.apify.com/?tools=themineworks/2gis-places-search

FAQ

What countries does this cover?

Russia, Central Asia, Cyprus and the UAE, everywhere 2GIS maintains a business directory, roughly 200 cities.

Does it need a login or API key?

No. It reads 2GIS's public catalog API, the same one the 2GIS website itself calls.

What happens on a search with no matches?

Nothing is billed, the charge fires only when a business record is actually delivered.

How much does the 2GIS Scraper cost?

From $0.50 per 1,000 businesses on Apify's higher plans, plus a $0.005 start fee per run. Failed and empty results are never charged. You can cap what a single run may spend with the maximum cost setting on Apify.

Can I export the results to CSV or Excel?

Yes. Every run saves to an Apify dataset you can download as JSON, CSV, Excel or XML, or read through the API. The Python and Node clients in this repo also write the results to local files.

Can I run it on a schedule?

Yes. Save your input as a task on Apify and attach a schedule, or call the API from your own cron job. Scheduled runs are billed the same way as manual ones.

Related scrapers

Part of The Mine Works: 151 pay-per-result scrapers with no login and no browser setup on your side.

License

MIT © The Mine Works

About

Business listings across Russia, Central Asia, Cyprus and the UAE. Python, Node.js and cURL clients for the 2GIS Scraper on Apify, pay per result.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages