Ping API
pro/v1/network/pingPerforms real ICMP ping (RFC 792) from up to 18 geographically distributed cloud regions via the Globalping network. Probes run from AWS, GCP, or Azure datacenters and return min/avg/max/median RTT, p50/p95/p99 percentiles, RFC 3550 interarrival jitter, packet loss percentage, and per-packet timing data. Supports filtering by cloud provider, region, geography, or probe zone.
Discover probe locations
Both discovery routes use the same API-key authentication and require Pro or higher. They describe available zone mappings; selecting a cloud region does not guarantee that an individual probe runs inside that cloud provider.
- GET /v1/network/ping/locations
- No parameters. Returns data.total_zones, total_cloud_regions, geographies, zones_by_geography, and providers.
- GET /v1/network/ping/regions
- Optional provider: aws, gcp, or azure. Returns data.total_regions, providers, and regions grouped by provider. Each region includes code, name, city, country, country_code, geography, and probe_zone.
What It Does
Creates ICMP Echo Request measurements via the Globalping network, targeting probes in specific cloud provider regions (AWS, GCP, Azure). Returns actual ICMP round-trip times with comprehensive statistics: min/avg/max/median RTT, p50/p95/p99 percentiles, RFC 3550 §A.8 interarrival jitter (plus a separate geographic_latency_stddev_ms for cross-zone spread), aggregate packet loss percentage, resolved IP address, and probe network ASN. Supports filtering by cloud provider regions, probe zone IDs, or geographic region.
Why It's Useful
Get authentic ICMP latency data from real cloud provider regions — not HTTP overhead, but true network-level round-trip times per RFC 792 (ICMP) and RFC 4443 (ICMPv6). Essential for CDN optimization, multi-cloud performance comparison, SLA verification, geographic load balancing decisions, and ensuring consistent user experience across regions. Jitter and median metrics provide a more accurate picture than averages alone.
Use Cases
Global Performance Baseline
Measure service latency from all major geographic regions before a global launch. Establish baseline p50/p95 latency metrics per region and set alerting thresholds.
Identify regions with poor performance before users complain and set data-driven SLA targets.
Multi-Cloud Provider Comparison
Compare ICMP latency from AWS, GCP, and Azure regions to your service simultaneously. Evaluate network-level performance differences between cloud providers for the same geographic region.
Data-driven multi-cloud architecture and provider selection decisions backed by real latency data.
CDN & Anycast Verification
Compare latency with and without CDN from various cloud provider regions. Verify anycast is routing users to the nearest edge. Detect CDN misconfigurations where certain regions hit distant origins.
Validate CDN effectiveness, identify geographic routing gaps, and optimize edge configuration.
SLA Monitoring & Incident Response
During an incident, quickly measure reachability and latency from 18 global vantage points to determine if an outage is regional or global. Compare against baseline metrics.
Rapidly scope the geographic impact of incidents and verify SLA compliance with evidence.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
host | query | string | Required | Target hostname or IP address to pingExample: example.com |
provider | query | string | Optional | Cloud provider for region filtering: "aws", "gcp", or "azure". Defaults to "gcp".Example: gcp |
region | query | string | Optional | Cloud provider region code. When combined with provider, pings from the nearest probe zone for that region.Example: us-east-1 |
zones | query | string | Optional | Comma-separated probe zone IDs (e.g., us-east,eu-west,ap-northeast). Use /ping/locations to see available zones.Example: us-east,eu-west,ap-northeast |
geography | query | string | Optional | Filter by geography: North America, South America, Europe, Asia Pacific, Oceania, Middle East, AfricaExample: Europe |
Response Fields
Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.
| Field | Type | Description |
|---|---|---|
host | string | The target host that was pinged |
measurement_type | string | Measurement type: "icmp" |
results | array | Per-zone ping results with ICMP stats, resolved IP, and probe network info |
results[].icmp_stats | object | ICMP statistics: min, max, avg RTT (ms), packets_sent, packets_received, packet_loss (count), packet_loss_pct |
results[].timings | array | Per-packet timing data with TTL and RTT in milliseconds |
results[].p50_ms | number | p50 RTT for this zone's per-packet timings |
results[].p95_ms | number | p95 RTT for this zone's per-packet timings — useful for SLA tail-latency reporting |
results[].p99_ms | number | p99 RTT for this zone's per-packet timings |
results[].interarrival_jitter_ms | number | RFC 3550 §A.8 interarrival jitter for this zone's per-packet timings |
results[].resolved_address | string | Resolved IP address of the target from this probe's perspective |
results[].probe_network | string | Network name of the probe (e.g., "Amazon.com", "Google") |
results[].probe_asn | number | ASN of the probe network |
zones_tested | number | Number of probe zones tested |
successful | number | Number of zones with successful pings |
failed | number | Number of zones where ping failed |
avg_latency_ms | number | Mean ICMP latency across all zones |
median_latency_ms | number | Median (p50) ICMP latency across all zones — more robust than average |
p50_ms | number | p50 RTT across every per-packet timing in the run |
p95_ms | number | p95 RTT across every per-packet timing — primary SLA tail-latency metric |
p99_ms | number | p99 RTT across every per-packet timing in the run |
jitter_ms | number | RFC 3550 §A.8 interarrival jitter across every per-packet RTT — the standard "jitter" metric |
geographic_latency_stddev_ms | number | Standard deviation of per-zone average RTTs — geographic spread (was formerly returned in jitter_ms) |
packet_loss_pct | number | Aggregate packet loss percentage across all zones |
min_latency | object | Zone with lowest latency (zone, city, latency_ms) |
max_latency | object | Zone with highest latency (zone, city, latency_ms) |
available_zones | object | Available probe zones grouped by geography |
available_providers | object | Count of regions per cloud provider (aws, gcp, azure) |
billing | object | zones_billed and a note explaining one request unit per selected zone. |
Code Examples
Replace YOUR_API_KEY with your API key. This endpoint requires the pro plan or higher; see plans and usage limits.
curl --request GET 'https://api.edgedns.dev/v1/network/ping?host=example.com' \
--header "Authorization: Bearer YOUR_API_KEY"const response = await fetch(
"https://api.edgedns.dev/v1/network/ping?host=example.com",
{
"method": "GET",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
);
if (!response.ok) {
throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);import requests
response = requests.request(
'GET',
"https://api.edgedns.dev/v1/network/ping?host=example.com",
headers={'Authorization': 'Bearer YOUR_API_KEY'},
timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)Read the full Ping guide
Learn the concepts, choose a practical workflow, and interpret the observations from Ping before acting on them. Run supported checks via MCP or through REST.
Read the guide →Related Endpoints
External References
Learn more about the standards and protocols behind this endpoint.