דומיין 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.

רשום דומיין

רישום שם דומיין הוא תהליך של שמירת שם ייחודי באינטרנט לתקופה מסוימת, בדרך כלל לשנה או יותר

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) +קוד מדינה.קוד אזור ומספר פקס +86.13800000000
email כתובת דואר אלקטרוני כתובת דואר אלקטרוני [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" 
}

תוצאת החזרה

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. כל הזכויות שמורות.