API Reference
GET
get_typesGet 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
GET
https://api.sharkcluster.com/get_typesHow do you call Get Server Types?
- 1Send a GET request to https://api.sharkcluster.com/get_types.
- 2Pass the required query parameters in the URL: hosting_type and location.
- 3Add the optional parameter only if you need it: ram.
Request parameters
| Parameter | Type | Description |
|---|---|---|
hosting_typeRequired | query | Provider name. |
locationRequired | query | Region slug or ID. |
ram | query | Optional 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));
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.