For the complete documentation index, see llms.txt. This page is also available as Markdown.

List available datacenters

Lists the datacenters available for provisioning a new website on the given Agency Plan hosting order.

List available datacenters

get

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.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
order_idintegerRequired

Agency Plan order ID

Example: 123456
Responses
200

Success response

application/json
titlestringRequired

Datacenter title

Example: Europe (Netherlands)
codestringRequired

Datacenter code

Example: ukfast
countrystringRequired

Datacenter country code

Example: uk
pinger_urlstring · nullableRequired

URL 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.

Example: https://my-website.com/ping.php
get/api/agency-hosting/v1/orders/{order_id}/datacenters
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?