# twogis.place

A place's page on 2GIS: address, pin, categories, rating, hours, attributes, and its phones, websites and other contacts.

2GIS place, one of the 2GIS scrapers.

| | |
| --- | --- |
| 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](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `place` | string | yes | 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. |

- `place` is the `place_id` of a `twogis.search` record, or the address of the place's page on any of 2GIS's sites.
- `contacts` are the ones the business lists on its public page, in the page's order, each with its `type`: `phone`, `website`, `email`, `whatsapp`, `telegram`, `instagram` and others. `phones`, `website` and `email` are picked out of them.
- `rating` is out of 5; `rating_count` is how many ratings it is of and `review_count` how 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 `removed` `true`.
- An id 2GIS has no place under ends `failed` with `not_found`, and costs nothing — see [the reasons of this family](https://docs.enrichednow.com/results-and-statuses.md#2gis).

## 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. |
| `hours[].day` | string | The day of the week: `Mon`, `Tue`, `Wed`, `Thu`, `Fri`, `Sat` or `Sun`. |
| `hours[].opens` | string | When the place opens, `HH:MM` in its own time. |
| `hours[].closes` | 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. |
| `contacts[].type` | string | What kind of contact this is, as 2GIS names it: `phone`, `website`, `email`, `whatsapp`, `telegram`, `instagram`, `vkontakte`, … |
| `contacts[].value` | string | The contact itself: a telephone number in international form, an address of a page, an email address. |
| `contacts[].text` | string or null | How the page writes it, e.g. `+7 (499) 288‒19‒12`. |
| `contacts[].comment` | 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

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
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"}}'
```

## 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`.

```json
{
  "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.

```json
{
  "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](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the 2GIS scrapers](https://docs.enrichednow.com/results-and-statuses.md#2gis) are in their own section there.
