# Tra whois tên miền (bằng token)

`GET /v1/whois/@domain` · quyền `domains:read`

Cùng kết quả với [route công khai](/docs/api/get-whois-domain) `GET https://api.tino.vn/whois/<tên miền>`, gọi qua gateway `/v1` bằng token có quyền `domains:read`: phần mềm đã có token thì dùng chung một gốc địa chỉ, lượt tra được ghi theo tài khoản.

## HTTP request

| Mục | Giá trị |
| --- | --- |
| URL | `https://api.tino.vn/v1/whois/@domain` |
| Method | `GET` |
| Quyền (scope) | `domains:read` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | — (không có body) |
| Token gọi được | token ứng dụng (`tinoat_`), token API cá nhân (`tinopat_`) |

## Tham số

| Tên | Vị trí | Kiểu | Bắt buộc | Mô tả |
| --- | --- | --- | --- | --- |
| `domain` | đường dẫn | string | có | Tên miền cần tra (vd `example.com`), hoặc một đuôi (vd `vn`) |

## Example request

```bash
curl "https://api.tino.vn/v1/whois/example.com" \
  -H "Authorization: Bearer $TINO_TOKEN"
```

`$TINO_TOKEN` là token có quyền `domains:read`. Tham số đường dẫn trong ví dụ là giá trị mẫu.

SDK ([SDK & Ví dụ](/docs/sdk)): Python `client.domains.whois(domain)`, Node.js `await client.domains.whois(domain);`, PHP `$client->domains->whois($domain);`.

## Example response

```json
{
 "success": true,
 "domain": "example.com",
 "available": false,
 "status": "",
 "whois": {
  "domain": "example.com",
  "registrar": "Web Commerce Communications Ltd.",
  "createDate": "2025-12-07T11:00:00.471Z",
  "expiredDate": "2026-12-07T11:00:00.471Z",
  "updatedDate": "2026-03-30T16:00:00.697Z",
  "nameservers": [
   "ns1.tino.vn",
   "ns2.tino.vn"
  ],
  "status": [
   "clientDeleteProhibited https://example.org/epp#clientDeleteProhibited",
   "clientUpdateProhibited https://example.org/epp#clientUpdateProhibited",
   "… 1 more item(s)"
  ],
  "WhoisServer": "whois.webnic.cc"
 },
 "raw": "Domain Name: example.com<br />Registry Domain ID: DO_d59b4fbe41112c70f4c72e6116f376a3-ARUBA<br />Registrar WHOIS Server: whois.webnic.cc<br />Registrar URL: https://www.webnic.cc<br />Updated Date: 2026-03-30T16:00:00.697Z<br />Creation Date: 2025-12-07T11:00:00.471Z<br />Registry Expiry D…"
}
```

Mẫu thật từ tài khoản thử, đã che dữ liệu cá nhân; mảng và chuỗi dài được rút gọn (`… N more item(s)`, `… N more line(s)`).
