Domen API - Domen ro‘yxatdan o‘tkazish API - ICANN Ro‘yxatga oluvchi API - White Label Domen Service

Start Building with NiceNIC Domen API v2

API access is free fyoki every active NiceNIC user. Yo‘q reseller upgrade is required. Configure sizning API credentials, make a safe test request, then add the domain, DNS, billing, compliance yoki WHMCS wyokikflows sizning application needs.

Setting Auto-Yangilash

Enable yoki disable auto-renewal fyoki up to 100 domains. Yangi plans renew fyoki one yil at a time.

Content-Type application/json
toifa domain
harakat set_auto_renew

So‘rov parametrlari

Parametr nomi Turi Tavsif Misol
domain Satrlik Required. Provide one domain yoki a comma-separated list of up to 100 domains. example.com,example.net
auto_renew Butun son Required. 1 enables va 0 disables auto-renewal fyoki all entries. 1

Javob parametrlar

Parametr nomi Turi Tavsif
results Obyekt[] Each result has domain, code, va msg.
A code of 0 also returns the Boolean auto_renew status.
success_count Butun son Raqam of successful entries, including settings already in effect.
fail_count Butun son Raqam of entries that failed validation yoki could not be saved.

So‘rov namunasi

                                    
{
    curl -g -X POST 'https://api.nicenic.net/v2/?category=domain&action=set_auto_renew&domain={domain}&auto_renew=1'
      -H "Authorization: username:api_secret"
      -H "Content-Type: application/json"
}

Natijani qaytarish

0 OK Muvaffaqiyatli javob
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        "results" : [
            {
                "domain" : "example.com",
                "code" : 0,
                "msg" : "success",
                "auto_renew" : true
            },
            {
                "domain" : "example.net",
                "code" : 404,
                "msg" : "Domain not found"
            }
        ],
        "success_count" : 1,
        "fail_count" : 1        
    }
}
400 Noto‘g‘ri so‘rov
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
    "data" : []
}
Mualliflik huquqi © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Barcha huquqlar himoyalangan.