Common and Unique Keywords (domains_uniq_keywords)
domains_uniq_keywords
Shows unique keywords of a domain. Keywords that queried domain has in common with one or two other domains are removed from the list.
Pagination
Following parameters can be used for pagination:
- page_size : number of results per page (default: 100, max: 1000)
- page : page number (set to the 1st page by default
You can use the following parameters to filter the results
Parameter | Description | Possible settings |
queries_from | min number of monthly searches | 0-100,000,000 |
queries_to | max number of monthly searches | 0-100,000,000 |
cost_from | min CPC | 0-200 |
cost_to | max CPC | 0-200 |
concurrency_from | min level of competition | 1-100 |
concurrency_to | max level of competition | 1-100 |
Metrics | Description |
result | Encapsulates the answer |
total | Number of keywords for which the domain ranks in top-100 |
region_queries_count | Search volume in selected search engine database |
domain | Domain |
keyword_length | Number of words divided by space in a keyword |
url | URL of a page which appears in SERP for the keyword |
dynamic | How the position of this keyword has changed |
traff | Approximate organic traffic prognosis |
keyword_crc | The checksum for a quick search |
found_results | The number of results found for "keywords" |
url_crc | CRC code (encryption method) for the "" |
concurrency | Keyword competition in PPC (0-100) |
position | Domain's position for a keyword |
date | Date |
keyword_id | Keyword ID in our database |
region_queries_count_wide | Search volume (broad match) |
region_queries_count_last | Search volume (last month) |
types | A list of special elements shown in SERP (for example, video, carousel or map) |
geo_names | List of toponyms in the array (if toponyms are present in the keywords) |
status_msg | Response "OK" or "Error" report on a successful or unsuccessful request |
status_code | Response code "200" — successful request. Errors occur when limits are exceeded (number of simultaneous requests or account limits) |
left_lines | Number of remaining API queries |
<?php
// This example works on serpstat-sdk only
// https://github.com/SerpstatGlobal/serpstat-sdk
require_once __DIR__ . '/../vendor/autoload.php';
// configure your application
$config = [
'token' => '19666fc1ae1724da1d5ea2f3a99d5f5a',
];
$domains = ['example.com','example1.com'];
$excludeDomains = ['example2.com'];
// init client with your serpstat api token
$apiClient = new \Serpstat\Sdk\Core\ApiGuzzleHttpClient($config['token']);
// create instance of any api method class
// list of methods classes in folder src\Methods
$apiMethod = new \Serpstat\Sdk\Methods\DomainsUniqKeywordsMethod(
$domains,
$excludeDomains,
\Serpstat\Sdk\Interfaces\IApiClient::SE_GOOGLE_RU
);
try {
// try call api method
$response = $apiClient->call($apiMethod);
} catch (\Exception $e) {
// catch api error
$response = $e->getMessage();
}
"{
""result"":{
""total"":95238,
""hits"":[
{
""region_queries_count"":20,
""domain"":""example.com"",
""keyword_length"":4,
""keyword"":""\u0438\u0433\u0440\u043e\u0432\u044b\u0435 \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0438 \u0434\u043b\u044f \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u0430"",
""url"":""http:\/\/example.com\/...\/"",
""dynamic"":1,
""keyword_crc"":-1442192398,
""found_results"":""78200"",
""url_crc"":584127249,
""cost"":0.15,
""concurrency"":60,
""keyword_id"":1126153,
""date"":""2017-03-01"",
""position"":11,
""subdomain"":null,
""region_queries_count_wide"":91,
""region_queries_count_last"":10,
""types"":[
],
""geo_names"":[
],
""_id"":""1126153-11"",
""example.com"":99,
""example1.com"":11
}
]
},
"status_msg":"OK",
"status_code":200,
"left_lines":9512
}
"import codecs
import json
import pprint
import urllib.request as urlrequest
from urllib.parse import urlencode
host = 'http://api.serpstat.com/v3'
method = 'domains_uniq_keywords'
params = {
'query': ','.join(['example1.com', 'example2.com']),
'minus_domain': 'example3.com',
'se': 'g_us',
'token': 'ijmiom4f5m34905g03um8342dm04923lre3w'}
api_url = ""{host}/{method}?{params}"".format(
host=host,
method=method,
params=urlencode(params, safe=',')
)
try:
json_data = urlrequest.urlopen(api_url).read()
except Exception as e0:
print(""API request error: {error}"".format(error=e0))
data = json.loads(json_data)
pprint.pprint(data)"
"{
""result"":{
""total"":95238,
""hits"":[
{
""region_queries_count"":20,
""domain"":""example.com"",
""keyword_length"":4,
""keyword"":""\u0438\u0433\u0440\u043e\u0432\u044b\u0435 \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0438 \u0434\u043b\u044f \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u0430"",
""url"":""http:\/\/example.com\/...\/"",
""dynamic"":1,
""keyword_crc"":-1442192398,
""found_results"":""78200"",
""url_crc"":584127249,
""cost"":0.15,
""concurrency"":60,
""keyword_id"":1126153,
""date"":""2017-03-01"",
""position"":11,
""subdomain"":null,
""region_queries_count_wide"":91,
""region_queries_count_last"":10,
""types"":[
],
""geo_names"":[
],
""_id"":""1126153-11"",
""example.com"":99,
""example1.com"":11
}
]
},
"status_msg":"OK",
"status_code":200,
"left_lines":9512
}