Get Project Stats (all)
curl --request GET \
--url https://api.politicalcomms.com/v1/projects/stats \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.politicalcomms.com/v1/projects/stats"
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/projects/stats', 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/projects/stats",
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/projects/stats"
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/projects/stats")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.politicalcomms.com/v1/projects/stats")
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": {
"projects": [
{
"id": "8a3f5c7e-2d91-4b64-ae08-6f1c9d3e7b52",
"name": "July GOTV Blast",
"status": "completed",
"protocol": "sms",
"type": "broadcast",
"channel": "10dlc",
"organization_id": "0d9f6a2e-1b34-4c8e-9f21-3e7a8b5c4d10",
"brand_id": "7c1de5f0-9a42-4b6d-8e33-2f5a9c7b1e64",
"campaign_id": "4b8fa3c1-6d25-4e9a-bf47-8c2e5d9a3f71",
"total_recipients": 11800,
"messages_sent": 11800,
"messages_delivered": 11342,
"messages_failed": 458,
"messages_opted_out": 87,
"replies_received": 312,
"survey_responses_count": 0,
"survey_completion_count": 0,
"actual_cost": "354.0000",
"total_url_clicks": 1893,
"unique_url_clicks": 1544,
"url_share_count": 12,
"created_at": "2025-07-01T14:00:00.000Z",
"completed_at": "2025-07-02T18:30:00.000Z",
"updated_at": "2025-07-02T18:30:00.000Z",
"organization_name": "Smith Campaign 2024",
"brand_name": "Smith PAC",
"campaign_name": "Fall 2025 GOTV"
}
],
"summary": {
"totalProjects": 1,
"organizationCount": 1,
"brandCount": 1,
"campaignCount": 1,
"statusBreakdown": {
"draft": 0,
"active": 0,
"completed": 1,
"archived": 0,
"paused": 0
},
"messageStats": {
"totalRecipients": 11800,
"totalSent": 11800,
"totalDelivered": 11342,
"totalFailed": 458,
"totalOptedOut": 87,
"totalReplies": 312,
"totalActualCost": 354,
"totalUrlClicks": 1893,
"totalUniqueUrlClicks": 1544,
"totalUrlShares": 12
},
"dateRange": {
"earliestProject": "2025-07-01T14:00:00.000Z",
"latestProject": "2025-07-01T14:00:00.000Z"
}
},
"pagination": {
"limit": 100,
"offset": 0,
"totalCount": 1,
"hasMore": false
},
"dateRange": {
"startDate": "2025-07-01",
"endDate": "2025-07-31"
}
}
}Projects
Get Project Stats (all)
Aggregate per-project statistics for a date range (max 31 days, no older than 90 days). Results are paginated via limit/offset.
GET
/
projects
/
stats
Get Project Stats (all)
curl --request GET \
--url https://api.politicalcomms.com/v1/projects/stats \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.politicalcomms.com/v1/projects/stats"
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/projects/stats', 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/projects/stats",
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/projects/stats"
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/projects/stats")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.politicalcomms.com/v1/projects/stats")
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": {
"projects": [
{
"id": "8a3f5c7e-2d91-4b64-ae08-6f1c9d3e7b52",
"name": "July GOTV Blast",
"status": "completed",
"protocol": "sms",
"type": "broadcast",
"channel": "10dlc",
"organization_id": "0d9f6a2e-1b34-4c8e-9f21-3e7a8b5c4d10",
"brand_id": "7c1de5f0-9a42-4b6d-8e33-2f5a9c7b1e64",
"campaign_id": "4b8fa3c1-6d25-4e9a-bf47-8c2e5d9a3f71",
"total_recipients": 11800,
"messages_sent": 11800,
"messages_delivered": 11342,
"messages_failed": 458,
"messages_opted_out": 87,
"replies_received": 312,
"survey_responses_count": 0,
"survey_completion_count": 0,
"actual_cost": "354.0000",
"total_url_clicks": 1893,
"unique_url_clicks": 1544,
"url_share_count": 12,
"created_at": "2025-07-01T14:00:00.000Z",
"completed_at": "2025-07-02T18:30:00.000Z",
"updated_at": "2025-07-02T18:30:00.000Z",
"organization_name": "Smith Campaign 2024",
"brand_name": "Smith PAC",
"campaign_name": "Fall 2025 GOTV"
}
],
"summary": {
"totalProjects": 1,
"organizationCount": 1,
"brandCount": 1,
"campaignCount": 1,
"statusBreakdown": {
"draft": 0,
"active": 0,
"completed": 1,
"archived": 0,
"paused": 0
},
"messageStats": {
"totalRecipients": 11800,
"totalSent": 11800,
"totalDelivered": 11342,
"totalFailed": 458,
"totalOptedOut": 87,
"totalReplies": 312,
"totalActualCost": 354,
"totalUrlClicks": 1893,
"totalUniqueUrlClicks": 1544,
"totalUrlShares": 12
},
"dateRange": {
"earliestProject": "2025-07-01T14:00:00.000Z",
"latestProject": "2025-07-01T14:00:00.000Z"
}
},
"pagination": {
"limit": 100,
"offset": 0,
"totalCount": 1,
"hasMore": false
},
"dateRange": {
"startDate": "2025-07-01",
"endDate": "2025-07-31"
}
}
}Authorizations
Authenticate every request by passing your API key in the X-API-Key header. Keys are scoped to your organization hierarchy.
Query Parameters
Start date in YYYY-MM-DD format
Example:
"2026-01-01"
End date in YYYY-MM-DD format
Example:
"2026-01-31"
Filter to a specific descendant organization
Filter to a specific brand
Filter to a specific campaign
Filter by status: draft, active, completed, archived, paused, all
Available options:
draft, active, completed, archived, paused, all Number of projects to return (1-1000).
Required range:
1 <= x <= 1000Number of projects to skip.
Required range:
x >= 0⌘I
