Number of domain keywords within regional Serpstat databases

The SerpstatDomainProcedure.getRegionsCount returns an array with information about the number of keys per domain in Serpstat databases. Databases with a number of keys equal to zero are not shown in the response.

General request parameters and instructions for using Serpstat API

Search databases available

Request parameters
Parameter Description Type Required Default value Value options
id A request id: the response contains the same id. int / str yes Any number or string
method API method name string yes SerpstatDomainProcedure.getRegionsCount
params The object with parameters {...}, it lists all the following parameters and arrays [...] yes
domain Domain name string yes ebay.com (Any domain name)
sort Sort by data (ascending and descending) string no  "keywords_count" "keywords_count" — Number of keywords in the database
"db_name" — Name of the database
"country_name_en" — Name of the database's country
"google_domain" — Search engine domain name
order Sort direction (asc — ascending, desc — descending) array no "desc" "order": "desc" / "asc" 

Response parameters

Parameter

Description

id

Response id corresponds the request id

result

Contains the answer

data

Array with data

country_name_en

Name of the database's country

db_name

Name of the database

domain

Analyzed domain name

keywords_count

Number of keywords in the database

summary_info

Object with data

analysed_domain

Analyzed domain

sort

Order of sorting the results

order

Sorting direction (asc - ascending, desc - descending)

regions_db_count

Number of the database's in the search result

total_keywords

Sum of the keywords in all databases

left_lines

API credits remaining

1 API credit is spent per 1 database. Part of the API response for which you spend 1 credit: 

{
                "country_name_en": "France",
                "db_name": "g_fr",
                "domain": "google.fr",
                "keywords_count": 1329046
            },



Example
Request data:
{
    "id": 1,
    "method": "SerpstatDomainProcedure.getRegionsCount",
    "params": {
        "domain": "ebay.com",
        "sort": "db_name",
        "order": "asc"
    }
}
Response data:
{
    "id": "1",
    "result": {
        "data": [
            {
                "country_name_en": "Andorra",
                "db_name": "g_ad",
                "domain": "google.ad",
                "keywords_count": 12793
            },
            {
                "country_name_en": "United Arab Emirates",
                "db_name": "g_ae",
                "domain": "google.ae",
                "keywords_count": 1280733
            },
            {
                "country_name_en": "Afghanistan",
                "db_name": "g_af",
                "domain": "google.com.af",
                "keywords_count": 50309
            },
            {
                "country_name_en": "Canada",
                "db_name": "g_ca",
                "domain": "google.ca",
                "keywords_count": 7762834
            },
            {
                "country_name_en": "Australia",
                "db_name": "g_au",
                "domain": "google.com.au",
                "keywords_count": 9044215
            },

            {
                "country_name_en": "Ukraine",
                "db_name": "g_ua",
                "domain": "google.com.ua",
                "keywords_count": 18058846
            },
            {
                "country_name_en": "United Kingdom",
                "db_name": "g_uk",
                "domain": "google.co.uk",
                "keywords_count": 21983160
            },
            {
                "country_name_en": "United States",
                "db_name": "g_us",
                "domain": "google.com",
                "keywords_count": 106151885
            }
        ],
              "summary_info": {
            "analysed_domain": "ebay.com",
            "sort": "db_name",
            "order": "asc",
            "regions_db_count": 244,
            "total_keywords": 297957934,
            "left_lines": 936323
        }
    }
}
}

Поделитесь статьей с вашими друзьями

Are you sure?

Персональная презентация сервиса

Serpstat is all about saving time, and we want to save yours! One of our specialists will contact you and discuss options going forward.

These may include a personal demonstration, a trial period, comprehensive training articles & webinar recordings, and custom advice from a Serpstat specialist. It is our goal to make you feel comfortable while using Serpstat.

Name

Email

Phone

We are glad of your comment
Política de privacidad.

Спасибо, мы с вами свяжемся в ближайшее время

Open support chat