Agency Hosting: Datacenters
List available datacenters
Changed onLists 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.
get/api/agency-hosting/v1/orders/{order_id}/datacenters
Request
- Base URL: https://developers.hostinger.com
- URL: https://developers.hostinger.com/api/agency-hosting/v1/orders/{order_id}/datacenters
- Auth: HTTP bearer
Path parameters
order_idinteger required
Example:123456
Agency Plan order ID
Response
Success response
Example response
[
{
"title": "Europe (Netherlands)",
"code": "ukfast",
"country": "uk",
"coordinates": {
"latitude": 51.5074,
"longitude": 0.1278
},
"pinger_url": "https://my-website.com/ping.php"
}
]Changes
- info
api operation id
agency-hosting_listAvailableDatacentersForAnAgencyPlanOrderV1removed and replaced withagency-hosting_listAvailableDatacentersV1
- info
- info
endpoint added
- info