---
title: "List website subdomains"
method: GET
path: "/api/hosting/v1/accounts/{username}/websites/{domain}/subdomains"
tags: ["Hosting: Domains"]
---

# List website subdomains

`GET /api/hosting/v1/accounts/{username}/websites/{domain}/subdomains`

Retrieve all subdomains created under the selected website.

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

## Path parameters

- `username` string, required
- `domain` string, required

## Response `200`

Success response

- HostingV1DomainsSubdomainResource[] — Array of [`Hosting.V1.Domains.SubdomainResource`](#model/hostingv1domainssubdomainresource)
  - `username` string — Website username
  - `domain` string — Full subdomain
  - `parent_domain` string — Parent website domain
  - `root_directory` string — Subdomain root directory
  - `subdomain` string — Subdomain prefix

## Other responses

- `401` — Unauthenticated response
- `500` — Error response

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/75f6fb63f779/schema)
