The FOSSBilling Forum

Full Version: How to query domain pricing and availability via API?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone,

I'm currently working on integrating an external system with FOSSBilling and I need some guidance on how to interact with the domain management features via API.

Specifically, I’m looking for answers to the following:

How can I programmatically fetch a list of TLDs (domain extensions) that are currently configured for sale in the system, along with their pricing (register, renew, transfer)?
Is there a public or admin API endpoint that returns this data, or should I directly access the database?

How can I perform a domain availability check (WHOIS) through the API?
For example, I’d like to check if example.com or example.net is available using an API call and get a boolean response or status.

My goal is to build a custom front-end where users can search for available domains and view pricing before placing an order, and I want to make sure I’m aligning with FOSSBilling’s best practices.

Any code examples, module references, or documentation links would be greatly appreciated!

Thank you in advance.

Best regards,
Hey there,
The API isn't super well documented however these endpoints do exist:
https://github.com/FOSSBilling/FOSSBilli.../Guest.php

You'd be looking at:
- /api/guest/servicedomain/tlds
- /api/guest/servicedomain/pricing
- /api/guest/servicedomain/check

There's some basic documentation on how to interact with the API here:
https://fossbilling.org/docs/developing-fossbilling/api