Get name subdomains
Retrieves the list of subdomains for a specific name.
Path Parameters
namestring
fully-qualified name
Query Parameters
unanchored?boolean
Include data from unanchored (i.e. unconfirmed) microblocks
Default
false
Response Body
Fetch a list of subdomains in a name.
TypeScript Definitions
Use the response body type in TypeScript.
response?GetAllSubdomainsInName
Fetch a list of subdomains in a name.
Default Response
TypeScript Definitions
Use the response body type in TypeScript.
errorstring
message?string
[key: string]any
curl -X GET "https://api.hiro.so//v1/names/id.blockstack/subdomains?unanchored=true"
fetch("https://api.hiro.so//v1/names/id.blockstack/subdomains?unanchored=true")
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.hiro.so//v1/names/id.blockstack/subdomains?unanchored=true"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://api.hiro.so//v1/names/id.blockstack/subdomains?unanchored=true"
response = requests.request("GET", url)
print(response.text)
[
"address_test.id.blockstack",
"previous_subdomain.id.blockstack",
"subdomain.id.blockstack",
"zonefile_test.id.blockstack",
"zone_test.id.blockstack"
]
{
"error": "string",
"message": "string"
}