# Chi tiết tên miền theo tên

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

Thông tin tên miền theo tên (ví dụ `example.com`) thay vì ID.

## HTTP request

| Mục | Giá trị |
| --- | --- |
| URL | `https://api.tino.vn/v1/domain/name/@name` |
| 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ả |
| --- | --- | --- | --- | --- |
| `name` | đường dẫn | string | có | Tên miền |

## Example request

```bash
curl "https://api.tino.vn/v1/domain/name/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.get_by_name(name)`, Node.js `await client.domains.getByName(name);`, PHP `$client->domains->getByName($name);`.

## Example response

```json
{
 "success": true,
 "domains": [
  {
   "id": "200001",
   "name": "example.com",
   "date_created": "2025-12-07",
   "firstpayment": "50000.00",
   "recurring_amount": "585366.00",
   "period": "1",
   "expires": "2026-12-07",
   "status": "Active",
   "next_due": "2026-12-07",
   "next_invoice": "2026-11-22",
   "idprotection": "1",
   "nameservers": [
    "ns1.tino.vn",
    "ns2.tino.vn"
   ],
   "autorenew": "1"
  }
 ],
 "page": {
  "current": 0,
  "total": 1
 }
}
```

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)`).
