VPS.org API

Àwọn Àkọsílẹ̀ API REST

API Àwọn Ipò

Retrieve information about available datacenter locations for VPS deployment.

Àwọn ìparí 1 endpoint
Ipa-ọna Ipilẹ /api/v1/locations
GBÀ /api/v1/locations/

Ṣe àkójọ gbogbo àwọn ibi tí a wà

Gba àtòjọ àwọn ààyè-iṣẹ́ datacenter tó lè wa níbí tí o ti lè fi àwọn sáà VPS pamọ́.

Àwọn Ìbéèrè Pàtàkì

Àwọn Àtòjọ-ẹ̀yàn Irú Ti a nilo Àwọn Àkọlé
region string _Kò Filter by region: north-america, europe, asia, oceania
available boolean _Kò Show only locations currently accepting new servers

Àpẹẹrẹ Ìbéèrè

cURL
Python
JavaScript
PHP
curl -X GET "https://admin.vps.org/api/v1/locations/" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json"
import requests

url = "https://admin.vps.org/api/v1/locations/"
headers = {
    "Authorization": "Bearer YOUR_API_TOKEN",
    "Content-Type": "application/json"
}

response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch('https://admin.vps.org/api/v1/locations/', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json'
  }
});

const locations = await response.json();
console.log(locations);
$ch = curl_init('https://admin.vps.org/api/v1/locations/');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'Authorization: Bearer YOUR_API_TOKEN',
    'Content-Type: application/json'
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

$response = curl_exec($ch);
$locations = json_decode($response, true);
curl_close($ch);

Àpẹẹrẹ Ìdáhùn

{
  "count": 8,
  "results": [
    {
      "id": 1,
      "name": "New York",
      "slug": "ny-usa",
      "country": "United States",
      "country_code": "US",
      "city": "New York",
      "region": "north-america",
      "continent": "North America",
      "available": true,
      "latitude": 40.7128,
      "longitude": -74.0060,
      "network_provider": "Digital Realty",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "Low Latency to US East Coast"
      ],
      "average_latency_ms": {
        "us-east": 2,
        "us-west": 75,
        "europe": 85,
        "asia": 220
      }
    },
    {
      "id": 2,
      "name": "San Francisco",
      "slug": "sf-usa",
      "country": "United States",
      "country_code": "US",
      "city": "San Francisco",
      "region": "north-america",
      "continent": "North America",
      "available": true,
      "latitude": 37.7749,
      "longitude": -122.4194,
      "network_provider": "Equinix",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "Low Latency to US West Coast & Asia"
      ],
      "average_latency_ms": {
        "us-east": 75,
        "us-west": 2,
        "europe": 150,
        "asia": 120
      }
    },
    {
      "id": 3,
      "name": "London",
      "slug": "lon-uk",
      "country": "United Kingdom",
      "country_code": "GB",
      "city": "London",
      "region": "europe",
      "continent": "Europe",
      "available": true,
      "latitude": 51.5074,
      "longitude": -0.1278,
      "network_provider": "Telehouse",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "GDPR Compliant",
        "Low Latency to Europe"
      ],
      "average_latency_ms": {
        "us-east": 85,
        "us-west": 150,
        "europe": 5,
        "asia": 180
      }
    },
    {
      "id": 4,
      "name": "Frankfurt",
      "slug": "fra-de",
      "country": "Germany",
      "country_code": "DE",
      "city": "Frankfurt",
      "region": "europe",
      "continent": "Europe",
      "available": true,
      "latitude": 50.1109,
      "longitude": 8.6821,
      "network_provider": "Interxion",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "GDPR Compliant",
        "Central European Location"
      ],
      "average_latency_ms": {
        "us-east": 95,
        "us-west": 160,
        "europe": 3,
        "asia": 200
      }
    },
    {
      "id": 5,
      "name": "Singapore",
      "slug": "sgp-sg",
      "country": "Singapore",
      "country_code": "SG",
      "city": "Singapore",
      "region": "asia",
      "continent": "Asia",
      "available": true,
      "latitude": 1.3521,
      "longitude": 103.8198,
      "network_provider": "Equinix",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "Low Latency to Asia Pacific"
      ],
      "average_latency_ms": {
        "us-east": 250,
        "us-west": 180,
        "europe": 170,
        "asia": 5
      }
    },
    {
      "id": 6,
      "name": "Tokyo",
      "slug": "tok-jp",
      "country": "Japan",
      "country_code": "JP",
      "city": "Tokyo",
      "region": "asia",
      "continent": "Asia",
      "available": true,
      "latitude": 35.6762,
      "longitude": 139.6503,
      "network_provider": "Equinix",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "Low Latency to East Asia"
      ],
      "average_latency_ms": {
        "us-east": 180,
        "us-west": 120,
        "europe": 240,
        "asia": 8
      }
    },
    {
      "id": 7,
      "name": "Sydney",
      "slug": "syd-au",
      "country": "Australia",
      "country_code": "AU",
      "city": "Sydney",
      "region": "oceania",
      "continent": "Oceania",
      "available": true,
      "latitude": -33.8688,
      "longitude": 151.2093,
      "network_provider": "NextDC",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "Low Latency to Australia & New Zealand"
      ],
      "average_latency_ms": {
        "us-east": 210,
        "us-west": 140,
        "europe": 280,
        "asia": 120
      }
    },
    {
      "id": 8,
      "name": "Toronto",
      "slug": "tor-ca",
      "country": "Canada",
      "country_code": "CA",
      "city": "Toronto",
      "region": "north-america",
      "continent": "North America",
      "available": true,
      "latitude": 43.6532,
      "longitude": -79.3832,
      "network_provider": "Cologix",
      "features": [
        "100% Uptime SLA",
        "DDoS Protection",
        "IPv6 Support",
        "Private Networking",
        "Data Sovereignty (Canada)"
      ],
      "average_latency_ms": {
        "us-east": 20,
        "us-west": 65,
        "europe": 90,
        "asia": 210
      }
    }
  ]
}

