API Reference
GETget_types

Get Server Types

Get Server Types is a GET request to https://api.sharkcluster.com/get_types in the Infrastructure section of the SharkCluster API. Returns available hardware categories (e.g., High Frequency, Regular, Dedicated CPU) based on the chosen location. It takes 3 parameters, 2 required (hosting_type and location).

Request URL

GEThttps://api.sharkcluster.com/get_types

How do you call Get Server Types?

  1. 1Send a GET request to https://api.sharkcluster.com/get_types.
  2. 2Pass the required query parameters in the URL: hosting_type and location.
  3. 3Add the optional parameter only if you need it: ram.

Request parameters

ParameterTypeDescription
hosting_type
Required
queryProvider name.
location
Required
queryRegion slug or ID.
ramqueryOptional filter by memory size (MB).

What does Get Server Types return?

A failed call explains the problem in the body, for example "No plans found for the specified criteria.".

Request sample

const axios = require('axios');

axios.get('https://api.sharkcluster.com/get_types', {
  params: {
    location: 'blr1',
    hosting_type: 'vultr'
  }
})
.then(res => console.log("Available Server Categories:", res.data.data))
.catch(err => console.error(err));

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.

Contact us