ドメイン価格の取得
ドメイン登録、更新、移管の価格情報を取得します
Content-Type
application/json
カテゴリ
domain
action
get_price
リクエストパラメータ
| パラメータ名 | 型 | 説明 | 例 |
|---|---|---|---|
| domain | String (3-60) | ドメイン名 | example.com |
| type | String | ドメイン名の種類:登録、移管、更新、すべて | register |
| year | Integer (4) | 登録/更新/移管の期間を選択 (1〜10年) | 1 |
レスポンスパラメータ
| パラメータ名 | 型 | 説明 |
|---|---|---|
| domain | String | ドメイン名 |
| type | String | ドメイン名の種類(登録/移管/更新) |
| currency | String | 通貨タイプ |
| price | 数値 | 価格(金額) |
| is_premium | ブール値 | ドメインがプレミアムドメインかどうか(登録タイプのみ) |
リクエスト例
{
curl https://api.nicenic.net/v2/?category=domain&action=get_price&domain={domain}&type={type}&year={year}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
戻り値
0 OK リクエスト成功
{
"code": 0,
"msg" : "success",
"data" : {
[
{
"domain": "example.com",
"type": "register",
"currency": "USD",
"price": 15.99,
"is_premium": false
},
{
"domain": "example.com",
"type": "renew",
"currency": "USD",
"price": 15.99
}
]
}
}
400 リクエストエラー
{
"code": 400,
"msg" : "Request parameter error",
}