Àwọn Ààyè Ìdáhùn

Àwọn Ààyè-iṣẹ́ Irú Àwọn Àkọlé
id integer Unique location identifier
name string Human-readable location name
slug string URL-friendly location identifier
country string Country name
country_code string ISO 3166-1 alpha-2 country code
city string City name
region string Geographic region (north-america, europe, asia, oceania)
continent string Continent name
available boolean Whether location is accepting new servers
latitude decimal Geographic latitude
longitude decimal Geographic longitude
network_provider string Datacenter/network provider name
features array List of location-specific features
average_latency_ms object Average latency in milliseconds to major regions

Àwọn Kóòdù Ipò Ìdáhùn

200 Àkójọ àwọn ibi tí a ti rí gbà ní àṣeyọrí
401 Àìní àṣẹ - Àmì ìdánilójú tí kò tọ́ tàbí tí kò sí mọ́

Choosing the Right Location

Àwọn Àwọn Àkọlé

Target Audience Recommended Locations Why
US East Coast Users New York, Toronto Lowest latency (2-20ms), close proximity
US West Coast Users San Francisco Lowest latency (2ms), silicon valley connectivity
European Users London, Frankfurt GDPR compliant, low latency (3-5ms) across Europe
Asian Users Singapore, Tokyo Best connectivity to Asia Pacific region (5-8ms)
Australian/NZ Users Sydney Only Oceania location, lowest latency to Australia
Global Audience Multiple locations with load balancing Deploy in 2-3 regions for global coverage

Àwọn Ìṣàmúlò-ètò Ìṣàmúlò-ètò

Àwọn Ìṣàmúlò-ètò Rẹ́ẹ̀tì

Latency Kekeré jú àwọn ààyè-iṣẹ́ nlà lọ
  • Àwọn àwọn àwọn àwọn àwọn àwọn New York (2ms to US East), San Francisco (2ms to US West)
  • Europe: Frankfurt (3ms), London (5ms)
  • Asia: Singapore (5ms), Tokyo (8ms)
  • Oceania: Sydney (àwọn ìkúndùǹ kéré)
Ójútó àwọn àwọn ààyè-iṣẹ́
  1. Àwọn àwọn àwọn àwọn àwọn àwọn New York tabi San Francisco (àwọn òǹlò ìdáràn tí o jú jú)
  2. Àwọn àwọn àwọn àwọn àwọn London tabi Frankfurt (Ìgbègbè Europe)
  3. Àwọn àwọn àwọn àwọn àwọn àwọn àwọn Singapore tabi Tokyo (Àwọ́ Asia)
