Skip to content
//2GIS Scraper example\\

Pharmacies in St. Petersburg, 10 places

Places with contacts, 3 reviews and 2 photos each.

Updated November 24, 2026

What this example returns

This example returns up to 10 places.

The dataset’s “Places” view shows 11 columns: Photo, Name, Category, Categories, Address, City, Phones, Websites, Rating, Reviews, and 2GIS link. See every output field.

What each setting does

The input this example runs 2GIS Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Search terms query

аптека

What to look for, in any language 2GIS understands, for example Ресторан, барбершоп or dentist. Each term is searched in every location. Leave empty to browse whole categories (see Categories) or to scrape known places (see Organization IDs).

Location locationQuery

Санкт-Петербург

A city, district, street, metro station or any place name as 2GIS knows it, for example Москва or Алматы. For several cities add the others under Search area.

Places per search maxItems

10

How many places to save for each search term and location. 0 means every place 2GIS returns for the search. Each search is paged to the end of the 2GIS list (a test search for Продукты in Moscow returned 8,000 places without stopping).

Default: 20 → this example uses 10

Has a website filterHasSite

No

Only places that list a real website. A place whose only link is a social profile (Telegram, VK, WhatsApp, Instagram...) does not count.

Has photos filterHasPhotos

No

Only places with photos.

Has prices filterHasGoods

No

Only places that publish prices or a menu.

Delivery filterHomeDelivery

No

Only places that deliver.

Takeaway filterTakeaway

No

Only places with food to go.

Pay by card filterPaymentCard

No

Only places that accept cards.

Wi-Fi filterWifi

No

Only places with Wi-Fi for guests.

New places filterCreatedRecently

No

Only places recently added to 2GIS.

Add contacts includeContacts

Yes

Add phones, emails, websites and social links to each place. Charged per place that has contact details.

Default: No → this example uses Yes

Reviews per place maxReviewsPerPlace

3

How many reviews to save for each place. 0 skips reviews.

Default: 0 → this example uses 3

Review order reviewSortBy

Most trusted

trust puts the most trusted reviews first, friends puts the newest first.

Which reviews reviewRatings

All

All reviews, only positive ones (4 and 5 stars) or only negative ones (1 to 3 stars).

Include reviews without a rating includeUnratedReviews

Yes

Also collect text-only reviews when Which reviews is All. They follow the rated ones.

Include reviewer profile includeReviewerData

No

Add the public name, id and review count of each reviewer.

Photos and videos per place maxMediaPerPlace

2

How many extra photos and videos to save for each place. 0 skips them.

Default: 0 → this example uses 2

Include photo authors includePhotoAuthors

No

Add author details to photos and videos when 2GIS provides them.

Skip places from earlier runs enableGlobalDataset

No

Remember every place saved by runs that use this option and skip it next time, so repeated runs return only new places. Skipped places are not charged.

.json
{
  "query": [
    "аптека"
  ],
  "locationQuery": "Санкт-Петербург",
  "maxItems": 10,
  "includeContacts": true,
  "maxReviewsPerPlace": 3,
  "maxMediaPerPlace": 2,
  "organizationIds": [],
  "rubricIds": [],
  "filterRating": "",
  "filterHasSite": false,
  "filterHasPhotos": false,
  "filterHasGoods": false,
  "filterHomeDelivery": false,
  "filterTakeaway": false,
  "filterPaymentCard": false,
  "filterWifi": false,
  "filterCreatedRecently": false,
  "sortBy": "",
  "reviewSortBy": "trust",
  "reviewRatings": "all",
  "includeUnratedReviews": true,
  "includeReviewerData": false,
  "includePhotoAuthors": false,
  "locationQueries": [],
  "cityIds": [],
  "districtIds": [],
  "subwayIds": [],
  "buildingIds": [],
  "domain": "",
  "language": "",
  "enableGlobalDataset": false
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • Placefrom $0.0007652Charged once for each place saved to the dataset.
  • Contactsfrom $0.000381Charged once for each saved place that includes contact details (Add contacts).
  • Photo or videofrom $0.0001275Charged once for each photo or video saved with a place.
  • Reviewfrom $0.0001275Charged once for each review saved with a place.
  • Actor startfrom $0.007652Charged once per run.

Full pricing

When to use this example

From the 2GIS Scraper readme:

Known limit

The input and output use plain field names such as query, locationQuery and maxItems.

Why are phones or websites empty?

Contacts are only added when you turn on Add contacts, and only if the business listed them on 2GIS. With Has a website on, every place has a real website; social profiles (Telegram, VK and similar) go to socials and do not count as a website.

Other ways to run 2GIS Scraper

All examples of 2GIS Scraper

About 2GIS Scraper

Scrape 2GIS places by search term and location, or by link: phones, emails, websites, social links, address, coordinates, hours, rating, categories, reviews and photos.

Price:
From $0.765 / 1,000 results
Developer:
Corner Ledger
Categories:
Lead generation, Travel

2GIS Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.