API Services

With the API, you can engage in domain name registration and account management! Our API supports domain search, registration, renewal, dropcatch, and the use of your own software and servers, among other functions. You can easily configure domain name servers, select renewals, and create folders for your domains.

Domain Registration

User registration domain

Request URL
/api/domain/reg
Request Parameter
Field Parameter Type Required Description
domain ym String Yes domain name to be registered
templete ID mbid Integer No e.g.: 123456
DNS dns String No e.g: ns1.gname-dns.com,ns2.gname-dns.com
Premium amount qian Float No Registration premium domain name amount
Request Demo
{
	"url": "http://api.gname.net/api/domain/reg",
	"Method": "POST",
	"body": {
		"appid": "testappid",
		"dns": "ns1.gname-dns.com,ns2.dngame-dns.com",
		"gntime": 1618998008,
		"mbid": "1234",
		"ym": "gname.com",
		"gntoken": "0A7C4D1EE08E4F59C3FC1DF9C4A748A8"
	}
}
Response Data
Field Parameter Type Description
return code code Integer returned status code
return description msg String description of the return request operation
return data data Float return price of the request operation registration
Response Demo
{
    "code": 1,
    "msg": "submit domain registration successfully, please wait for system processing, frozen $ 9.52,
    "data": 9.52
}


{
    "code": -3,
    "msg": "Sorry,example.co is a premium domain name. Please confirm before proceeding",
    "data": {
        "price": "110.00"
    }
}