# Check domain availability

`POST /v1/domain/lookup` · scope `domains:read`

Check whether a domain can be registered, with registration, transfer and renewal prices per number of years. `status: "ok"` when it is available.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/v1/domain/lookup` |
| Method | `POST` |
| Scope | `domains:read` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | `application/json` |
| Tokens that can call it | app tokens (`tinoat_`), personal API tokens (`tinopat_`) |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `name` | body | string | no | Domain name, ie. example.com |

## Example request

```bash
curl -X POST "https://api.tino.vn/v1/domain/lookup" \
  -H "Authorization: Bearer $TINO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "<name>"
}'
```

`$TINO_TOKEN` is a token with the scope `domains:read`.

SDK ([SDK & examples](/en/docs/sdk)): Python `client.domains.lookup(name=...)`, Node.js `await client.domains.lookup({ name: ... });`, PHP `$client->domains->lookup(['name' => ...]);`.

## Example response

```json
{
 "domain": "example.com",
 "name": "example.com",
 "sld": "example",
 "tld": ".com",
 "description": "",
 "premium": false,
 "avaliable": true,
 "transfer": false,
 "status": "ok",
 "type": "register",
 "category_id": "58",
 "tld_id": "346",
 "periods": [
  {
   "id": "346",
   "period": "1",
   "register": "319000.00",
   "transfer": "399000.00",
   "renew": "399000.00",
   "redemption": "3990000.00",
   "before": "399000.00",
   "vatFee": 29000,
   "feeRegOrigin": 290000
  },
  {
   "id": "346",
   "period": "2",
   "register": "638000.00",
   "transfer": "798000.00",
   "renew": "798000.00",
   "redemption": "7980000.00",
   "before": "-1.00",
   "vatFee": 58000,
   "feeRegOrigin": 580000
  },
  "… 8 more item(s)"
 ]
}
```

Live sample from a test account with personal data masked; long arrays and strings are trimmed (`… N more item(s)`, `… N more line(s)`).
