Skip to main content

Get category by id

Directory of categories (2.0)

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

Categories

Getting information about a category

Displays detailed information about categories with specified IDs.

query Parameters
key
required
string

A unique key of API user.

id
required
string

Category ID or the set of identifiers, separated by commas. Conflicts with alias.

alias
required
string
Example: alias=avtozapchasti_dlya_inomarok

The name of the category alias. Conflicts with the id parameter.

region_id
required
string
Example: region_id=1

Region ID.

fields
Array of strings

Additional fields to be displayed in the response should be separated by commas.
List of available fields:

  • items.region_id — unique identifier of the project;
  • items.is_reviewable_on_flamp — whether to allow reviews of the organizations of this column directly on flamp.ru;
  • items.rubrics — an array of children categories;
  • items.rubrics.region_id — the ID of the region;
  • items.rubrics.is_reviewable_on_flamp — whether to allow reviews of the organizations of this column directly on flamp.ru.

Responses

Response Schema:
required
object (ObjMeta)

Response metadata

required
object

Main result

Response samples

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