For the complete documentation index, see llms.txt. This page is also available as Markdown.

List website parked domains

Retrieve all parked or alias domains created under the selected website.

List website parked domains

get

Retrieve all parked or alias domains created under the selected website.

Use this endpoint to inspect parked domain configuration for a specific website, including the parent domain and root directory assigned to each parked domain.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
usernamestringRequiredExample: u123456789
domainstringRequired

Domain name

Example: mydomain.tld
Responses
200

Success response

application/json
usernamestringOptional

Website username

Example: u123456789
domainstringOptional

Parked domain name or IP address

Example: parked-domain.com
parent_domainstringOptional

Parent website domain

Example: example.com
root_directorystringOptional

Parked domain root directory

Example: /home/u123456789/domains/example.com/public_html
typestring · enumOptional

Whether the parked value is a domain name or an IP address (IPv4 or IPv6)

Example: domainPossible values:
get/api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains
GET /api/hosting/v1/accounts/{username}/websites/{domain}/parked-domains HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
  {
    "username": "u123456789",
    "domain": "parked-domain.com",
    "parent_domain": "example.com",
    "root_directory": "/home/u123456789/domains/example.com/public_html",
    "type": "domain"
  }
]

Last updated

Was this helpful?