VPS.org API

REST API دستاویز

منصوبا API

موجود VPS منصوبن، قيمت، ۽ وسيلن جي وضاحتن بابت معلومات حاصل ڪريو.

آخري نقطا 2 endpoints
بنيادي رستو /api/v1/plans
حاصل ڪريو /api/v1/plans/

سڀني منصوبن جي فهرست ڏيو

قيمت ۽ وسيلو وضاحتن سان سڀني موجود VPS منصوبن جي قائمة حاصل ڪريو.

سوال جا پيرا ميٽر

پيراميڊ قسم گهربل بيان
location string نه Filter plans by datacenter location

مثال جي درخواست

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

url = "https://admin.vps.org/api/v1/plans/"
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/plans/', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Content-Type': 'application/json'
  }
});

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

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

مثال جواب

{
  "count": 4,
  "results": [
    {
      "id": 1,
      "name": "Starter VPS",
      "slug": "starter",
      "vcpus": 1,
      "memory": 2048,
      "storage": 40,
      "bandwidth": 1024,
      "price_monthly": 5.00,
      "price_hourly": 0.007,
      "available": true,
      "locations": ["us-west", "us-east", "eu-central"],
      "description": "Perfect for small projects and testing"
    },
    {
      "id": 2,
      "name": "Standard VPS",
      "slug": "standard",
      "vcpus": 2,
      "memory": 4096,
      "storage": 80,
      "bandwidth": 2048,
      "price_monthly": 10.00,
      "price_hourly": 0.015,
      "available": true,
      "locations": ["us-west", "us-east", "eu-central", "asia-pacific"],
      "description": "Ideal for web applications and small databases"
    },
    {
      "id": 3,
      "name": "Performance VPS",
      "slug": "performance",
      "vcpus": 4,
      "memory": 8192,
      "storage": 160,
      "bandwidth": 4096,
      "price_monthly": 20.00,
      "price_hourly": 0.030,
      "available": true,
      "locations": ["us-west", "us-east", "eu-central", "asia-pacific"],
      "description": "High-performance for demanding applications"
    },
    {
      "id": 4,
      "name": "Enterprise VPS",
      "slug": "enterprise",
      "vcpus": 8,
      "memory": 16384,
      "storage": 320,
      "bandwidth": 8192,
      "price_monthly": 40.00,
      "price_hourly": 0.060,
      "available": true,
      "locations": ["us-west", "us-east", "eu-central", "asia-pacific"],
      "description": "Enterprise-grade resources for mission-critical workloads"
    }
  ]
}

جوابي ميدان

ميدان قسم بيان
id integer منفرد پلان سڃاڻپ ڪندڙ
name string انسان جي پڙهڻ لائق منصوبي جو نالو
slug string URL-دوست منصوبي جي سڃاڻپ ڪندڙ
vcpus integer Number of virtual CPU cores
memory integer RAM in megabytes (MB)
storage integer Disk space in gigabytes (GB)
bandwidth integer Monthly data transfer in gigabytes (GB)
price_monthly decimal Monthly subscription price in USD
price_hourly decimal Hourly billing rate in USD
available boolean Whether plan is currently available for purchase
locations array List of datacenter locations where plan is available
description string Brief description of plan use case

جوابي اسٽيٽس ڪوڊس

200 منصوبن جي فهرست ڪاميابي سان حاصل ڪئي وئي
401 غير مجاز - غلط يا گم ٿيل تصديق ٽوڪن
حاصل ڪريو /api/v1/plans/{plan_id}/

منصوبي جا تفصيل حاصل ڪريو

خاص VPS منصوبي بابت تفصيلي معلومات حاصل ڪريو.

رستي جا پيرا ميٽر

پيراميڊ قسم گهربل بيان
plan_id integer ها منفرد پلان ID

مثال جي درخواست

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

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

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

const plan = await response.json();
console.log(plan);

مثال جواب

{
  "id": 2,
  "name": "Standard VPS",
  "slug": "standard",
  "vcpus": 2,
  "memory": 4096,
  "storage": 80,
  "bandwidth": 2048,
  "price_monthly": 10.00,
  "price_hourly": 0.015,
  "available": true,
  "locations": ["us-west", "us-east", "eu-central", "asia-pacific"],
  "description": "Ideal for web applications and small databases",
  "features": [
    "SSD Storage",
    "99.9% Uptime SLA",
    "Free Backups",
    "24/7 Support",
    "DDoS Protection",
    "IPv6 Support"
  ],
  "recommended_for": [
    "WordPress sites with moderate traffic",
    "Small to medium web applications",
    "Development and testing environments",
    "Personal projects and portfolios"
  ]
}

جوابي اسٽيٽس ڪوڊس

200 Successfully retrieved plan details
401 غير مجاز - غلط يا گم ٿيل تصديق ٽوڪن
404 نه مليو - منصوبو موجود ناهي

معلومات

بلنگ جا اختيار

VPS.org ٻه بلنگ اختيارن کي توهان جي ضرورتن کي ملائڻ لاءِ پيش ڪري ٿو:

مهيني جي بلنگ
  • بنا ڪنهن تعجب جي مقرر ڪيل ماهوار شرح ڪوبه عجيب
  • ڊگهي مدت جي پيداوار جي ڪم جي بار لاءِ بهترين
  • ڪلاڪ جي بلنگ جي مقابلي ۾ 30٪ تائين بچايو
  • هر مهيني جي شروعات ۾ بل ڪيو ويندو
  • ڪوبه لڪايل فيس يا اضافي فيس نه
ڪلاڪ وار بلنگ
  • صرف انھن ڪلاڪن جو پئسا ڏيو جيڪي توھان استعمال ڪريو
  • آزمائش ۽ مختصر مدت جي منصوبن لاءِ مثالي
  • ڪلاڪ جي واڌ ۾ بل ڪيو ويندو
  • وڌ ۾ وڌ چارج مهيني جي شرح تي
  • ڊيولپمينٽ ماحولن لاءِ مثالي

شامل خاصيتون

سڀ VPS منصوبا شامل آهن:

  • ✓ SSD اسٽوريج
  • ✓ 99. 9% اپٽائم SLA
  • ✓ مفت روزاني بچاءُ
  • ✓ 24/7 مدد
  • ✓ DDoS حفاظت
  • ✓ IPv6 مدد
  • ✓ مڪمل Root رسائي
  • ✓ تصويرون
  • ✓ پرائيويٽ نيٽ ورڪ
  • ✓ API رسائي

اضافي وسيلا

وڌيڪ وسيلا شامل ڪرڻ جي ضرورت آھي؟ اضافي سروسز موجود آھن:

صحيح منصوبي جو انتخاب

تڪڙو رستو

منصوبو بهترين لاءِ عام استعمال جا ڪيس
Starter VPS Personal projects, testing Static websites, learning environments, small blogs
Standard VPS Small businesses, web apps WordPress sites, small e-commerce, development servers
Performance VPS Medium traffic applications High-traffic WordPress, SaaS applications, databases
Enterprise VPS Large-scale applications Enterprise apps, large databases, video streaming
Need help choosing? اسان جي سيلز ٽيم سان رابطو ڪريو at sales@vps.org for personalized recommendations based on your specific requirements.