Scraper API2GIS
twogis.place
A place's page on 2GIS: address, pin, categories, rating, hours, attributes, and its phones, websites and other contacts.
- Id
twogis.place- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/twogis.place/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
placerequired | string | The place's id on 2GIS, e.g. 70000001034739765 (the place_id of a twogis.search record), or the address of its page (https://2gis.ru/moscow/firm/70000001034739765).Limit: at least 6 characters, at most 600 characters. |
placeis theplace_idof atwogis.searchrecord, or the address of the place's page on any of 2GIS's sites.contactsare the ones the business lists on its public page, in the page's order, each with itstype:phone,website,email,whatsapp,telegram,instagramand others.phones,websiteandemailare picked out of them.ratingis out of 5;rating_countis how many ratings it is of andreview_counthow many of those come with a text.- A place 2GIS has removed from its directory keeps its page for a while: it is returned with
removedtrue. - An id 2GIS has no place under ends
failedwithnot_found, and costs nothing — see the reasons of this family.
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
place_id | string | 2GIS's id of the place. |
type | string | What the place is: branch for an organisation's branch, or building, street, adm_div (a district or a town), station, attraction and the like. |
name | string | The name as the page writes it, e.g. Orto, cafe. |
short_name | string or null | The name without what follows the comma, e.g. Orto. |
description | string or null | What the name is followed by, e.g. cafe. |
url | string | The place's page on 2GIS. |
address | string or null | The street address, e.g. 395, Jumeirah road. |
address_comment | string or null | What the page adds to the address, e.g. the floor or the office. |
building_name | string or null | The name of the building the place is in, when the page gives one. |
postal_code | string or null | The postal code. |
district | string or null | The district of the city. |
city | string or null | The city or town. |
region | string or null | The region the city is in. |
country | string or null | The country, in the page's language. |
latitude | number or null | The latitude of the place's pin, in decimal degrees. |
longitude | number or null | The longitude of that pin. |
categories | array of string | The categories 2GIS lists the place in, the main one first. |
rating | number or null | The average rating, 1 to 5. Null for a place nobody has rated. |
rating_count | integer or null | How many ratings the average is of. |
review_count | integer or null | How many of those ratings come with a written review. |
attributes | array of string | What the page lists the place as offering or having, e.g. Wi-Fi, Average bill 40 AED. |
hours | array of object | The opening hours, a row per day and period. Empty when the page lists none. |
day (in hours[]) | string | The day of the week: Mon, Tue, Wed, Thu, Fri, Sat or Sun. |
opens (in hours[]) | string | When the place opens, HH:MM in its own time. |
closes (in hours[]) | string | When it closes, HH:MM; earlier than opens when it closes after midnight, 24:00 at midnight. |
open_24_7 | boolean or null | True when the page says the place is open around the clock. |
utc_offset_minutes | integer or null | The place's time zone as minutes ahead of UTC. |
organization_id | string or null | 2GIS's id of the organisation the branch belongs to. |
branch_count | integer or null | How many branches that organisation has on 2GIS. |
photo_count | integer or null | How many photos the page has of the place. |
image | string or null | The place's main photo. |
promoted | boolean or null | True when the place is shown as an advertiser. |
removed | boolean | True when 2GIS says the place was removed from its directory: it may have closed for good or for a while.Default: false. |
contacts | array of object | Every contact the page lists, in its order: telephone numbers, websites, email addresses, messengers and social networks. |
type (in contacts[]) | string | What kind of contact this is, as 2GIS names it: phone, website, email, whatsapp, telegram, instagram, vkontakte, … |
value (in contacts[]) | string | The contact itself: a telephone number in international form, an address of a page, an email address. |
text (in contacts[]) | string or null | How the page writes it, e.g. +7 (499) 288‒19‒12. |
comment (in contacts[]) | string or null | The note beside it, e.g. the department a number belongs to. |
phones | array of string | The telephone numbers among the contacts, in international form. |
website | string or null | The first website among the contacts. |
email | string or null | The first email address among the contacts. |
fetched_at | string (date-time) | When the page was read, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/twogis.place/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"place":"70000001067436787"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("twogis.place", {"place": "70000001067436787"})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("twogis.place", { place: "70000001067436787" });
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "twogis.place", map[string]any{"place": "70000001067436787"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("twogis.place", Map.of("place", "70000001067436787"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run twogis.place --input-json '{"place":"70000001067436787"}'Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"place": "70000001067436787"
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "twogis.place",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"place": "70000001067436787"
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"place_id": "70000001067436787",
"type": "branch",
"name": "Orto, cafe",
"short_name": "Orto",
"description": "cafe",
"url": "https://2gis.ru/dubai/firm/70000001067436787",
"address": "395, Jumeirah road",
"address_comment": "G Floor",
"building_name": null,
"postal_code": null,
"district": "Jumeirah 2",
"city": "Dubai",
"region": "Dubai Emirate",
"country": "UAE",
"latitude": 25.19497,
"longitude": 55.235842,
"categories": [
"Coffee shop"
],
"rating": 5,
"rating_count": 15,
"review_count": 4,
"attributes": [
"GreatList",
"Average bill 40 AED",
"Breakfast menu"
],
"hours": [
{
"day": "Mon",
"opens": "07:00",
"closes": "24:00"
},
{
"day": "Tue",
"opens": "07:00",
"closes": "24:00"
}
],
"open_24_7": null,
"utc_offset_minutes": 240,
"organization_id": "70000001067436786",
"branch_count": 1,
"photo_count": 1,
"image": "https://i3.photo.2gis.com/main/branch/99/70000001067436787/common",
"promoted": false,
"removed": false,
"contacts": [],
"phones": [],
"website": null,
"email": null,
"fetched_at": "2026-11-19T18:07:41.629757Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
attributes: 9 items, the first 3 shown. - Shortened:
hours: 7 items, the first 2 shown. - Left out:
contacts: the example keeps no contact details. - Left out:
phones: the example keeps no contact details.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the 2GIS scrapers are in their own section there.