List available datacenters
Lists the datacenters available for provisioning a new website on the given Agency Plan hosting order.
Lists the datacenters available for provisioning a new website on the given Agency Plan hosting order.
Each datacenter includes a pinger_url you can ping from the client to measure round-trip
latency; comparing the results across datacenters lets you pick the nearest one (lowest
ping) before choosing its code as the datacenter_code when creating a website setup.
API Token authentication
Agency Plan order ID
123456Success response
Datacenter title
Europe (Netherlands)Datacenter code
ukfastDatacenter country code
ukURL you can ping to measure round-trip latency to this datacenter. Compare the measured latency across datacenters to identify the nearest one (lowest ping) for your website. Null when no online server is currently available to measure against.
https://my-website.com/ping.phpUnauthenticated response
Error response
GET /api/agency-hosting/v1/orders/{order_id}/datacenters HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"title": "Europe (Netherlands)",
"code": "ukfast",
"country": "uk",
"coordinates": {
"latitude": 51.5074,
"longitude": 0.1278
},
"pinger_url": "https://my-website.com/ping.php"
}
]Last updated
Was this helpful?