List Tracking Domains
curl --request GET \
--url https://api.politicalcomms.com/v1/tracking-domains \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.politicalcomms.com/v1/tracking-domains"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.politicalcomms.com/v1/tracking-domains', 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.politicalcomms.com/v1/tracking-domains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.politicalcomms.com/v1/tracking-domains"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.politicalcomms.com/v1/tracking-domains")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.politicalcomms.com/v1/tracking-domains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "6e2c9a4f-8b51-4d73-a9e6-1f4b8c5d2a90",
"domain": "link.smithpac.com",
"source": "own",
"status": "active",
"verified_at": "2024-02-10T14:05:00.000Z",
"created_at": "2024-02-10T14:00:00.000Z",
"notes": "Main link host"
},
{
"id": "2a7f4d8c-3e61-4b29-9c85-6d1a4f7e3b16",
"domain": "links.national-hq.com",
"source": "inherited"
}
]
}Tracking Domains
List Tracking Domains
List active tracking domains available to your organizations. Domains owned by one of your accessible organizations return source “own” with full metadata; domains shared down from a parent organization return source “inherited” with only id, domain, and source. Optional filter by organization.
GET
/
tracking-domains
List Tracking Domains
curl --request GET \
--url https://api.politicalcomms.com/v1/tracking-domains \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.politicalcomms.com/v1/tracking-domains"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.politicalcomms.com/v1/tracking-domains', 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.politicalcomms.com/v1/tracking-domains",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.politicalcomms.com/v1/tracking-domains"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.politicalcomms.com/v1/tracking-domains")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.politicalcomms.com/v1/tracking-domains")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"id": "6e2c9a4f-8b51-4d73-a9e6-1f4b8c5d2a90",
"domain": "link.smithpac.com",
"source": "own",
"status": "active",
"verified_at": "2024-02-10T14:05:00.000Z",
"created_at": "2024-02-10T14:00:00.000Z",
"notes": "Main link host"
},
{
"id": "2a7f4d8c-3e61-4b29-9c85-6d1a4f7e3b16",
"domain": "links.national-hq.com",
"source": "inherited"
}
]
}Authorizations
Authenticate every request by passing your API key in the X-API-Key header. Keys are scoped to your organization hierarchy.
Query Parameters
Filter to a specific descendant organization
Response
Successful response
