{
"colos": [
"den",
"sin"
],
"options": {
"max_ttl": 15,
"packet_type": "icmp"
},
"targets": [
"203.0.113.1",
"cloudflare.com"
]
}
curl --location --request POST 'https://api.cloudflare.com/client/v4/accounts//diagnostics/traceroute' \
--header 'Content-Type: application/json' \
--data-raw '{
"colos": [
"den",
"sin"
],
"options": {
"max_ttl": 15,
"packet_type": "icmp"
},
"targets": [
"203.0.113.1",
"cloudflare.com"
]
}'
{
"errors": [],
"messages": [],
"result": [
{
"colos": [
{
"colo": {
"city": "Denver, CO, US",
"name": "den01"
},
"error": "",
"hops": [
{
"nodes": [
{
"asn": "AS13335",
"ip": "1.1.1.1",
"max_latency_ms": 0.034,
"mean_latency_ms": 0.021,
"min_latency_ms": 0.014,
"name": "one.one.one.one",
"packet_count": 3,
"std_dev_latency_ms": 0.011269427669584647
}
],
"packets_lost": 0,
"packets_sent": 0,
"packets_ttl": 0
}
],
"target_summary": {
"asn": "",
"ip": "1.1.1.1",
"max_latency_ms": 0.034,
"mean_latency_ms": 0.021,
"min_latency_ms": 0.014,
"name": "1.1.1.1",
"packet_count": 3,
"std_dev_latency_ms": 0.011269427669584647
},
"traceroute_time_ms": 0
}
],
"target": "1.1.1.1"
}
],
"success": true,
"result_info": {
"count": 1,
"page": 1,
"per_page": 20,
"total_count": 2000
}
}