Skip to main content

Get User Domains

This endpoint will get the domains connected to a user's account which is available with the provided information. The following information is required while sending an request to the server:

  • API Username (api credenital assigned to you)
  • API Key (api credenital assigned to you)
  • Username (the account username of the client)

HTTP Request

All API requests for this action must be made to https://panel.myownfreehost.net/xml-api/getuserdomains.php. Any other address for this action may result in an unknown error.

Shell Request

curl -X POST -u username:password -d "api_user=username&api_key=password&username=hname_12345678" "https://panel.myownfreehost.net/xml-api/getuserdomains.php"

Python Request

import requests
from requests.auth import HTTPBasicAuth

url = "https://panel.myownfreehost.net/xml-api/getuserdomains.php"
data = {'api_user': 'username', 'api_key': 'password', 'username': 'hname_12345678'}

response = requests.post(url, params=data, auth=HTTPBasicAuth('username', 'password'))

print(response.text)

Array Response

[["ACTIVE","subdomain.example.com"]]