Skip to main content

Get region by id

OpenAPI Specification

Regions directory (2.0)

2GIS API Support: api@2gis.ru URL: https://docs.2gis.com

Regions

Getting information about a region

Displays detailed information about the region by its unique identifier.

query Parameters
key
required
string

A unique key of API user.

id
required
string

Region ID. Conflicts with the branch_id parameter. Several identifiers can also be passed, comma-separated.

branch_id
required
string

Branch ID. Conflicts with id parameter. It is used to obtain a region.

fields
Array of strings

Additional fields to be displayed in the response should be separated by commas.

List of available fields:

  • items.name_grammatical_cases — declination of the region name;
  • items.domain — domain value;
  • items.locales — the list of locales for which you can search for the region;
  • items.time_zone — time zone;
  • items.bounds — geometry of the project boundaries in the WKT format;
  • items.statistics — statistics for the region;
  • items.locale — the current locale for the region;
  • items.settlements — a list of satellite cities;
  • items.satellites — list of satellite cities as objects;
  • items.code — region code;
  • items.uri_code — the region code that will be displayed in the domain;
  • items.uri_aliases — set of region aliases;
  • items.allow_for_indexing — the list of project languages allowed for indexing;
  • items.country_code — country code;
  • items.default_pos — default position for displaying the project;
  • items.zoom_level — zoom level;
  • items.flags — indicators of the presence of certain information in the region;
  • items.seo — additional fields for SEO.

Responses

Response Schema:
required
object

Response metadata.

required
object

Main result

Response samples

Content type
{
  • "meta": {
    • "api_version": "dev",
    • "code": 0,
    • "issue_date": "string"
    },
  • "result": {
    • "items": [
      ],
    • "total": 1
    }
}