List available datacenters
Retrieve a list of datacenters available for setting up hosting plans based on available datacenter capacity and hosting plan of your order.
Retrieve a list of datacenters available for setting up hosting plans based on available datacenter capacity and hosting plan of your order. The first item in the list is the best match for your specific order requirements.
Authorizations
AuthorizationstringRequired
API Token authentication
Query parameters
order_idintegerRequiredExample:
Order ID
123Responses
200
Success response
application/json
titlestringOptionalExample:
Data center title
Europe (UK)codestringOptionalExample:
Data center code
uk-fast401
Unauthenticated response
application/json
500
Error response
application/json
get/api/hosting/v1/datacenters
GET /api/hosting/v1/datacenters?order_id=123 HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"title": "Europe (UK)",
"code": "uk-fast",
"coordinates": {
"latitude": 51.5074,
"longitude": 0.1278
}
}
]Last updated
Was this helpful?