Retrieve carrier transit times
curl --request GET \
--url https://panel.sendcloud.sc/api/v3/analytics/transit-times/carriers \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://panel.sendcloud.sc/api/v3/analytics/transit-times/carriers"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://panel.sendcloud.sc/api/v3/analytics/transit-times/carriers', 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://panel.sendcloud.sc/api/v3/analytics/transit-times/carriers",
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: Basic <encoded-value>"
],
]);
$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://panel.sendcloud.sc/api/v3/analytics/transit-times/carriers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://panel.sendcloud.sc/api/v3/analytics/transit-times/carriers")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://panel.sendcloud.sc/api/v3/analytics/transit-times/carriers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"transit_times": [
{
"carrier_code": "postnl",
"from_country_code": "NL",
"to_country_code": "AT",
"start_date": "2025-03-01T00:00:00Z",
"end_date": "2025-03-31T23:59:59Z",
"total_parcels": 1284,
"transit_time_hours": 48.5,
"transit_time_days": 2
},
{
"carrier_code": "postnl",
"from_country_code": "NL",
"to_country_code": "DE",
"start_date": "2025-03-01T00:00:00Z",
"end_date": "2025-03-31T23:59:59Z",
"total_parcels": 932,
"transit_time_hours": 36.2,
"transit_time_days": 2
}
]
}Analytics
Retrieve carrier transit times
Returns aggregated transit-time statistics per carrier, optionally filtered by origin and destination country and a date window.
GET
/
analytics
/
transit-times
/
carriers
Retrieve carrier transit times
curl --request GET \
--url https://panel.sendcloud.sc/api/v3/analytics/transit-times/carriers \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://panel.sendcloud.sc/api/v3/analytics/transit-times/carriers"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://panel.sendcloud.sc/api/v3/analytics/transit-times/carriers', 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://panel.sendcloud.sc/api/v3/analytics/transit-times/carriers",
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: Basic <encoded-value>"
],
]);
$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://panel.sendcloud.sc/api/v3/analytics/transit-times/carriers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://panel.sendcloud.sc/api/v3/analytics/transit-times/carriers")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://panel.sendcloud.sc/api/v3/analytics/transit-times/carriers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"transit_times": [
{
"carrier_code": "postnl",
"from_country_code": "NL",
"to_country_code": "AT",
"start_date": "2025-03-01T00:00:00Z",
"end_date": "2025-03-31T23:59:59Z",
"total_parcels": 1284,
"transit_time_hours": 48.5,
"transit_time_days": 2
},
{
"carrier_code": "postnl",
"from_country_code": "NL",
"to_country_code": "DE",
"start_date": "2025-03-01T00:00:00Z",
"end_date": "2025-03-31T23:59:59Z",
"total_parcels": 932,
"transit_time_hours": 36.2,
"transit_time_days": 2
}
]
}OAuth2 scopes required:
read:analytics. See Scopes for OAuth apps.(carrier_code, from_country_code, to_country_code) row; rows with no transit-time data are omitted. When start_date and end_date are omitted, the response covers the last 90 days (UTC). start_date must be on or before end_date.Authorizations
HTTPBasicAuthOAuth2ClientCreds