Skip to content

Guest API: Products

The endpoints on this page belong to the guest API role. They require no authentication and no CSRF token, so they can be called from any server-side integration, for example a price list on an external website.

All endpoints follow the pattern /api/guest/{module}/{action}, accept GET or POST, and take parameters as JSON or form data. See the API Reference for the general response and error format.

Guest endpoints only return products a visitor is allowed to see, but the endpoints do not all apply the same rules:

EndpointEnabled onlyExcludes hiddenExcludes addons
product/get_listYesYesYes
product/getYesNoYes
product/get_pairsYesYesYes
product/category_get_listYesYesYes
product/category_get_pairsNoNon/a

Hidden products can still be fetched by ID or slug with product/get. This lets you link directly to a product that is not shown in the public catalog.

The type field is one of the installed product types. Common values include: custom, license, domain, downloadable, hosting, vps, apikey. The exact set depends on which service modules are installed.

Every product (and every addon) includes a pricing object. Its type field says which of the other keys applies:

{
"type": "recurrent",
"free": { "price": 0, "setup": 0 },
"once": { "price": 0, "setup": 0 },
"recurrent": {
"1W": { "price": 0, "setup": 0, "enabled": false },
"1M": { "price": 0, "setup": 0, "enabled": false },
"3M": { "price": 0, "setup": 0, "enabled": false },
"6M": { "price": 0, "setup": 0, "enabled": false },
"1Y": { "price": 999, "setup": 0, "enabled": true },
"2Y": { "price": 0, "setup": 0, "enabled": false },
"3Y": { "price": 0, "setup": 0, "enabled": false }
}
}
typeUse
freeThe product is free. free.price is always 0.
onceOne-time payment: once.price plus once.setup.
recurrentBilled per period. Only periods with "enabled": true can be ordered.

price is the price per period (for 1Y, the price for one year), and setup is a one-time setup fee. All keys are always present, so check type and enabled instead of testing for missing keys.

price_starting_from on a product is the lowest enabled price (or the once price, or 0 for free products), and is useful for "from X/month" labels. It does not include setup fees. It is null for recurrent products with no enabled periods.

Products of type domain use a different pricing format: an object keyed by TLD, with the same price fields as servicedomain/tlds (without id and require_transfer_code). Their unit is always year.

{
".se": {
"tld": ".se",
"price_registration": "259.00",
"price_renew": "259.00",
"price_transfer": "259.00",
"active": 1,
"allow_register": 1,
"allow_transfer": 1,
"min_years": 1,
"periods": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
}
}

TLD prices are strings, while other product prices are numbers. price_starting_from is the lowest registration price of any TLD, so a free TLD makes it 0.

Returns a paginated list of enabled, visible products, ordered by priority.

ParameterTypeRequiredDescription
typestringNoOnly return products of this type.
searchstringNoOnly return products whose title contains this text.
pageintegerNoPage number, starting at 1. Default 1.
per_pageintegerNoItems per page. Default 100, maximum 500.

There is no category filter. To list products per category, use category_get_list, which includes the products of each category.

Values outside the valid ranges (page below 1, per_page above 500) return an error; non-integer values fall back to the defaults.

Terminal window
curl -s -X POST https://example.com/api/guest/product/get_list -d 'type=hosting'
{
"result": {
"pages": 1,
"page": 1,
"per_page": 100,
"total": 1,
"list": [
{
"id": 2,
"product_category_id": 1,
"type": "hosting",
"title": "Economy",
"slug": "economy",
"description": "",
"unit": "product",
"priority": 11,
"pricing": {
"type": "recurrent",
"free": { "price": 0, "setup": 0 },
"once": { "price": 0, "setup": 0 },
"recurrent": {
"1W": { "price": 0, "setup": 0, "enabled": false },
"1M": { "price": 0, "setup": 0, "enabled": false },
"3M": { "price": 0, "setup": 0, "enabled": false },
"6M": { "price": 0, "setup": 0, "enabled": false },
"1Y": { "price": 999, "setup": 0, "enabled": true },
"2Y": { "price": 0, "setup": 0, "enabled": false },
"3Y": { "price": 0, "setup": 0, "enabled": false }
}
},
"config": {},
"addons": [],
"price_starting_from": 999,
"icon_url": "",
"allow_quantity_select": false,
"form_id": null,
"created_at": "2026-11-16 07:27:49",
"updated_at": "2026-11-16 08:08:43"
}
]
},
"error": null
}
FieldDescription
pricingSee Pricing format.
configPublic settings only (see list below). Keys that are not set are omitted. When none are set, config is an empty object ({}).
addonsAddons that can be ordered with the product. Each has id, type, title, slug, description, unit, allow_quantity_select, icon_url, pricing and config. Addons omit timestamps.
price_starting_fromLowest available price. See Pricing format.
unitproduct for most types, year for domain products.
icon_urlIcon URL. May be null or an empty string when no icon is set.
form_idID of the custom order form, if any.
created_at, updated_atDate-time strings, or null when unset.

