REST API v1.1 - Managed DNS

Hosts - Count all hosts

This is the total number of hosts available for the specified zone. It is the same result as provided in the X-Query-Count header in the Managed DNS → List hosts API method.

Request

Example
GET /api/1.1/zones/12345678/hosts/count.xml

GET /api/1.1/hosts/count.xml?zone_id=12345678

Response

Example body
<count>12</count>