get_plansGet Pricing Plans
Get Pricing Plans is a GET request to https://api.sharkcluster.com/get_plans in the Infrastructure section of the SharkCluster API. Provides specific hardware specs (CPU, RAM, Disk) and monthly costs for server plans matching your selection. It takes 4 parameters, 3 required (hosting_type, location and server_size).
Request URL
https://api.sharkcluster.com/get_plansHow do you call Get Pricing Plans?
- 1Send a GET request to https://api.sharkcluster.com/get_plans.
- 2Pass the required query parameters in the URL: hosting_type, location and server_size.
- 3Add the optional parameter only if you need it: type.
Request parameters
| Parameter | Type | Description |
|---|---|---|
hosting_typeRequired | query | Provider name. |
locationRequired | query | Region slug or ID. |
server_sizeRequired | query | Memory size in GB (e.g., "1", "2", "4"). |
type | query | Category type (e.g., "all"). |
What does Get Pricing Plans 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 "Invalid hosting type or no data found".
Request sample
const axios = require('axios');
axios.get('https://api.sharkcluster.com/get_plans', {
params: {
location: 'blr1',
hosting_type: 'digitalocean',
server_size: '1' // 1GB RAM
}
})
.then(res => console.log("Available Plans:", res.data.data))
.catch(err => console.error(err));
Response
{
"result": true,
"message": "Data Found",
"data": [
{
"plan": [
{
"slug": "s-1vcpu-1gb",
"memory": 1024,
"vcpus": 1,
"disk": 25,
"transfer": 1,
"price_monthly": 6,
"price_hourly": 0.00893,
"regions": [
"ams3",
"blr1",
"fra1",
"lon1",
"nyc1",
"nyc2",
"nyc3",
"sfo2",
"sfo3",
"sgp1",
"syd1",
"tor1"
],
"available": true,
"description": "Basic",
"networking_throughput": 2000,
"disk_info": [
{
"type": "local",
"size": {
"amount": 25,
"unit": "gib"
}
}
],
"monthly_cost": 6.9
},
{
"slug": "s-1vcpu-1gb-intel",
"memory": 1024,
"vcpus": 1,
"disk": 25,
"transfer": 1,
"price_monthly": 7,
"price_hourly": 0.01042,
"regions": [
"ams3",
"fra1",
"lon1",
"nyc1",
"nyc2",
"nyc3",
"ric1",
"sfo3",
"sgp1",
"syd1",
"tor1"
],
"available": true,
"description": "Basic Intel",
"networking_throughput": 2000,
"disk_info": [
{
"type": "local",
"size": {
"amount": 25,
"unit": "gib"
}
}
],
"monthly_cost": 8.05
},
{
"slug": "s-1vcpu-1gb-35gb-intel",
"memory": 1024,
"vcpus": 1,
"disk": 35,
"transfer": 1,
"price_monthly": 8,
"price_hourly": 0.0119,
"regions": [
"ams3",
"fra1",
"lon1",
"nyc1",
"nyc2",
"nyc3",
"ric1",
"sfo2",
"sfo3",
"sgp1",
"syd1",
"tor1"
],
"available": true,
"description": "Basic Intel",
"networking_throughput": 2000,
"disk_info": [
{
"type": "local",
"size": {
"amount": 35,
"unit": "gib"
}
}
],
"monthly_cost": 9.2
}
]
}
]
}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.