Compare Domains
bukvarix_compare_domainsCompare keywords across 2–10 domains to identify shared keywords or those unique to one domain for SEO analysis.
Instructions
Compare keywords between multiple domains.
This tool compares keywords across 2-10 domains (free API limit: 10 domains). For 2 domains, you can specify comparison type (common, unique to first, unique to second). For 3+ domains, always returns common keywords (intersection).
Args:
domains (string[], required): List of domains to compare. Minimum 2, maximum 10 for free API. Each domain must match format: /^[a-zA-Z0-9а-яёА-ЯЁ.-]+$/ (no protocol/path). Domains beyond limit are ignored.
comparison_type ('intersect' | 'domain1_uniq' | 'domain2_uniq', optional): Comparison type. Only works for exactly 2 domains. Default: 'intersect'.
'intersect': Common keywords for all domains (default, always used for 3+ domains)
'domain1_uniq': Keywords unique to first domain (only for 2 domains)
'domain2_uniq': Keywords unique to second domain (only for 2 domains)
region (string, optional): Search engine region. Default: 'msk' (Moscow Yandex). Available regions: msk, gmsk, spb, rus, nsk, ekb, kzn, nnv, kry, che, sam, ufa, rnd, krr, oms, vrn, prm, vlg, sar, tmn, tom, gkiev, minsk, gminsk, nursul
num (number, optional): Number of results to return. Range: 1-1,000,000. Default: 250.
format ('txt' | 'json' | 'csv' | 'tsv', optional): Output format. Default: 'json'.
result_count (boolean, optional): If true, return only total count. Default: false.
Returns: Response format depends on 'format' and 'result_count' parameters.
If result_count=true:
Text: "Total keywords found: {count}"
Structured: { "total": number, "domains": string[], "comparison_type": string }
If result_count=false and format='json': { "data": [ [keyword, words_count, chars_count, search_results_count, broad_frequency, exact_frequency, position1, position2], ... ], "domains": ["domain1.com", "domain2.com"], "comparison_type": "intersect" } Where array indices:
[0]: keyword (string) - Keyword phrase
[1]: words_count (number) - Number of words in phrase
[2]: chars_count (number) - Number of characters
[3]: search_results_count (number) - Search results count in Yandex/Google
[4]: broad_frequency (number) - Broad frequency worldwide
[5]: exact_frequency (number) - Exact frequency worldwide
[6]: position1 (number) - Position for first domain (1-based)
[7]: position2 (number) - Position for second domain (1-based, only for 2 domains comparison)
Note: For 3+ domains comparison, only position1 is present (position for first domain).
Examples:
"Compare 2 domains (common)" -> { domains: ["wildberries.ru", "lamoda.ru"], comparison_type: "intersect" }
"Find unique to first" -> { domains: ["wildberries.ru", "lamoda.ru"], comparison_type: "domain1_uniq" }
"Compare 3+ domains" -> { domains: ["domain1.com", "domain2.com", "domain3.com"] }
"With region" -> { domains: ["d1.com", "d2.com"], region: "rus" }
"Count only" -> { domains: ["d1.com", "d2.com"], result_count: true }
Note: comparison_type is ignored when comparing 3+ domains (always uses intersection).
Error Handling:
400: "Error: Invalid request" - Domain format incorrect or less than 2 domains
402: "Error: Limit exceeded" - More than 10 domains or 'num' too large
429: "Error: Rate limit exceeded" - Wait before retrying
Other errors: See bukvarix_search_keywords error handling
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domains": "<domains>"
},
"name": "bukvarix_compare_domains"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| num | No | Количество строк в отчете (по умолчанию 250, максимум 1000000) | |
| format | No | Формат данных: 'txt' (список), 'json' (массив), 'csv' (точка с запятой), 'tsv' (табуляция) | json |
| region | No | Регион поисковой машины (по умолчанию: msk - Москва Яндекс) | |
| domains | Yes | Список доменов для сравнения (от 2 до 10 для бесплатного API) | |
| result_count | No | Если true, вернуть только общее количество результатов без данных | |
| comparison_type | No | Тип сравнения: 'intersect' (общие), 'domain1_uniq' (уникальные для первого), 'domain2_uniq' (уникальные для второго) | intersect |