OpenapiDomain
Checks exact names rather than searching for them, and answers the same quote…
Checks exact names rather than searching for them, and answers the same quote shape search does — purchasable, premium, first-term and renewal price in…
GET /v1/domain/availability
| Address | https://api.hanzo.ai/v1/domain/availability |
| Method | GET |
| Operation | get_domain_availability |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Checks exact names rather than searching for them, and answers the same quote shape search does — purchasable, premium, first-term and renewal price in cents.
It requires a validated principal; 403 without one. Nothing is charged and nothing is held. A deployment with no registrar credentials answers 503.
Request
1 field.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
domain | query | string | yes | Domain is one name, or several comma-separated, to check in one call. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | quoteList | ok |
200 body — 8 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
results | body | Offer[] | — | Results is one quote per name, priced RETAIL — this deployment's markup is already applied and the wholesale cost is never on the wire. |
results[].available | body | boolean | — | whether it can be bought right now |
results[].currency | body | string | — | the currency both prices are in |
results[].domain | body | string | — | the name this quote prices |
results[].premium | body | boolean | — | whether the registry prices it above the standard rate |
results[].priceCents | body | integer | — | sell (first-term registration) |
results[].renewalPriceCents | body | integer | — | sell (renewal) |
results[].tld | body | string | — | the top-level domain the name sits under |
Failure carries the platform error shape — see Errors.
Examples
hanzo domain availability --domain <domain>import { Configuration, DomainApi } from 'hanzoai';
const api = new DomainApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getDomainAvailability({ domain: 'domain' });from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import DomainApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = DomainApi(client).get_domain_availability(domain='domain')cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.DomainAPI.GetDomainAvailability(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, domain_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = domain_api::get_domain_availability(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.DomainApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new DomainApi(client).getDomainAvailability();curl https://api.hanzo.ai/v1/domain/availability?domain=%3Cdomain%3E \
-H "Authorization: Bearer $HANZO_API_KEY"Tool domain, op get_domain_availability — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "domain",
"arguments": {
"op": "get_domain_availability",
"input": {
"domain": "<domain>"
}
}
}
}'How is this guide?