The only config keys exposed to guests are allow_domain_register, allow_domain_transfer, allow_domain_own, allow_subdomain and subdomain_base_domain.

Returns a single product by ID or slug. The response has the same fields as one entry from get_list.

ParameterTypeRequiredDescription
idintegerOne of the twoProduct ID. Takes precedence over slug.
slugstringOne of the twoProduct slug.
Terminal window
curl -s -X POST https://example.com/api/guest/product/get -d 'slug=economy'

Errors

MessageCause
Product ID or slug is missingNeither id nor slug was sent.
Product not foundNo enabled, active product with that ID or slug (addons are excluded).

Returns an object mapping product ID to title for enabled, visible, active products (same visibility rules as get_list), ordered by ID.

ParameterTypeRequiredDescription
typestringNoOnly return products of this type.
Terminal window
curl -s -X POST https://example.com/api/guest/product/get_pairs
{
"result": { "1": "Domains registration and transfer", "2": "Economy" },
"error": null
}

Returns a paginated list of categories that contain at least one enabled, visible product, ordered by priority. Each category includes its products.

ParameterTypeRequiredDescription
pageintegerNoPage number, starting at 1. Default 1.
per_pageintegerNoItems per page. Default 100, maximum 500.
Terminal window
curl -s -X POST https://example.com/api/guest/product/category_get_list

Values outside the valid ranges (page below 1, per_page above 500) return an error; non-integer values fall back to the defaults.

{
"result": {
"pages": 1,
"page": 1,
"per_page": 100,
"total": 1,
"list": [
{
"id": 2,
"title": "Web hosting",
"description": "Shared hosting plans",
"icon_url": null,
"priority": 1,
"created_at": "2026-11-13 15:40:00",
"updated_at": "2026-11-13 15:40:00",
"price_starting_from": 999,
"type": "hosting",
"products": [{ "id": 2, "title": "Economy", "...": "..." }]
}
]
},
"error": null
}
FieldDescription
productsEnabled, visible products in the category, with the same fields as get_list.
price_starting_fromLowest price_starting_from among the category's products.
typeType of the first product in the category.

This is the most efficient way to build a full price list: one call returns every visible category with its products and prices.

Returns all categories as an object mapping category ID to title, ordered by priority. Takes no parameters.

Terminal window
curl -s -X POST https://example.com/api/guest/product/category_get_pairs

Returns the TLDs a customer can register for free together with a hosting product.

ParameterTypeRequiredDescription
product_idintegerYesID of a product of type hosting.
Terminal window
curl -s -X POST https://example.com/api/guest/servicehosting/free_tlds -d 'product_id=3'

If the product has free TLDs configured, those TLDs are returned in the configured order. Entries that do not match a TLD in the system are skipped. Otherwise — or if none of the configured entries match — all active TLDs that allow registration are returned. Every entry uses the full fields from servicedomain/tlds:

{
"result": [
{
"id": 3,
"tld": ".se",
"price_registration": "259.00",
"price_renew": "259.00",
"price_transfer": "259.00",
"active": 1,
"allow_register": 1,
"allow_transfer": 1,
"require_transfer_code": true,
"min_years": 1,
"periods": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
}
],
"error": null
}

Errors

MessageCause
Product ID is missingproduct_id was not sent.
Product not foundNo product exists with that ID.
Product type is invalidThe product exists but is not of type hosting.
Terminal window
# All visible categories with their products and prices, in one call
curl -s -X POST https://example.com/api/guest/product/category_get_list
# The default currency, for formatting
curl -s -X POST https://example.com/api/guest/currency/get

Cache the response on your side. Product prices change rarely, and one cached call is enough to render a complete price list.