# Domain Availability Checker API

> Check whether a name is registered across many TLDs (.com, .vn, .com.vn, .io, .ai…) with RDAP and DNS, get registrar and expiry, and suggest free variants.

- Endpoint: `GET | POST https://apibox.io.vn/v1/domain-check`
- Category: Network & Validation
- HTML docs: https://apibox.io.vn/docs/domain-check/ (Vietnamese: https://apibox.io.vn/vi/docs/domain-check/)
- Online tool: https://apibox.io.vn/tools/domain-check/
- Authentication: `Authorization: Bearer <API key>` or `X-API-Key: <API key>` (free key: https://apibox.io.vn/dashboard/#signup)

Give a `name` (or `q`) such as "apibox" or a Vietnamese phrase like "Bánh mì Sài Gòn" (turned into banhmisaigon, plus the Vietnamese IDN form for .vn and .com) and the `tlds` to try (default com, net, org, io, ai, dev, app, co, vn, com.vn, xyz, shop), or a list of full `domains`. Each domain gets a `status`: `registered` (with registrar, creation and expiry dates, status codes and name servers when the registry has RDAP), `probably_available` or `unknown`, and the `method` used.

The registry is found through the IANA RDAP bootstrap (cached for a day); TLDs without RDAP — .vn and .com.vn (VNNIC has no public RDAP), .io, .co, .me… — and failing registries fall back to DNS: a delegation (NS records) means registered, NXDOMAIN for the name means probably available. `suggest=true` adds available variants on the first two TLDs (prefixes get / try / my / use / go, suffixes app / hq / hub / labs / vn / online, a vowel-less form, the hyphenated Vietnamese slug). Labels are validated (length, hyphens, punycode).

At most 40 lookups per request, 6 at a time; results are cached for 30 minutes to spare the registries. "Available" is never certain — premium, reserved, blocked or just-deleted names can still be refused — so confirm with a registrar before you announce a brand.

## Parameters

| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
| `name` | query|body | string | no |  | Name to check on each TLD (words and Vietnamese allowed); alias `q`. Or a full domain. |
| `tlds` | query|body | string | no |  | Comma-separated TLDs (e.g. com,vn,com.vn,io). |
| `domains` | query|body | array | no |  | Full domain names to check (comma / newline separated or array). |
| `suggest` | query|body | boolean | no | `false` | Also check variants and return the available ones. |

## Example request

```bash
curl "https://apibox.io.vn/v1/domain-check?q=apibox&tlds=com,io,vn,com.vn" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Example response

```json
{
  "query": "apibox",
  "count": 4,
  "summary": {
    "registered": 2,
    "probably_available": 2
  },
  "results": [
    {
      "domain": "apibox.com",
      "status": "registered",
      "method": "rdap",
      "registrar": "NameCheap, Inc.",
      "created": "2006-05-23T20:23:29Z",
      "expires": "2028-05-23T20:23:29Z",
      "status_codes": [
        "client transfer prohibited"
      ],
      "nameservers": [
        "ns1.afternic.com",
        "ns2.afternic.com"
      ],
      "unicode": null
    },
    {
      "domain": "apibox.io",
      "status": "registered",
      "method": "dns",
      "nameservers": [
        "ns-1404.awsdns-47.org",
        "ns-1847.awsdns-38.co.uk",
        "ns-382.awsdns-47.com",
        "ns-614.awsdns-12.net"
      ],
      "unicode": null
    },
    {
      "domain": "apibox.vn",
      "status": "probably_available",
      "method": "dns",
      "note": "No DNS delegation (no RDAP service for this TLD): a registered domain without name servers would look the same — confirm with the registrar or tracuutenmien.gov.vn",
      "unicode": null
    },
    {
      "domain": "apibox.com.vn",
      "status": "probably_available",
      "method": "dns",
      "note": "No DNS delegation (no RDAP service for this TLD): a registered domain without name servers would look the same — confirm with the registrar or tracuutenmien.gov.vn",
      "unicode": null
    }
  ],
  "note": "\"probably_available\" means the registry (RDAP) or DNS has no record: premium, reserved or just-deleted names can still be refused. Check with a registrar before you buy. .vn names are checked by DNS only (VNNIC has no public RDAP)."
}
```

## Use cases

- Check a startup or product name on every TLD you care about in one call
- Power the domain step of a business-name generator or chatbot
- Find free .vn / .com.vn variants for a Vietnamese brand
- Monitor competitors’ domain expiry dates

## FAQ

### Why is .vn only "probably" available?

VNNIC offers no public RDAP and its WHOIS has a captcha, so .vn is checked by DNS. A registered domain without name servers looks free; confirm on tracuutenmien.gov.vn.

### Can I see the owner of a domain?

Only the registrar and dates are returned. For full RDAP data use /v1/whois.

### Does every TLD work?

Every TLD that has RDAP or public DNS. Unknown or reserved TLDs return unknown.
