Domain API - Pendaftaran Domain API - ICANN Pendaftar API - White Label Domain Service

Start Building with NiceNIC Domain API v2

API access is free fatau every active NiceNIC user. Tidak reseller upgrade is required. Configure anda API credentials, make a safe test request, then add the domain, DNS, billing, compliance atau WHMCS wataukflows anda application needs.

Daftar Domain

Pendaftaran domain name ialah proses menempah nama unik di Internet untuk tempoh tertentu, biasanya satu tahun atau lebih

Content-Type application/json
kategori domain
tindakan register

Parameter permintaan

Nama parameter Jenis Huraikan Contoh
domain Rentetan (3-60) Nama domain example.com
year Integer (4) Tempoh pendaftaran adalah dari 1 hingga 10 tahun, dengan beberapa pengecualian untuk domain tertentu. 1
dns1 Pelayan Nameserver utama ns3.my-ndns.com
dns2 Pelayan Nameserver sekunder ns4.my-ndns.com
organization Rentetan (1-255) Nama organisasi / syarikat XXX Ltd.
name Rentetan (1-16) Nama pendaftar Xiao Ming
country Rentetan (1-255) Kod Negara, seperti CN CN
state Rentetan (1-255) Wilayah / negeri BeiJing
city Rentetan (1-255) Singkatan bandar BJ
address Rentetan (1-255) Alamat surat-menyurat BeiJing
postcode Integer (4-10) Poskod / Kod Zip 100000
phone "." untuk memisahkan nombor (30) +Kod negara.kod kawasan dan nombor telefon +86.13800000000
fax "." untuk memisahkan nombor (30) +Kod negara.kod kawasan dan nombor faks +86.13800000000
email Alamat e-mel Alamat e-mel [email protected]
contact_source Rentetan (1-255) Sumber hubungan, jika ditetapkan kepada ahli, maklumat hubungan akan sama seperti maklumat ahli, dan maklumat hubungan lain akan diabaikan. member

Parameter respons

Nama parameter Jenis Huraikan
domain Rentetan Nama domain
created_date Tarikh Masa pendaftaran domain
expired_date Tarikh Tarikh tamat tempoh domain

Contoh Permintaan

                                    
{
    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" 
}

Hasil Pulangan

0 OK Respons berjaya
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        "domain":"example.com",
        "created_date":"2025-01-21",
        "expired_date":"2026-01-21"        
    }
}
201 Menunggu Menunggu atauder
                                        
{
    "code": 201,
    "msg" : "Pending order, please wait for the order to be processed!"
    }
}

Nota: code "201" means the registration atauder was submitted successfully dan the fee was deducted. Final domain activation is still subject to registry confirmation. Jika the domain cannot be activated, the registration fee will be refunded to anda account balance within 24 hours.

400 Permintaan tidak sah
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
}
Hak Cipta © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Hak Cipta Terpelihara. · U.S. Affiliate: NICENIC LLC