Web Search API, REST: Wordstat.GetRegionsTree

The method method returns a tree of Wordstat-supported regions.

HTTP request

POST https://searchapi.api.cloud.yandex.net/v2/wordstat/getRegionsTree
        

Body parameters

{
          "folderId": "string"
        }
        

Field

Description

folderId

string

ID of the folder.

Response

HTTP Code: 200 - OK

{
          "regions": [
            {
              "id": "string",
              "label": "string",
              "children": [
                "object"
              ]
            }
          ]
        }
        

Field

Description

regions[]

RegionInfo

Region tree

RegionInfo

Field

Description

id

string

Region ID.

label

string

Region name

children[]

RegionInfo

Child regions.

Предыдущая
Следующая