ドメインを登録
ドメイン名登録とは、インターネット上の固有の名前を一定期間確保する手続きです。通常は1年またはそれ以上です
Content-Type
application/json
カテゴリ
domain
アクション
register
リクエストパラメータ
| パラメータ名 | タイプ | 説明 | 例 |
|---|---|---|---|
| domain | 文字列 (3-60) | ドメイン名 | example.com |
| year | 整数 (4) | 登録期間は1年から10年までです。一部のドメインは例外があります。 | 1 |
| dns1 | サーバー | プライマリネームサーバー | ns3.my-ndns.com |
| dns2 | サーバー | セカンダリネームサーバー | ns4.my-ndns.com |
| organization | 文字列 (1-255) | 組織名 / 会社名 | XXX Ltd. |
| name | 文字列 (1-16) | 登録者名 | Xiao Ming |
| country | 文字列 (1-255) | 国コード。例: CN | CN |
| state | 文字列 (1-255) | 都道府県 / 州 | BeiJing |
| city | 文字列 (1-255) | 市区町村略称 | BJ |
| address | 文字列 (1-255) | 郵送先住所 | BeiJing |
| postcode | 整数 (4-10) | 郵便番号 / ゾーンコード | 100000 |
| phone | 数字を区切るには "." を使用(30) | +国番号.市外局番と電話番号 | +86.13800000000 |
| fax | 数字を区切るには "." を使用(30) | +国番号.市外局番とFAX番号 | +86.13800000000 |
| メールアドレス | メールアドレス | [email protected] | |
| contact_source | 文字列 (1-255) | 連絡先が「メンバー」に設定されている場合、連絡先情報はメンバー情報と同じになり、その他の連絡先情報は無視されます。 | member |
レスポンスパラメータ
| パラメータ名 | タイプ | 説明 |
|---|---|---|
| domain | 文字列 | ドメイン名 |
| created_date | 日付 | ドメイン登録時刻 |
| expired_date | 日付 | ドメイン有効期限日 |
リクエスト例
{
curl https://api.nicenic.net/v2/?category=domain&action=register&domain={domain}&year={year}&dns1={dns1}&dns2={dns2}&organization={organization}&name={name}&country={country}&state={state}&city={city}&address={address}&postcode={postcode}&phone={phone}&fax={fax}&email={email}&contact_source={contact_source}
-H "Authorization: username:api_secret"
-H "Content-Type: application/json"
}
返却結果
0 OK
成功レスポンス
{
"code": 0,
"msg" : "success",
"data" : {
"domain":"example.com",
"created_date":"2025-01-21",
"expired_date":"2026-01-21"
}
}
201 保留中
保留中 またはder
{
"code": 201,
"msg" : "Pending order, please wait for the order to be processed!"
}
}
注意: code "201" means the registration またはder was submitted successfully と the fee was deducted. Final ドメイン activation is still subject to registry confirmation. もし the ドメイン cannot be activated, the registration fee will be refunded to あなたの account balance within 24 hours.
400 不正なリクエスト
{
"code": 400,
"msg" : "Request parameter error",
}






