---
title: "List available datacenters"
method: GET
path: "/api/agency-hosting/v1/orders/{order_id}/datacenters"
tags: ["Agency Hosting: Datacenters"]
---

# List available datacenters

`GET /api/agency-hosting/v1/orders/{order_id}/datacenters`

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.

## Path parameters

- `order_id` integer, required

## Response `200`

Success response

- AgencyHostingV1DatacentersDatacenterResource[] — Array of [`AgencyHosting.V1.Datacenters.DatacenterResource`](#model/agencyhostingv1datacentersdatacenterresource)
  - `title` string, required — Datacenter title
  - `code` string, required — Datacenter code
  - `country` string, required — Datacenter country code
  - `coordinates` AgencyHostingV1DatacentersCoordinatesResource, required
    - `latitude` number, float — Latitude coordinate
    - `longitude` number, float — Longitude coordinate
  - `pinger_url` string, nullable, required — 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.

## Other responses

- `401` — Unauthenticated response
- `500` — Error response

## Changes

- **2026-08-13** `5a5a54ce5eb4` — 1 info
  - api operation id `agency-hosting_listAvailableDatacentersForAnAgencyPlanOrderV1` removed and replaced with `agency-hosting_listAvailableDatacentersV1`
- **2026-07-10** `4225b85b62f6` — 1 info
  - endpoint added
- **2026-06-09** `d05574986eb1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/hostinger/apis/hostinger-api/changes/api/agency-hosting/v1/orders/:order_id/datacenters/get.md)

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/53ccee45e5eb/schema)