Àwọn Àlàyé: Fun awọn ohun elo iṣẹ-ṣiṣe-itumọ, fi sori ẹrọ si awọn aaye pupọ pẹlu Failover ti ara ẹni fun akoko iṣẹ-ṣiṣe to gaju ati ibajẹ geographic.

Àwọn Ìṣàmúlò-ètò Ààyè-iṣẹ́

Àwọn Àbùdá Àìṣe (Bẹ́ẹ̀dá Ààyè-iṣẹ́)

  • ✓ Ìjádé àwọn ààyè-iṣẹ́ ààyè-iṣẹ́
  • ✓ 100% uptime SLA
  • ✓ Ìgbà ìṣẹ̀dá (N+1 tàbí 2N)
  • ✓ Ìjánu-ìfún
  • ✓ Ìdáràn ìrànwọ́
  • ✓ Àwọn ìṣàmúlò-ètò ìṣàfihàn biometric
  • ✓ Ìdàabobo DDoS (si 10 Tbps mitigation)
  • ✓ Àwọn ìṣàfihàn IPv4 àti IPv6
  • ✓ Àwọn ààyè-iṣẹ́ àìdárá (VLAN)
  • ✓ 10 Gbps+ nẹ́wọ́lú àwọn àgbégbé
  • ✓ Àwọn ìṣẹ̀dá ìpelè mìíràn
  • ✓ BGP peering pẹlu àwọn nẹ́wọ́lù nlà

Àwọn Àṣẹ Rẹ́ẹ̀tì

Ààyè Àwọn Ìṣàfilọ́lẹ̀ Àwọn àwọn ààyè-iṣẹ́ Àwọn Àmì-ìwé
New York Digital Realty Tier III Major internet exchange point
San Francisco Equinix Tier III Silicon Valley connectivity hub
London Telehouse Tier III LINX (London Internet Exchange)
Frankfurt Interxion Tier III DE-CIX (world's largest IXP)
Singapore Equinix Tier III Asia Pacific connectivity hub
Tokyo Equinix Tier III JPIX and JPNAP peering
Sydney NextDC Tier III Oceania's largest datacenter
Toronto Cologix Tier III Canadian data sovereignty

Location Migration & Multi-Region Deployment

Gbé Àwọn Ààyè-iṣẹ́ Lẹ́ẹ̀kan

O lè gbé VPS rẹ̀ lọ sí ààyè-iṣẹ́ mìíràn láti lò àwọn àwòrán:

  1. Ṣẹ̀dà àwòrán VPS rẹ̀ tí wa ní
  2. Ṣẹ̀dà VPS tuntun nínú ààyè-iṣẹ́ ìjánu-ìwé
  3. Ṣàfikún àwòrán sí VPS tuntun
  4. Àwọn àtòjọ-ẹ̀yàn DNS láti fi àwọn ààyè-iṣẹ́ DNS pamọ́
  5. Pa VPS tí a tì fi àgbèwọlé pamọ́
Àwọn Àmì-ìwé: Ìjáde sí ààyè tuntun náà ń mú adirẹsí IP tuntun. Àwọn ààyè fún ààyè ìjáde DNS (bí a tí ǹṣe ní 24-48 ààyè fún ìjáde àìbálẹ̀ ìwọ̀n.

Àwọn Ààyè Àwọn Ìṣàfilọ́lẹ̀

For high availability and global reach, consider deploying in multiple locations:

Àwọn Ààyè Lò
  • Àwọn Àkọlé Àwọn Àkọlé
  • Ìṣàmúlò-ètò ìṣàfarawé àwọn ààyè-iṣẹ́ ìjánu-ìṣàmúlò-ètò
  • Àwọn ìṣàfarawé ìṣẹ̀dá
  • Àwọn àwọn ààyè-iṣẹ́
  • Àwọn ìṣàfarawé àwọn òǹlò ìtàn
Ìṣàmúlò-ètò
  • Ìṣàmúlò-ètò àwọn ààyè-iṣẹ́ tí a dá nínú DNS (GeoDNS)
  • CDN integration (Cloudflare, etc.)
  • Àwọn àwọn ààyè-iṣẹ́ àwọn ààyè-iṣẹ́
  • Àwọn ìṣàmúlò-ètò ìpamọ́ tí a pin
  • Àwọn Ìṣàmúlò-ètò
Need help with multi-region deployment? Contact our solutions team at solutions@vps.org for architecture consulting.