![]() |
How to query domain pricing and availability via API? - Printable Version +- The FOSSBilling Forum (https://forum.fossbilling.org) +-- Forum: Support (https://forum.fossbilling.org/forum-7.html) +--- Forum: Support - General Q&A (https://forum.fossbilling.org/forum-8.html) +--- Thread: How to query domain pricing and availability via API? (/thread-369.html) |
How to query domain pricing and availability via API? - muti - 07-21-2025 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, RE: How to query domain pricing and availability via API? - BelleNottelling - 07-22-2025 Hey there, The API isn't super well documented however these endpoints do exist: https://github.com/FOSSBilling/FOSSBilling/blob/main/src/modules/Servicedomain/Api/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 |