ドメインを登録
ドメイン名登録とは、インターネット上の固有の名前を一定期間確保する手続きです。通常は1年またはそれ以上です
リクエストパラメータ
| パラメータ名 | タイプ | 説明 | 例 |
|---|---|---|---|
| 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) | Set to member to use あなたの member profile instead of the supplied 連絡先情報. | member |
| document_type | 文字列 | Required fまたは HK ドメインs. Common values: PASSNO (パスポート), OTHIDV (Other Individual 書類番号), OTHまたはG (Other Organization 書類番号). | PASSNO |
| document_number | 文字列 (1-40 bytes) | Document number matching the selected type. Required fまたは HK ドメインs. | E12345678 |
HK ドメインs require both document fields, including when using contact_source=member. Other ドメインs ignまたはe them. Fまたは .com.hk, only BR is accepted.
レスポンスパラメータ
| パラメータ名 | タイプ | 説明 |
|---|---|---|
| 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"
}
返却結果
{
"code": 0,
"msg" : "success",
"data" : {
"domain":"example.com",
"created_date":"2025-01-21",
"expired_date":"2026-01-21"
}
}
{
"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.
{
"code": 400,
"msg" : "Request parameter error",
}






