API Reference
GET
locations/{provider}Get Locations
Get Locations is a GET request to https://api.sharkcluster.com/locations/{provider} in the Infrastructure section of the SharkCluster API. Retrieves all available data center regions for a specific provider. It takes 1 parameter, 1 required (provider).
Request URL
GET
https://api.sharkcluster.com/locations/{provider}How do you call Get Locations?
- 1Send a GET request to https://api.sharkcluster.com/locations/{provider}, replacing {provider} in the path with your own value.
Request parameters
| Parameter | Type | Description |
|---|---|---|
providerRequired | query | Provider name: digitalocean, contabo, or sharkcluster for OVHcloud. vultr also returns locations, but Vultr is not yet generally available. |
What does Get Locations return?
A successful call returns a JSON object with the fields result, message and data. Check that result is true in the body: like many SharkCluster endpoints, a failure can come back with HTTP 200 and result: false. A failed call explains the problem in the body, for example "No locations found for provider: xyz".
Request sample
const axios = require('axios');
axios.get('https://api.sharkcluster.com/locations/digitalocean')
.then(res => console.log("Available Regions:", res.data.data))
.catch(err => console.error(err));
Response
{
"result": true,
"message": "Data Found",
"data": [
{
"id": "newyork1",
"city": "New York 1",
"country": "United States",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2025-02-20T10:46:02.451Z",
"updatedAt": "2026-03-13T09:04:41.649Z",
"region": "Unknown",
"code": "newyork1",
"label": "New York 1, Unknown",
"_id": "newyork1",
"country_code": "us",
"name": "New York 1",
"flag": "https://flagcdn.com/24x18/us.png"
},
{
"id": "sanfrancisco1",
"city": "San Francisco 1",
"country": "United States",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2025-02-20T10:46:02.673Z",
"updatedAt": "2026-03-13T09:04:41.654Z",
"region": "Unknown",
"code": "sanfrancisco1",
"label": "San Francisco 1, Unknown",
"_id": "sanfrancisco1",
"country_code": "us",
"name": "San Francisco 1",
"flag": "https://flagcdn.com/24x18/us.png"
},
{
"id": "newyork2",
"city": "New York 2",
"country": "United States",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2025-02-20T10:46:02.954Z",
"updatedAt": "2026-03-13T09:04:41.661Z",
"region": "Unknown",
"code": "newyork2",
"label": "New York 2, Unknown",
"_id": "newyork2",
"country_code": "us",
"name": "New York 2",
"flag": "https://flagcdn.com/24x18/us.png"
},
{
"id": "amsterdam2",
"city": "Amsterdam 2",
"country": "Netherlands",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2025-02-20T10:46:03.258Z",
"updatedAt": "2026-03-13T09:04:41.667Z",
"region": "Unknown",
"code": "amsterdam2",
"label": "Amsterdam 2, Unknown",
"_id": "amsterdam2",
"country_code": "nl",
"name": "Amsterdam 2",
"flag": "https://flagcdn.com/24x18/nl.png"
},
{
"id": "singapore1",
"city": "Singapore 1",
"country": "Singapore",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2025-02-20T10:46:03.570Z",
"updatedAt": "2026-03-13T09:04:41.672Z",
"region": "Unknown",
"code": "singapore1",
"label": "Singapore 1, Unknown",
"_id": "singapore1",
"country_code": "sg",
"name": "Singapore 1",
"flag": "https://flagcdn.com/24x18/sg.png"
},
{
"id": "london1",
"city": "London 1",
"country": "United Kingdom",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2025-02-20T10:46:03.786Z",
"updatedAt": "2026-03-13T09:04:41.680Z",
"region": "Unknown",
"code": "london1",
"label": "London 1, Unknown",
"_id": "london1",
"country_code": "gb",
"name": "London 1",
"flag": "https://flagcdn.com/24x18/gb.png"
},
{
"id": "newyork3",
"city": "New York 3",
"country": "United States",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2025-02-20T10:46:04.000Z",
"updatedAt": "2026-03-13T09:04:41.685Z",
"region": "Unknown",
"code": "newyork3",
"label": "New York 3, Unknown",
"_id": "newyork3",
"country_code": "us",
"name": "New York 3",
"flag": "https://flagcdn.com/24x18/us.png"
},
{
"id": "amsterdam3",
"city": "Amsterdam 3",
"country": "Netherlands",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2025-02-20T10:46:04.286Z",
"updatedAt": "2026-03-13T09:04:41.691Z",
"region": "Unknown",
"code": "amsterdam3",
"label": "Amsterdam 3, Unknown",
"_id": "amsterdam3",
"country_code": "nl",
"name": "Amsterdam 3",
"flag": "https://flagcdn.com/24x18/nl.png"
},
{
"id": "frankfurt1",
"city": "Frankfurt 1",
"country": "Germany",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2025-02-20T10:46:04.504Z",
"updatedAt": "2026-03-13T09:04:41.699Z",
"region": "Unknown",
"code": "frankfurt1",
"label": "Frankfurt 1, Unknown",
"_id": "frankfurt1",
"country_code": "de",
"name": "Frankfurt 1",
"flag": "https://flagcdn.com/24x18/de.png"
},
{
"id": "toronto1",
"city": "Toronto 1",
"country": "Canada",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2025-02-20T10:46:04.716Z",
"updatedAt": "2026-03-13T09:04:41.705Z",
"region": "Unknown",
"code": "toronto1",
"label": "Toronto 1, Unknown",
"_id": "toronto1",
"country_code": "ca",
"name": "Toronto 1",
"flag": "https://flagcdn.com/24x18/ca.png"
},
{
"id": "sanfrancisco2",
"city": "San Francisco 2",
"country": "United States",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2025-02-20T10:46:04.997Z",
"updatedAt": "2026-03-13T09:04:41.711Z",
"region": "Unknown",
"code": "sanfrancisco2",
"label": "San Francisco 2, Unknown",
"_id": "sanfrancisco2",
"country_code": "us",
"name": "San Francisco 2",
"flag": "https://flagcdn.com/24x18/us.png"
},
{
"id": "bangalore1",
"city": "Bangalore 1",
"country": "India",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2026-03-11T06:10:36.090Z",
"updatedAt": "2026-03-13T09:04:41.718Z",
"region": "Unknown",
"code": "bangalore1",
"label": "Bangalore 1, Unknown",
"_id": "bangalore1",
"country_code": "in",
"name": "Bangalore 1",
"flag": "https://flagcdn.com/24x18/in.png"
},
{
"id": "sanfrancisco3",
"city": "San Francisco 3",
"country": "United States",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2025-02-20T10:46:05.616Z",
"updatedAt": "2026-03-13T09:04:41.724Z",
"region": "Unknown",
"code": "sanfrancisco3",
"label": "San Francisco 3, Unknown",
"_id": "sanfrancisco3",
"country_code": "us",
"name": "San Francisco 3",
"flag": "https://flagcdn.com/24x18/us.png"
},
{
"id": "sydney1",
"city": "Sydney 1",
"country": "Australia",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2025-02-20T10:46:05.923Z",
"updatedAt": "2026-03-13T09:04:41.729Z",
"region": "Unknown",
"code": "sydney1",
"label": "Sydney 1, Unknown",
"_id": "sydney1",
"country_code": "au",
"name": "Sydney 1",
"flag": "https://flagcdn.com/24x18/au.png"
},
{
"id": "atl1",
"city": "Atlanta 1",
"country": "United States",
"continent": "Unknown",
"provider": "DigitalOcean only",
"status": true,
"createdAt": "2026-03-13T09:04:41.733Z",
"updatedAt": "2026-03-13T09:04:41.733Z",
"region": "Unknown",
"code": "atl1",
"label": "Atlanta 1, Unknown",
"_id": "atl1",
"country_code": "us",
"name": "Atlanta 1",
"flag": "https://flagcdn.com/24x18/us.png"
}
]
}Related Infrastructure endpoints
Stuck on an integration?
Raise a ticket from the panel with the endpoint and the response you got back — it reaches an engineer with your server already attached.