ドメインの登録
ドメイン名の登録とは、特定の期間(通常は1年以上)にわたって、インターネット上の固有の名前を確保するプロセスです。
Content-Type
application/json
カテゴリ
domain
action
register
リクエストパラメータ
| パラメータ名 | 型 | 説明 | 例 |
|---|---|---|---|
| domain | String (3-60) | ドメイン名 | example.com |
| year | Integer (4) | 登録期間は1〜10年です。一部のドメインでは例外があります。 | 1 |
| dns1 | サーバー | プライマリネームサーバー | ns3.my-ndns.com |
| dns2 | サーバー | セカンダリネームサーバー | ns4.my-ndns.com |
| organization | String (1-255) | 組織名/会社名 | XXX Ltd. |
| name | String (1-16) | 登録者名 | Xiao Ming |
| country | String (1-255) | 国コード(例:CN) | CN |
| state | String (1-255) | 省 / 州 | BeiJing |
| city | String (1-255) | 都市コード | BJ |
| address | String (1-255) | 郵送先住所 | BeiJing |
| postcode | Integer (4-10) | 郵便番号 / ジップコード | 100000 |
| phone | 数字の区切りには「.」を使用 (30) | +国番号・市外局番・電話番号 | +86.13800000000 |
| fax | 数字の区切りには「.」を使用 (30) | +国番号・市外局番・FAX番号 | +86.13800000000 |
| メールアドレス | メールアドレス | [email protected] | |
| contact_source | String (1-255) | メンバーに設定すると、指定された連絡先詳細の代わりにメンバープロフィールが使用されます。 | member |
| document_type | String | HKドメインに必須です。一般的な値:PASSNO(パスポート)、OTHIDV(その他の個人書類番号)、OTHORG(その他の組織書類番号)。 | PASSNO |
| document_number | String (1-40 バイト) | 選択した種類に一致する書類番号。HKドメインでは必須です。 | E12345678 |
HK domains require both document fields, including when using contact_source=member. Other domains ignore them. For .com.hk, only BR is accepted.
レスポンスパラメータ
| パラメータ名 | 型 | 説明 |
|---|---|---|
| domain | String | ドメイン名 |
| created_date | Date | ドメイン登録日時 |
| expired_date | 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 Pending 処理待ちの注文
{
"code": 201,
"msg" : "Pending order, please wait for the order to be processed!"
}
}
注記:コード「201」は、登録注文が正常に送信され、料金が差し引かれたことを意味します。最終的なドメインの有効化は、引き続きレジストリの確認が必要です。ドメインを有効化できない場合は、登録料金は24時間以内にアカウント残高へ返金されます。
400 リクエストエラー
{
"code": 400,
"msg" : "Request parameter error",
}






