Data Feeds
Data feeds offer a dynamic way to extract data from WHMCS for use on the pages of your website. They allow you to display information like product names, descriptions, and pricing in real time on the static pages of your site. When you make a change in WHMCS, it will automatically update on your website.
Code Samples
The code samples below are ready to copy and paste into your webpage. You can set the variables in the requests, such as the product IDs and TLDs, as you need them.
Product Names
<script language="javascript" src="feeds/productsinfo.php?pid=1&get=name"></script>
Product Descriptions
<script language="javascript" src="feeds/productsinfo.php?pid=1&get=description"></script>
Product Pricing
<script language="javascript" src="feeds/productsinfo.php?pid=1&get=price&billingcycle=monthly"></script>
Product Pricing and Currency
<script language="javascript" src="feeds/productsinfo.php?pid=1&get=price&billingcycle=monthly¤cy=2"></script>
Domain Pricing Table
<style type="text/css">
table.domainpricing {
width: 600px;
background-color: #ccc;
}
table.domainpricing th {
padding: 3px;
background-color: #efefef;
font-weight: bold;
}
table.domainpricing td {
padding: 3px;
background-color: #fff;
text-align: center;
}
</style>
<script language="javascript" src="feeds/domainpricing.php"></script>
Individual TLD Pricing
<script language="javascript" src="feeds/domainprice.php?tld=.com&type=register®period=1&format=1"></script>
Domain Checker Form
<script language="javascript" src="feeds/domainchecker.php"></script>
Find a Product ID
Product feeds use a product ID (pid) to identify which product to display.
To find a product’s ID:
- Go to Configuration () > System Settings > Products/Services.
- Click the edit icon for the product.
- Find
id=in the URL in your browser’s address bar. The number after it is the product ID. For example,id=2indicates that the product ID is2.
If the address bar doesn’t show the ID, hover over the product’s edit icon or right-click it and copy the link address. The copied link contains the same id= value.
Last modified: 2026 November 19