# Get Name Info

### Get Tapname Info

> Code samples

```javascript

const headers = {
  'Accept':'application/json'
};

fetch('https://tna-btc.com/api/tapname?name=string',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

```

`GET /api/tapname`

#### Parameters <a href="#get-tapname-info-parameters" id="get-tapname-info-parameters"></a>

| Name | In    | Type           | Required | Description |
| ---- | ----- | -------------- | -------- | ----------- |
| name | query | string(string) | true     | none        |

> Example responses

> 200 Response

```json
{
  "code": 0,
  "message": "string",
  "data": {
    "status": 0,
    "address(if taken)": "string",
    "price(if available)": 0
  }
}
```

#### Responses <a href="#get-tapname-info-responses" id="get-tapname-info-responses"></a>

| Status | Meaning | Description       | Schema |
| ------ | ------- | ----------------- | ------ |
| 200    | Success | none              | Inline |
| 400    | Failed  | see error message | Inline |

#### Response Schema <a href="#get-tapname-info-responseschema" id="get-tapname-info-responseschema"></a>

Status Code **200**

| Name       | Type           | Required | Restrictions | Description                    |
| ---------- | -------------- | -------- | ------------ | ------------------------------ |
| » code     | integer(int)   | false    | none         | Error code                     |
| » message  | string(string) | false    | none         | Error message                  |
| » data     | object         | false    | none         | Result data                    |
| »» status  | integer(int)   | false    | none         | 0:taken 1:available 2:reserved |
| »» address | string(string) | false    | none         | address(if taken)              |
| »» price   | integer(int)   | false    | none         | price(if available)            |
