competitive_keyword_ranking
Where do we rank vs competitors on specific keywords? Per-keyword average rank position (1=top, higher=worse) for your site and tracked competitors within a segment. This is RANKING (position 1-N), NOT share percentage — use market_share_overview for share. Use for 'our rankings vs comp3' / 'how do we stack up in mobile India' / 'keyword ranking 3 days ago'. Defaults to the primary 'default' (Overall Market) segment when omitted — name another tracked segment to scope to it.
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": {
"date_range": "<date_range>"
},
"name": "competitive_keyword_ranking"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brand | No | Restrict to branded ("Yes") or non-branded ("No") demand (ignored at site granularity) | |
| device | No | Filter by device, e.g. "MOBILE" or "DESKTOP" | |
| medium | No | competitor source medium for the comparison, e.g. "google/organic" (default) or "google/cpc" | |
| country | No | Filter by country code, e.g. "ind" or "usa" | |
| segment | No | Tracked segment ID; omit to use the primary "default" (Overall Market) segment. | |
| competitor | No | A competitor domain or label to compare against head-to-head, e.g. "comp3" or "competitor-c.example" | |
| date_range | Yes | Explicit date range, e.g. "2026-05-01 to 2026-05-31". Both endpoints are INCLUSIVE — the END day is covered (a 7-day range = 7 days). Quattr weeks run Sunday–Saturday; for "last week" use the most recent complete Sun–Sat span. |