Documentation
2GIS API reference for 5 operations
Reference for the 2GIS API: what each input of its 5 operations does, how search paging works, and what the returned fields mean.
See also: 2GIS Business Listings and Reviews API overview and prices · 2GIS API guide: regions, rubrics, search, reviews
On this page
2GIS API request body rules
Every operation reads its inputs from the JSON body. Several alternative names are also accepted:
idandbranch_idforbody.org_idqandtextforbody.queryregionforbody.citypointforbody.llhas_siteforbody.has_website
On search the number of rows per page goes in body.page_size, for which limit is also accepted; on the reviews operation body.limit is the field itself. Values outside an input's range or outside its allowed values are rejected; no input falls back silently to its default.
Fields in this section (8)
body, body.org_id, body.query, body.city, body.ll, body.has_website, body.page_size, body.limit
Regions list: post-2gis-cities
Without body.country the operation lists every region 2GIS covers, 207 on 2026-11-03; a two-letter ISO country code such as kz, ru, uz, kg, ae or sa keeps only the regions of that country. body.locale chooses the language of the region names; Russian, ru_RU, applies when it is left out, and codes such as en_AE or ar_AE give other languages.
The list exists to supply the city input of search and rubrics: the code and the region_id of an entry are both accepted there, and so is the Russian name, so keep the code or the id when you request names in another language. Several other fields of an entry describe the region itself:
localeis the region's own language setting, which the business card, search and rubrics fall back to when their ownbody.localeis left outtime_zonenames the region's time zonelatitudewithlongitudemark the centre of the region, a sensible point forbody.ll, written longitude first, when a search should start from the middle of a city
Fields in this section (3)
post-2gis-cities, body.country, body.locale
Business card: post-2gis-detail
Name the branch with body.org_id, which is the org_id of a search row and also the number after /firm/ in a 2GIS link, or with body.url, the whole link, for example https://2gis.ru/moscow/firm/70000001113359188. One of the two is enough.
body.locale sets the language of names and rubric labels on the card. data holds one object, org, with every search row field described under search below, plus four additions:
attributes: a list whose entries carrygroup,nameandtagand cover facts such as the average bill, cuisine, payment and amenitiesdescription: the text describing the businessnearest_metro: a list of nearby stations given asstation_idanddistance_m, the distance in metres
The fourth addition is purpose. The card is the place to read these four, since a search row does not carry them.
Fields in this section (4)
post-2gis-detail, body.org_id, body.url, body.locale
Customer reviews: post-2gis-reviews
The branch is named by body.org_id; a firm link is not accepted here, so take the number from the link or from a search row. Leave body.cursor empty for the first page; each call returns one page of at most body.limit reviews.
With newest the reviews are ordered by the date they were written, and with edited by their latest edit. Each entry in reviews carries these fields:
- the review itself:
review_id, the starrating,text,date_createdanddate_edited - the author:
author_name,author_id,author_reviews_countandauthor_photo - the reactions:
likes_countandcomments_count is_verifiedand the attachedphotos- the business's answer:
business_replywith itsbusiness_reply_date - the branch: its
org_id
Fields in this section (5)
post-2gis-reviews, body.org_id, body.cursor, body.sort, body.limit
Rubric tree: post-2gis-rubrics
body.city takes a region code, a numeric region id or the Russian region name, and the tree is the one for Moscow when it is left out. Without body.parent_id, or with it empty, the operation returns the top groups of the region, about 28 of them; with the rubric_id of one top group it returns the rubrics inside that group, so the tree is read in two steps.
body.locale sets the language of the names. In the rows:
rubric_idis the value that search accepts inbody.rubric_idand, for a top group, the value that goes intobody.parent_idparent_idlinks a rubric to its groupnameis the label in the chosen languagebranch_countandorg_countcount the branches and the organisations that the rubric holds in the requested region
Fields in this section (4)
post-2gis-rubrics, body.city, body.parent_id, body.locale
Search inputs: post-2gis-search
A search needs body.query, body.rubric_id or both. body.query matches a business name, a brand or a category in any language 2GIS indexes, so кофейня, Starbucks and coffee all work, while body.rubric_id restricts the rows to one rubric, alone or combined with a text. The place comes from body.city, given as a region code such as moscow, almaty, dubai or riyadh, a numeric region id or the Russian name, or from body.ll, a point written longitude first and latitude second.
When neither is sent, the search runs in Moscow. body.radius limits the rows to a circle of that many metres around the point and needs body.ll. The order comes from body.sort:
distancesorts nearest first and needsbody.lltoorelevancekeeps the 2GIS orderratingputs the highest rated firstnamesorts alphabetically
The filters keep only the businesses that match:
body.has_photoskeeps businesses with photosbody.has_websitekeeps businesses with a websitebody.open_atkeeps those open at a weekday and local time written as day,HH:MM with days mon to sun, for examplefri,23:30
body.locale works as it does on the business card.
Fields in this section (11)
post-2gis-search, body.query, body.rubric_id, body.city, body.ll, body.radius, body.sort, body.has_photos, body.has_website, body.open_at, body.locale
Search rows and paging: post-2gis-search
data holds the matching branches in rows. Raise body.page from 1 to read further pages; a page number past the last page returns an empty rows list, so stop at the first empty page. A row carries these groups of fields:
- the branch:
org_id,name,name_primaryandname_extension - its chain:
brand_id,brand_nameandbrand_branch_count - the address as text:
address,full_addressandaddress_comment - the address in parts:
street,house,postcode,country,region,cityanddistrict, withlatitudeandlongitude - the categories:
rubrics, whose ids are values thatbody.rubric_idaccepts - phones:
phones, each withnumber,displayandcomment - other contacts:
emails,websites,social_links, each withtype,urlandhandle, andother_contacts - opening hours:
hoursmaps each weekday to a list of HH:MM-HH:MM ranges,is_24x7shows round-the-clock opening andhours_commentadds a note - ratings:
rating,review_count,rating_count,brand_ratingandbrand_review_count - photos and listing details:
photo_count,main_photo_url,is_advertiser,updated_atand the listing'surl
Fields in this section (3)
post-2gis-search, body.page, body.page_size
{
"body": {
"city": "almaty",
"query": "стоматология",
"has_website": true,
"page": 2,
"page_size": 50
}
}Operations
Every public gateway operation uses POST /api/v1/{project}/{action}.
Use a JSON object with the documented path, query, headers and body locations; omit unused locations. input.headers is JSON data for the operation, not browser request headers. Do not put credentials here. Keep body arrays, scalar values and null as documented; omission is different from null.
Regions list
POST /api/v1/twogis/post-2gis-cities
Lists the 2GIS regions with their code, id, country, time zone and centre point, optionally for one country.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.country | string | Optional | — | — |
body.locale | string | Optional | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/twogis/post-2gis-cities' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"country":"kz"}}'Response fields
cities[]region_idcodenamecountry_codedomainlocaletime_zonelatitudelongitudeurl
Business card
POST /api/v1/twogis/post-2gis-detail
Returns the full business card of one branch, found by its id or its 2GIS firm link.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.locale | string | Optional | — | — |
body.org_id | string | Optional | — | — |
body.url | string | Optional | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/twogis/post-2gis-detail' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"org_id":"70000001113359188"}}'Customer reviews
POST /api/v1/twogis/post-2gis-reviews
Returns one page of customer reviews for a branch, newest or most recently edited first.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.org_id | string | Required | — | — | — |
body.cursor | string | Optional | — | — | — |
body.limit | integer | Optional | 50 | — | 1–50 |
body.sort | string | Optional | "newest" | "newest""edited" | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/twogis/post-2gis-reviews' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"limit":20,"org_id":"70000001113359188"}}'Rubric tree
POST /api/v1/twogis/post-2gis-rubrics
Returns the top rubric groups of a region, or the rubrics inside one group, with branch and organisation counts.
Input fields
| Field | Type | Required | Allowed values | Limits |
|---|---|---|---|---|
body.city | string | Optional | — | — |
body.locale | string | Optional | — | — |
body.parent_id | string | Optional | — | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/twogis/post-2gis-rubrics' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"city":"almaty"}}'Response fields
rubrics[]rubric_idnamealiastypeparent_idbranch_countorg_count
Business search
POST /api/v1/twogis/post-2gis-search
Finds businesses in a region or around a point by text and/or rubric, with filters and four sort orders.
Input fields
| Field | Type | Required | Default | Allowed values | Limits |
|---|---|---|---|---|---|
body.city | string | Optional | — | — | — |
body.has_photos | boolean | Optional | — | — | — |
body.has_website | boolean | Optional | — | — | — |
body.ll | string | Optional | — | — | — |
body.locale | string | Optional | — | — | — |
body.open_at | string | Optional | — | — | — |
body.page | integer | Optional | 1 | — | 1–1000 |
body.page_size | integer | Optional | 12 | — | 1–50 |
body.query | string | Optional | — | — | — |
body.radius | integer | Optional | — | — | 1–40000 |
body.rubric_id | string | Optional | — | — | — |
body.sort | string | Optional | "relevance" | "relevance""rating""name""distance" | — |
Request examples
# Server-side only. Set KAKIAPI_API_KEY in your secret manager.
# Every gateway operation is called with POST.
# Only operations shown as enabled on the API page can be called.
# Generate once per intent; retain the same value on status checks.
REQUEST_ID="$(uuidgen)"
curl --request POST 'https://kakiapi.com/api/v1/twogis/post-2gis-search' \
--header "Content-Type: application/json" \
--header "x-api-key: $KAKIAPI_API_KEY" \
--header "Idempotency-Key: $REQUEST_ID" \
--data '{"body":{"city":"moscow","query":"кофейня"}}'How calls work
POST /api/v1/twogis/<action>withx-api-key,Content-Type: application/jsonand a requiredIdempotency-Key.- A successful call returns
ok: true:datais the result of the operation,meta.requestIdidentifies the recorded request andmeta.chargedCreditUnitsis the amount charged. Otherwiseokisfalseanderror.codenames the reason; readokanderror.coderather than relying on the HTTP status alone. Every gateway reply carries a request id for support:meta.requestId, or a top-levelrequestIdin a reply withoutmeta(such as a refusal before admission). - Charged the listed price only when a call succeeds. Failures are not charged; an unconfirmed outcome is released after at most 900 seconds without a charge.
- Repeating the same request with the same Idempotency-Key after it has finished returns the stored response for 24 hours without a new charge.
In the gateway reference: