The endpoints on this page belong to the guest API role. They require no authentication and no CSRF token, and can be called from any server-side integration (for example a WordPress price list or a custom domain search form).
All endpoints follow the standard 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.
Domains (servicedomain)
Section titled “Domains (servicedomain)”TLD values are returned with the leading dot, e.g. .com, .se. Request parameters accept values with or without it (tld=com works the same as tld=.com).
guest/servicedomain/tlds
Section titled “guest/servicedomain/tlds”Lists all active TLDs with their pricing. TLD records omit created_at and updated_at.
| Parameter | Type | Required | Description |
|---|---|---|---|
allow_register | bool | No | If present, filters by registration flag. Omit to disable filtering. |
allow_transfer | bool | No | If present, filters by transfer flag. Omit to disable filtering. |
curl -s -X POST https://example.com/api/guest/servicedomain/tlds{ "result": [ { "id": 1, "tld": ".com", "price_registration": "11.99", "price_renew": "11.99", "price_transfer": "11.99", "active": 1, "allow_register": 1, "allow_transfer": 1, "require_transfer_code": false, "min_years": 1, "periods": null } ], "error": null}| Field | Description |
|---|---|
price_registration | Price per year for registration, in the default currency. |
price_renew | Price per year for renewal. |
price_transfer | Price for transfer. |
require_transfer_code | Whether an EPP/auth code is required for transfers. |
min_years | Minimum registration period in years. |
periods | Allowed registration periods in years, or null if not restricted. |
Prices are returned unformatted and in the system's default currency. Use guest/currency/format to convert and format them.
guest/servicedomain/pricing
Section titled “guest/servicedomain/pricing”Returns pricing for a single TLD. The response object has the same fields as one entry from tlds.
| Parameter | Type | Required | Description |
|---|---|---|---|
tld | string | Yes | TLD, e.g. .se. The leading dot is optional. |
curl -s -X POST https://example.com/api/guest/servicedomain/pricing -d 'tld=.com'Errors
| Message | Cause |
|---|---|
TLD is missing | The tld parameter was not sent. |
TLD is invalid. | The tld value is not a valid TLD. |
TLD not found | The TLD does not exist in FOSSBilling. |
TLD is not active. | The TLD exists but is inactive. |
guest/servicedomain/check
Section titled “guest/servicedomain/check”Checks whether a domain is available for registration. The result comes from the registrar module configured for the TLD, so a registrar must be set up for the answer to be accurate.
| Parameter | Type | Required | Description |
|---|---|---|---|
sld | string | Yes | Second-level part of the domain, e.g. example for example.com. |
tld | string | Yes | TLD, e.g. .com. The leading dot is optional. |
curl -s -X POST https://example.com/api/guest/servicedomain/check \ -d 'sld=example' -d 'tld=.com'Returns true when the domain is available:
{ "result": true, "error": null }A registered domain does not return false. It returns an error instead:
{ "result": null, "error": { "message": "Domain is not available.", "code": 708 }}Errors
| Message | Cause |
|---|---|
TLD is missing / SLD is missing | A required parameter was not sent. |
TLD is invalid. | The tld value is not a valid TLD. |
Domain is not available. | The domain is already registered. Returned with code: 708 and HTTP 200. |
Domain cannot be registered. | The TLD exists and is active, but does not allow registration. Returned with code: 403 and HTTP 403, not code: 9999. |
Domain example is invalid | The sld failed validation (the message includes the submitted value). |
Domain availability could not be determined. TLD is not configured. | Unknown TLD. |
Domain availability could not be determined. TLD is not active. | TLD exists but is inactive. |
Registrar modules may return their own error messages when the registry cannot be reached, for example Domain availability check failed. Please try again later.
guest/servicedomain/can_be_transferred
Section titled “guest/servicedomain/can_be_transferred”Checks whether a domain can be transferred in.
| Parameter | Type | Required | Description |
|---|---|---|---|
sld | string | Yes | Second-level part of the domain. |
tld | string | Yes | TLD, e.g. .com. The leading dot is optional. |
curl -s -X POST https://example.com/api/guest/servicedomain/can_be_transferred \ -d 'sld=example' -d 'tld=.com'Returns true if the domain can be transferred.
Errors
| Message | Cause |
|---|---|
TLD is missing / SLD is missing | A required parameter was not sent. |
TLD is invalid. | The tld value is not a valid TLD. |
TLD is not configured. | Unknown TLD. |
TLD is not active. | TLD exists but is inactive. |
Domain cannot be transferred. | The TLD does not allow transfers. Returned with code: 403 and HTTP 403. |
Domain cannot be transferred. | The registrar reported that the domain cannot be transferred. Returned with code: 711 and HTTP 200. |
This endpoint shares the domain_lookup_ip rate limit with check.
Currency (currency)
Section titled “Currency (currency)”guest/currency/get_pairs
Section titled “guest/currency/get_pairs”Returns the configured currencies as an object mapping currency code to title. Takes no parameters.
curl -s -X POST https://example.com/api/guest/currency/get_pairs{ "result": { "USD": "US Dollar", "EUR": "Euro" }, "error": null}guest/currency/get
Section titled “guest/currency/get”Returns details of a currency, including its conversion_rate. The response omits created_at and updated_at.
| Parameter | Type | Required | Description |
|---|---|---|---|
code | string | No | Currency code, e.g. SEK. If omitted, the default currency is returned. |
curl -s -X POST https://example.com/api/guest/currency/get -d 'code=SEK'Errors
| Message | Cause |
|---|---|
Currency not found. | Unknown currency code, or no default currency is set. |
guest/currency/format
Section titled “guest/currency/format”Formats a price as a localized string, optionally converting it from the default currency.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
price | float | No | 0 | Amount in the default currency. |
code | string | No | default currency | Target currency code. |
convert | bool | No | true | Multiply price by the target currency's conversion_rate. |
without_currency | bool | No | false | Return only the number, without currency symbol. |
Formatting follows the active locale of the request.
curl -s -X POST https://example.com/api/guest/currency/format \ -d 'price=11.99' -d 'code=SEK'Errors
| Message | Cause |
|---|---|
Currency not found. | Unknown currency code, or no default currency is set. |
Example: Building a Public Price List
Section titled “Example: Building a Public Price List”# 1. Fetch all TLDs that can be registeredcurl -s -X POST https://example.com/api/guest/servicedomain/tlds -d 'allow_register=1'
# 2. Get the default currency (for symbol / formatting)curl -s -X POST https://example.com/api/guest/currency/getA single tlds call returns prices for every TLD, so there is no need to call pricing per TLD. Cache the response on your side; prices change rarely.