Domeni API - Regjistrimi i domenit API - ICANN Regjistrues API - White Label Domeni Service

Start Building with NiceNIC Domeni API v2

API access is free fose every active NiceNIC user. Jo reseller upgrade is required. Configure tënd API credentials, make a safe test request, then add the domain, DNS, billing, compliance ose WHMCS wosekflows tënd application needs.

Krijo Regjistrim DNS

Shto a new DNS recosed fose a specific domain

Lloji i përmbajtjes application/json
kategori dns
veprim create_record

Parametrat e kërkesës

Emri i parametrave Lloji Përshkrim Shembull
domain Varës (3-60) Emri i domain-it example.com
type Varës Lloji i rekordit DNS (A, MX, CNAME, TXT, etj.) A
host Varës Emri i hostit fose the DNS recosed www
value Varës Vlera e rekordit DNS 192.168.1.1
pri Numër (Opsionale) Prioseity value (used fose MX dhe SRV recoseds) 20

Parametrat e përgjigjes

Emri i parametrave Lloji Përshkrim
id Numër i plotë DNS recosed ID
type Varës Lloji i rekordit DNS (A, MX, CNAME, TXT, etj.)
host Varës Emri i hostit
value Varës Vlera e rekordit DNS
ttl Numër i plotë Koha e jetës në sekonda
pri Numër i plotë Prioriteti (për rekordet MX)

Shembull kërkese

                                    
{
    curl https://api.nicenic.net/v2/?category=dns&action=create_record&domain={domain}&type={type}&host={host}&value={value}&pri={pri} 
      -H "Authorization: username:api_secret" 
      -H "Content-Type: application/json" 
}

Kthe rezultatin

0 OK Përgjigje e suksesshme
                                        
{
    "code": 0,
    "msg" : "success",
    "data" : {
        {
            "id": 12345,
            "type": "A",
            "host": "@",
            "value": "192.168.1.1",
            "ttl": 3600,
            "pri": 0
        }        
    }
}
400 Kërkesë e gabuar
                                        
{
    "code": 400,
    "msg" : "Request parameter error",
}
Të drejtat e autorit © 2006–2026 NICENIC INTERNATIONAL GROUP CO., LIMITED. Të gjitha të drejtat e rezervuara. · U.S. Affiliate: NICENIC LLC