# WhoisAPI

## DNSWhoisAPI リファレンス

### サービス名

**DNSWhoisAPI**

### 利用用途

`DNSWhoisAPI`は、指定されたドメインのWhois情報を取得するためのAPIです。ドメインの所有者情報や登録状況などを取得するために使用されます。このAPIを利用することで、さまざまなドメインの情報を簡単に取得できます。

***

### API エンドポイント

```
https://events-front.mixeder.net/v1/Whois
```

***

### パラメータ

| パラメータ    | 必須 | 説明                 |
| -------- | -- | ------------------ |
| `key`    | 必須 | 利用者のAPIキー          |
| `domain` | 必須 | Whois情報を取得したいドメイン名 |

***

### 利用方法

1. 有効なAPIキーを用意します。
2. Whois情報を取得したいドメイン名を`domain`パラメータに指定します。
3. APIリクエストを送信すると、指定されたドメインのWhois情報が返されます。

***

### サンプルコード

#### cURL

```bash
curl "https://events-front.mixeder.net/v1/Whois?key=YOUR_API_KEY&domain=example.com"
```

#### Node.js

```javascript
const https = require('https');

const url = 'https://events-front.mixeder.net/v1/Whois?key=YOUR_API_KEY&domain=example.com';

https.get(url, (res) => {
    let data = '';
    res.on('data', (chunk) => {
        data += chunk;
    });
    res.on('end', () => {
        console.log(data);
    });
}).on('error', (err) => {
    console.error('Error: ' + err.message);
});
```

#### Python

```python
import requests

url = "https://events-front.mixeder.net/v1/Whois"
params = {
    "key": "YOUR_API_KEY",
    "domain": "example.com"
}

response = requests.get(url, params=params)
if response.status_code == 200:
    print(response.text)
else:
    print(f"Error: {response.status_code}")
```

***

### エラーメッセージ

* **API Key not provided.**: APIキーが指定されていません。
* **Domain not provided.**: ドメイン名が指定されていません。
* **API key is wrong**: APIキーが無効です。

***

### 注意事項

* 有効なAPIキーが必要です。指定がない場合や無効な場合はリクエストは拒否されます。
* `domain`パラメータには、Whois情報を取得したいドメイン名を正確に指定してください。
* サポートされているTLD（トップレベルドメイン）のリストは、こちらのページに定義されています。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.mixeder.net/mixederpublicapis/apirifarensu/whoisapi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
