curl --request GET \
--url https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/by-domain \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/by-domain"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/by-domain', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/by-domain",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/by-domain"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/by-domain")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/by-domain")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"competitor_domain": "<string>",
"is_brand": false,
"organic_keyword_count": 123,
"keyword_sample_size": 123,
"keyword_sample_limit": 2,
"est_organic_traffic": 123,
"est_traffic_value_usd": 123,
"domain_rank": 123,
"referring_domains": 123,
"backlinks": 123,
"keyword_gap_count": 123,
"keyword_gap_sample_size": 123,
"captured_at": "2023-11-07T05:31:56Z",
"previous_captured_at": "2023-11-07T05:31:56Z",
"previous_est_organic_traffic": 123,
"previous_organic_keyword_count": 123,
"previous_keyword_gap_count": 123,
"previous_counts_withheld": false,
"previous_organic_keyword_count_withheld": false,
"previous_keyword_gap_count_withheld": false
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get Competitor Seo Metrics By Domain
Bulk per-domain SEO metrics for Explore Brands’ metric columns (S6).
Validation and response assembly only — the three-tier resolve (this
workspace’s captures, then any workspace’s, then a live authority read
under acquire_authority) is
seo_svc.resolve_domain_metric_rows. Read that docstring for the tier
order, why the cross-brand tier costs nothing and must run first, what
“still unmeasured” means per-metric rather than per-row, and why a domain
nobody has measured stays ABSENT rather than becoming a fabricated zero
(ADR 0026).
With acquire_authority=false (the default) this route never enqueues
acquisition and never spends a DataForSEO call. With it on, the remainder
costs ONE bulk_ranks call and ONE bulk_backlinks call for the whole
request — never one per domain — which is what the 100-domain ceiling below
bounds.
curl --request GET \
--url https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/by-domain \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/by-domain"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/by-domain', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/by-domain",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/by-domain"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/by-domain")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/by-domain")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"competitor_domain": "<string>",
"is_brand": false,
"organic_keyword_count": 123,
"keyword_sample_size": 123,
"keyword_sample_limit": 2,
"est_organic_traffic": 123,
"est_traffic_value_usd": 123,
"domain_rank": 123,
"referring_domains": 123,
"backlinks": 123,
"keyword_gap_count": 123,
"keyword_gap_sample_size": 123,
"captured_at": "2023-11-07T05:31:56Z",
"previous_captured_at": "2023-11-07T05:31:56Z",
"previous_est_organic_traffic": 123,
"previous_organic_keyword_count": 123,
"previous_keyword_gap_count": 123,
"previous_counts_withheld": false,
"previous_organic_keyword_count_withheld": false,
"previous_keyword_gap_count_withheld": false
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Comma-separated competitor domains (max 100).
1For domains with no stored AUTHORITY — neither domain_rank nor backlinks — live-fetch Domain Rank + Backlinks (not Organic Keywords / Est. Traffic — no bulk equivalent exists for those) via ONE DataForSEO bulk_ranks call and ONE bulk_backlinks call covering every such domain in this request. This INCLUDES domains that already have a stored competitor_seo_metrics row: a keyword-only row (organic keywords measured, authority never fetched) still incurs vendor cost. Off by default so an ordinary by-domain read never spends a DataForSEO call.
Response
Successful Response
Explore Brands' SEO metric columns (S6) — one CompetitorSeoMetricRow
per requested domain that has a measured row for this brand's tracked
competitor cohort.
A requested domain missing from items has no CompetitorSeoMetric
row for this brand: it isn't tracked, or acquisition hasn't run for it
yet. This endpoint never triggers acquisition and never backfills a row —
the caller renders the absence as an honest "not measured" state, never a
fabricated zero. Delta/previous-capture fields are left at their defaults
here; this response only carries the four column values Explore Brands
displays.
Show child attributes
Show child attributes
Was this page helpful?