Domain Keywords Comparison
DATA_getDomainKeywordsComparisonCompare keyword rankings between two domains to find common keywords or identify keyword gaps where one domain ranks but the other does not.
Instructions
Data Tool: Analyzes and compares the keyword rankings of two websites: domain and compare. It can find keywords they have in common (diff=0) or identify a 'keyword gap' (diff=1)—keywords for which the domain ranks, but the compare domain does not. To find keywords the compare domain has but domain misses, swap the values of domain and compare.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The primary full URL for the analysis. If provided, `domain` is ignored. Required if `domain` is not provided. | |
| cols | No | A comma-separated list of specific response parameter names to include in the output. If omitted, a default set of relevant columns is returned for the comparison. | |
| diff | No | Controls the comparison mode. `0` = Common keywords (intersection): keywords both domains rank for. `1` = Keyword gap (difference): keywords the `domain` ranks for, but `compare` does not. | |
| page | No | For paginated results, specifies the page number of keywords to retrieve. | |
| type | No | Specifies whether to compare keywords based on organic search traffic or paid search (advertising) traffic. | organic |
| limit | No | The maximum number of keywords to return per page. | |
| domain | No | The primary domain for the analysis. For a keyword gap analysis (`diff=1`), this will be the domain that HAS the keywords. Required if `url` is not provided. | |
| source | Yes | Alpha-2 country code of the regional keyword database. | |
| compare | Yes | The secondary domain or full URL for comparison. Must match the type of the primary parameter (`domain` or `url`). For a keyword gap analysis (`diff=1`), this will be the entity that is MISSING the keywords. | |
| order_type | No | Specifies the sort order for the results. | asc |
| order_field | No | Specifies the field by which to sort the results. | keyword |