โดเมน API - จดทะเบียนโดเมน API - ICANN ผู้รับจดทะเบียน API - White Label โดเมน Service

Start Building with NiceNIC โดเมน API v2

API access is free fหรือ every active NiceNIC user. ไม่ reseller upgrade is required. Configure ของคุณ API credentials, make a safe test request, then add the โดเมน, DNS, billing, compliance หรือ WHMCS wหรือkflows ของคุณ application needs.

จดทะเบียนโดเมน

การจดทะเบียน domain name คือกระบวนการสำรองชื่อเฉพาะบน Internet สำหรับช่วงเวลาหนึ่ง โดยทั่วไปจะ 1 ปีขึ้นไป

Content-Type application/json
หมวดหมู่ domain
การทำงาน register

พารามิเตอร์คำขอ

ชื่อพารามิเตอร์ ประเภท คำอธิบาย ตัวอย่าง
domain สตริง (3-60) ชื่อโดเมน example.com
year จำนวนเต็ม (4) ระยะเวลาจดทะเบียนอยู่ระหว่าง 1 ถึง 10 ปี โดยมีข้อยกเว้นสำหรับบางโดเมน 1
dns1 เซิร์ฟเวอร์ Nameserver หลัก ns3.my-ndns.com
dns2 เซิร์ฟเวอร์ Nameserver สำรอง 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) +รหัสประเทศ.รหัสพื้นที่และหมายเลขแฟกซ์ +86.13800000000
email ที่อยู่อีเมล ที่อยู่อีเมล [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",
}
ลิขสิทธิ์ © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. สงวนลิขสิทธิ์ทั้งหมด. · U.S. Affiliate: NICENIC LLC