tracking
Tracking summary
visibility is the share of active keywords ranking in the top ten.
GET
/
v1
/
projects
/
{projectId}
/
tracking
/
overview
Tracking summary
curl --request GET \
--url https://api.surnex.io/v1/projects/{projectId}/tracking/overviewimport requests
url = "https://api.surnex.io/v1/projects/{projectId}/tracking/overview"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.surnex.io/v1/projects/{projectId}/tracking/overview', 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.surnex.io/v1/projects/{projectId}/tracking/overview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.surnex.io/v1/projects/{projectId}/tracking/overview"
req, _ := http.NewRequest("GET", url, nil)
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.surnex.io/v1/projects/{projectId}/tracking/overview")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.surnex.io/v1/projects/{projectId}/tracking/overview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"total_keywords": 123,
"active_keywords": 123,
"ranked_keywords": 123,
"top_3": 123,
"top_10": 123,
"top_100": 123,
"distribution": {
"top_3": 123,
"top_10": 123,
"top_20": 123,
"top_50": 123,
"top_100": 123,
"not_ranking": 123
},
"improved": 123,
"declined": 123,
"unchanged": 123,
"entered_top100": 123,
"lost_top100": 123,
"average_position": 123,
"visibility": 123,
"last_checked_at": "2023-11-07T05:31:56Z"
}
}⌘I
Tracking summary
curl --request GET \
--url https://api.surnex.io/v1/projects/{projectId}/tracking/overviewimport requests
url = "https://api.surnex.io/v1/projects/{projectId}/tracking/overview"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.surnex.io/v1/projects/{projectId}/tracking/overview', 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.surnex.io/v1/projects/{projectId}/tracking/overview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.surnex.io/v1/projects/{projectId}/tracking/overview"
req, _ := http.NewRequest("GET", url, nil)
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.surnex.io/v1/projects/{projectId}/tracking/overview")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.surnex.io/v1/projects/{projectId}/tracking/overview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"total_keywords": 123,
"active_keywords": 123,
"ranked_keywords": 123,
"top_3": 123,
"top_10": 123,
"top_100": 123,
"distribution": {
"top_3": 123,
"top_10": 123,
"top_20": 123,
"top_50": 123,
"top_100": 123,
"not_ranking": 123
},
"improved": 123,
"declined": 123,
"unchanged": 123,
"entered_top100": 123,
"lost_top100": 123,
"average_position": 123,
"visibility": 123,
"last_checked_at": "2023-11-07T05:31:56Z"
}
}