curl --request POST \
--url 'https://domain.hostwithdothost.com/?action=tldlist' \
--header 'Content-Type: application/json' \
--data '{
"username": "yourUsername",
"password": "yourPassword",
"count": 5
}'
{
"data": [
{
"id": 1,
"status": "Active",
"maxchar": 63,
"maxperiod": 10,
"minchar": 2,
"minperiod": 1,
"tld": "com",
"pricing": {
"backorder": {
"1": "48.8500"
},
"refund": {
"1": "11.2900"
},
"restore": {
"1": "85.0000"
},
"transfer": {
"1": "10.5900"
},
"renew": {
"1": "11.4900"
},
"registration": {
"1": "11.2900"
}
},
"currencies": {
"backorder": "USD",
"refund": "USD",
"restore": "USD",
"transfer": "USD",
"renew": "USD",
"registration": "USD"
}
},
{
"id": 2,
"status": "Active",
"maxchar": 63,
"maxperiod": 10,
"minchar": 3,
"minperiod": 1,
"tld": "net",
"pricing": {
"backorder": {
"1": "49.2000"
},
"refund": {
"1": "13.9900"
},
"transfer": {
"1": "13.9900"
},
"renew": {
"1": "13.9900"
},
"restore": {
"1": "85.0000"
},
"registration": {
"1": "13.9900"
}
},
"currencies": {
"backorder": "USD",
"refund": "USD",
"transfer": "USD",
"renew": "USD",
"restore": "USD",
"registration": "USD"
}
}
],
"result": "OK"
}
curl --request POST \
--url 'https://domain.hostwithdothost.com/?action=tldlist' \
--header 'Content-Type: application/json' \
--data '{
"username": "yourUsername",
"password": "yourPassword",
"count": 5
}'
{
"data": [
{
"id": 1,
"status": "Active",
"maxchar": 63,
"maxperiod": 10,
"minchar": 2,
"minperiod": 1,
"tld": "com",
"pricing": {
"backorder": {
"1": "48.8500"
},
"refund": {
"1": "11.2900"
},
"restore": {
"1": "85.0000"
},
"transfer": {
"1": "10.5900"
},
"renew": {
"1": "11.4900"
},
"registration": {
"1": "11.2900"
}
},
"currencies": {
"backorder": "USD",
"refund": "USD",
"restore": "USD",
"transfer": "USD",
"renew": "USD",
"registration": "USD"
}
},
{
"id": 2,
"status": "Active",
"maxchar": 63,
"maxperiod": 10,
"minchar": 3,
"minperiod": 1,
"tld": "net",
"pricing": {
"backorder": {
"1": "49.2000"
},
"refund": {
"1": "13.9900"
},
"transfer": {
"1": "13.9900"
},
"renew": {
"1": "13.9900"
},
"restore": {
"1": "85.0000"
},
"registration": {
"1": "13.9900"
}
},
"currencies": {
"backorder": "USD",
"refund": "USD",
"transfer": "USD",
"renew": "USD",
"restore": "USD",
"registration": "USD"
}
}
],
"result": "OK"
}
The response is of type object
.
Was this page helpful?