Find hosting id for domain

Request Information
URL GET {{basepath}}/hosting/domainInUse/:domainname
CategoryHosting

Description

Allows you to retrieve the hosting identifier for a domainname or subdomain

Returns a HostingDomainInUseResponse object.

Url variables
:domainnamesub2.example-2022-4-26-13-50-36.com

Example responses

Find hosting id for domain: No domain found
Request Method & URL
GET {{basepath}}/hosting/domainInUse/:domainname
Url variables
:domainnameexample.com
Response Code:
404 Not Found
Response Body:
{
    "responseId": "1_5644257f64086d62aab0260d716f5e1f8969356f",
    "status": "not_found",
    "message": "No hosting found"
}
Find hosting id for domain: found
Request Method & URL
GET {{basepath}}/hosting/domainInUse/:domainname
Url variables
:domainnameexample-2022-4-26-13-12-46.com
Response Code:
200 OK
Response Body:
{
    "responseId": "1_94e57e9637106151ff90c3ce7a3b19e8889031df",
    "status": "ok",
    "message": "A hosting was found",
    "hostingIdentifier": "1_89d660ceed9e3193c82be85392a74018b80f6695"
}
Find hosting id for domain: Found subdomain
Request Method & URL
GET {{basepath}}/hosting/domainInUse/:domainname
Url variables
:domainnamesub2.example-2022-4-26-13-50-36.com
Response Code:
200 OK
Response Body:
{
    "responseId": "1_8f49c39b18587f5d0932e4097308655c268e434d",
    "status": "ok",
    "message": "A hosting was found",
    "hostingIdentifier": "1_8eced42827605d5027ff06027635235ffd919244"
}