Get Competitor Seo Position History
curl --request GET \
--url https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/position-history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/position-history"
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/position-history', 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/position-history",
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/position-history"
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/position-history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/position-history")
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{
"competitor_domain": "<string>",
"keyword_limit": 200,
"available": false,
"unavailable_reason": "insufficient_captures",
"captured_ats": [
"2023-11-07T05:31:56Z"
],
"keywords": [
{
"keyword": "<string>",
"search_volume": 123,
"points": [
{
"captured_at": "2023-11-07T05:31:56Z",
"position": 123,
"observed": false,
"sample_capped": false,
"keyword_sample_limit": 2
}
],
"first_position": 123,
"last_position": 123,
"net_delta": 123,
"has_gap": false
}
],
"total_keywords_seen": 0,
"any_capture_capped": false,
"estimate_notice": ""
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Dashboards
Get Competitor Seo Position History
Per-keyword position over time for one competitor, from stored captures.
Read-only over data the weekly acquisition already bought — this route never triggers a fetch, so opening it cannot cost a DataForSEO call.
GET
/
api
/
v1
/
brands
/
{brand_id}
/
dashboards
/
competitor-seo
/
position-history
Get Competitor Seo Position History
curl --request GET \
--url https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/position-history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/position-history"
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/position-history', 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/position-history",
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/position-history"
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/position-history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/brands/{brand_id}/dashboards/competitor-seo/position-history")
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{
"competitor_domain": "<string>",
"keyword_limit": 200,
"available": false,
"unavailable_reason": "insufficient_captures",
"captured_ats": [
"2023-11-07T05:31:56Z"
],
"keywords": [
{
"keyword": "<string>",
"search_volume": 123,
"points": [
{
"captured_at": "2023-11-07T05:31:56Z",
"position": 123,
"observed": false,
"sample_capped": false,
"keyword_sample_limit": 2
}
],
"first_position": 123,
"last_position": 123,
"net_delta": 123,
"has_gap": false
}
],
"total_keywords_seen": 0,
"any_capture_capped": false,
"estimate_notice": ""
}{
"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
competitor domain
Minimum string length:
1Response
Successful Response
Per-keyword position over time for ONE competitor domain.
Empty keywords with available=False is explained by
unavailable_reason — NOT interpreted as "nothing moved".
Required range:
x >= 1Available options:
insufficient_captures, no_usable_ranks Show child attributes
Show child attributes
Was this page helpful?