Example:
curl -X POST https://api.dnspod.com/Domain.Create -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&domain=api2.com&format=json'
Response Example:
JSON:
{ "status": { "code":"1", "message":"Action completed successful", "created_at":"2012-08-29 22:12:35" }, "domain": { "id":"1992403", "punycode":"api2.com", "domain":"api2.com" } }
Global Parameters
offset The offset of the response.Optional parameter.The first domain is numbered as 0.
length The number of domains you want to get on this request.Optional parameter.
group_id The group ID.Only in this group can the domain be in the results if this parameter is set.Optional parameter.
Example:
curl -X POST https://api.dnspod.com/Domain.List -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2014-06-04 21:22:08" }, "info": { "domain_total": 1, "all_total": 1, "mine_total": 1, "share_total": 0, "vip_total": 0, "ismark_total": 0, "pause_total": 0, "error_total": 1, "lock_total": 0, "spam_total": 0, "vip_expire": 0, "share_out_total": 0 }, "domains": [ { "id": 6, "name": "dnspod.com", "grade": "DP_Free", "grade_title": "Free", "status": "enable", "ext_status": "notexist", "records": "3", "group_id": "1", "is_mark": "no", "remark": "", "is_vip": "no", "searchengine_push": "yes", "beian": "no", "created_on": "2014-06-04 16:19:31", "updated_on": "2014-06-04 16:20:05", "ttl": "600", "owner": "yizero@qq.com" } ] }
Example:
curl -X POST https://api.dnspod.com/Domain.Remove -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=1992403'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-12 11:09:31" } }
Example:
curl -X POST https://api.dnspod.com/Domain.Status -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2058967&status=disable'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-12 12:02:04" } }
Example:
curl -X POST https://api.dnspod.com/Domain.Info -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2014-06-04 21:25:21" }, "domain": { "id": "6", "name": "dnspod.com", "punycode": "dnspod.com", "grade": "DP_Free", "grade_title": "Free", "status": "enable", "ext_status": "notexist", "records": "3", "group_id": "1", "is_mark": "no", "remark": false, "is_vip": "no", "searchengine_push": "yes", "beian": "no", "user_id": "730060", "created_on": "2014-06-04 16:19:31", "updated_on": "2014-06-04 16:20:05", "ttl": "600", "owner": "yizero@qq.com" } }
Example:
curl -X POST https://api.dnspod.com/Domain.Log -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2014-06-04 21:31:00" }, "log": [ "There is no domain logs at the moment." ], "info": { "count": 0, "page_size": 500 } }
Example:
curl -X POST https://api.dnspod.com/Domain.Searchenginepush -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079&status=yes'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-18 17:28:44" } }
Example:
curl -X POST https://api.dnspod.com/Domainshare.Transfer -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079&email=yizerowu@dnspod.com'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-18 20:21:33" } }
Example:
curl -X POST https://api.dnspod.com/Domain.Lock -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079&days=3'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-18 20:31:13" }, "lock": { "domain_id": 2059079, "lock_code": "fdd638", "lock_end": "2012-09-21" } }
Example:
curl -X POST https://api.dnspod.com/Domain.Lockstatus -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-18 20:35:04" }, "lock": { "lock_status": "yes", "start_at": "2012-09-18", "end_at": "2012-09-21" } }
Example:
curl -X POST https://api.dnspod.com/Domain.Unlock -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079&lock_code=fdd638'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-18 20:38:58" }, "lock": { "lock_status": "yes", "start_at": "2012-09-18", "end_at": "2012-09-21" } }
Example:
curl -X POST https://api.dnspod.com/Domainalias.List -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-18 21:11:20" }, "alias": [ { "id": "18737", "domain": "dnspodapi.com" } ] }
Example:
curl -X POST https://api.dnspod.com/Domainalias.Create -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079&domain=dnspodapi.com'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-18 21:09:57" }, "alias": { "id": "18737", "punycode": "dnspodapi.com" } }
Example:
curl -X POST https://api.dnspod.com/Domainalias.Remove -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079&alias_id=18737'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-18 21:15:20" } }
Example:
curl -X POST https://api.dnspod.com/Domaingroup.List -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2014-06-04 21:50:38" }, "groups": [ { "group_id": 1, "group_name": "Default Group", "group_type": "system", "size": 1 }, { "group_id": 2, "group_name": "Often Change", "group_type": "system", "size": 0 }, { "group_id": 3, "group_name": "Few Change", "group_type": "system", "size": 0 }, { "group_id": 4, "group_name": "Expiring", "group_type": "system", "size": 0 }, { "group_id": 5, "group_name": "Personal Domain", "group_type": "system", "size": 0 }, { "group_id": 6, "group_name": "Company Domain", "group_type": "system", "size": 0 }, { "group_id": 7, "group_name": "Customer Domain", "group_type": "system", "size": 0 }, { "group_id": 8, "group_name": "Shared To Me", "group_type": "system", "size": 0 } ] }
Example:
curl -X POST https://api.dnspod.com/Domaingroup.List -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&group_name=dnspod'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-18 21:41:00" }, "groups": { "id": "1985" } }
Example:
curl -X POST https://api.dnspod.com/Domaingroup.Modify -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&group_id=1985&group_name=dnspodgroup'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-19 10:25:32" } }
Example:
curl -X POST https://api.dnspod.com/Domaingroup.Remove -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&group_id=1985'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-19 10:45:45" } }
Example:
curl -X POST https://api.dnspod.com/Domain.Changegroup -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079&group_id=1985'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-23 17:33:01" } }
Example:
curl -X POST https://api.dnspod.com/Domain.Ismark -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079&is_mark=yes'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-23 17:42:02" } }
Example:
curl -X POST https://api.dnspod.com/Domain.Remark -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079&remark=这个域名需要备注一下'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-23 17:50:37" } }
Example:
curl -X POST https://api.dnspod.com/Domain.Acquire -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain=api4.com'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-23 18:00:05" }, "emails": [ "support@namecheap.com", "e31d739cb2824a5f80d7b90848a195d8.protect@whoisguard.com" ] }
Example:
curl -X POST https://api.dnspod.com/Domain.Acquiresend -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain=api4.com&email=support@namecheap.com'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-23 18:07:44" } }
Example:
curl -X POST https://api.dnspod.com/Domain.Acquirevalidate -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain=api4.com&code=111000'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2012-09-23 18:12:44" } }
Example:
curl -X POST https://api.dnspod.com/Record.Type -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_grade=DP_Free'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2014-06-06 10:30:26" }, "types": [ "A", "CNAME", "MX", "TXT", "NS", "AAAA", "SRV", "URL", "Framed URL" ] }
Example:
curl -X POST https://api.dnspod.com/Record.Line -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_grade=DP_Free&domain=dnspod.com'
Response Example:
JSON:
{ "status": { "code": "1", "message": "Action completed successful", "created_at": "2014-06-12 15:39:05" }, "lines": { "default": { "name": "Default", "sub_area": { "default": "Default" } }, "africa": { "name": "Africa", "sub_area": { "DZ": "Algeria", "AO": "Angola", "BJ": "Benin", "BW": "Botswana", "BF": "Burkina Faso", "BI": "Burundi", "CM": "Cameroon", "CV": "Cape Verde", "CF": "Central Africa", "TD": "Chad", "KM": "Comoros", "CG": "Congo - Brazzaville", "CD": "Congo, The Democratic Republic Of The", "CI": "Cote D'Ivoire", "DJ": "Djibouti", "EG": "Egypt", "GQ": "Equatorial Guinea", "ER": "Eritrea", "ET": "Ethiopia", "GA": "Gabon", "GM": "Gambia", "GH": "Ghana", "GN": "Guinea", "GW": "Guinea-Bissau", "KE": "Kenya", "LS": "Lesotho", "LR": "Liberia", "LY": "Libya", "MG": "Madagascar", "MW": "Malawi", "ML": "Mali", "MR": "Mauritania", "MU": "Mauritius", "YT": "Mayotte", "MA": "Morocco", "MZ": "Mozambique", "NA": "Namibia", "NE": "Niger", "NG": "Nigeria", "RE": "Reunion", "RW": "Rwanda", "SH": "Saint Helena", "ST": "Sao Tome And Principe", "SN": "Senegal", "SC": "Seychelles", "SL": "Sierra Leone", "SO": "Somalia", "ZA": "South Africa", "SD": "Sudan", "SZ": "Swaziland", "TZ": "Tanzania", "TG": "Togo", "TN": "Tunisia", "UG": "Uganda", "EH": "Western Sahara", "ZM": "Zambia", "ZW": "Zimbabwe" } }, "antartica": { "name": "Antartica", "sub_area": { "AQ": "Antarctica", "BV": "Bouvet Island", "TF": "French Southern Territories", "HM": "Heard And Mc Donald Islands", "GS": "South Georgia And The South Sandwich Islands" } }, "asia": { "name": "Asia", "sub_area": { "AF": "Afghanistan", "AM": "Armenia", "AZ": "Azerbaijan", "BH": "Bahrain", "BD": "Bangladesh", "BT": "Bhutan", "IO": "British Indian Ocean Territory", "BN": "Brunei Darussalam", "KH": "Cambodia", "CN": "China", "CX": "Christmas Island", "CC": "Cocos (Keeling) Islands", "CY": "Cyprus", "GE": "Georgia", "HK": "Hong Kong", "IN": "India", "ID": "Indonesia", "IR": "Iran, Islamic Republic Of", "IQ": "Iraq", "IL": "Israel", "JP": "Japan", "JO": "Jordan", "KZ": "Kazakhstan", "KP": "North Korea", "KR": "Korea", "KW": "Kuwait", "KG": "Kyrgyzstan", "LA": "Lao", "LB": "Lebanon", "MO": "Macao", "MY": "Malaysia", "MV": "Maldives", "MN": "Mongolia", "MM": "Myanmar", "NP": "Nepal", "OM": "Oman", "PK": "Pakistan", "PS": "Palestinian Territory", "PH": "Philippines", "QA": "Qatar", "SA": "Saudi Arabia", "SG": "Singapore", "LK": "Sri Lanka", "SY": "Syria", "TW": "Taiwan", "TJ": "Tajikistan", "TH": "Thailand", "TL": "Timor-Leste", "TR": "Turkey", "TM": "Turkmenistan", "AE": "United Arab Emirates", "UZ": "Uzbekistan", "VN": "Viet Nam", "YE": "Yemen" } }, "europe": { "name": "Europe", "sub_area": { "AX": "Aland Islands", "AL": "Albania", "AD": "Andorra", "AT": "Austria", "BY": "Belarus", "BE": "Belgium", "BA": "Bosnia And Herzegovina", "BG": "Bulgaria", "HR": "Croatia", "CZ": "Czech", "DK": "Denmark", "EE": "Estonia", "EU": "European Union", "FO": "Faroe Islands", "FI": "Finland", "FR": "France", "DE": "Germany", "GI": "Gibraltar", "GR": "Greece", "GG": "Guernsey", "VA": "Holy See", "HU": "Hungary", "IS": "Iceland", "IE": "Ireland", "IM": "Isle Of Man", "IT": "Italy", "JE": "Jersey", "CS": "Kosovo", "LV": "Latvia", "LI": "Liechtenstein", "LT": "Lithuania", "LU": "Luxembourg", "MK": "Macedonia", "MT": "Malta", "MD": "Moldova", "MC": "Monaco", "ME": "Montenegro", "NL": "Netherlands", "NO": "Norway", "PL": "Poland", "PT": "Portugal", "RO": "Romania", "RU": "Russia", "SM": "San Marino", "RS": "Serbia", "SK": "Slovakia", "SI": "Slovenia", "ES": "Spain", "SJ": "Svalbard & Jan Mayen Islands", "SE": "Sweden", "CH": "Switzerland", "UA": "Ukraine", "GB": "United Kingdom" } }, "north_america": { "name": "North America", "sub_area": { "AI": "Anguilla", "AG": "Antigua And Barbuda", "AW": "Aruba", "BS": "Bahamas", "BB": "Barbados", "BZ": "Belize", "BM": "Bermuda", "BQ": "Bonaire, Saint Eustatius And Saba", "CA": "Canada", "KY": "Cayman Islands", "CR": "Costa Rica", "CU": "Cuba", "CW": "Curacao", "DM": "Dominica", "DO": "Dominican Republic", "SV": "El Salvador", "GL": "Greenland", "GD": "Grenada", "GP": "Guadeloupe", "GT": "Guatemala", "HT": "Haiti", "HN": "Honduras", "JM": "Jamaica", "MQ": "Martinique", "MX": "Mexico", "MS": "Montserrat", "AN": "Netherlands Antilles", "NI": "Nicaragua", "PA": "Panama", "PR": "Puerto Rico", "BL": "Saint Barthelemy", "KN": "Saint Kitts And Nevis", "LC": "Saint Lucia", "MF": "Saint Martin", "PM": "Saint Pierre And Miquelon", "VC": "Saint Vincent And The Grenadines", "SX": "Sint Maarten", "TT": "Trinidad And Tobago", "TC": "Turks And Caicos Islands", "US": "United States", "UM": "United States Minor Outlying Islands", "VG": "Virgin Islands, British", "VI": "Virgin Islands, U.S." } }, "oceania": { "name": "Oceania", "sub_area": { "AS": "American Samoa", "AP": "Asia Pacific", "AU": "Australia", "CK": "Cook Islands", "FJ": "Fiji", "PF": "French Polynesia", "GU": "Guam", "KI": "Kiribati", "MH": "Marshall Islands", "FM": "Micronesia, Federated States Of", "NR": "Nauru", "NC": "New Caledonia", "NZ": "New Zealand", "NU": "Niue", "NF": "Norfolk Island", "MP": "Northern Mariana Islands", "PW": "Palau", "PG": "Papua New Guinea", "PN": "Pitcairn", "WS": "Samoa", "SB": "Solomon Islands", "TK": "Tokelau", "TO": "Tonga", "TV": "Tuvalu", "VU": "Vanuatu", "WF": "Wallis And Futuna Islands" } }, "south_america": { "name": "South American", "sub_area": { "AR": "Argentina", "BO": "Bolivia", "BR": "Brazil", "CL": "Chile", "CO": "Colombia", "EC": "Ecuador", "FK": "Falkland Islands (Malvinas)", "GF": "French Guiana", "GY": "Guyana", "PY": "Paraguay", "PE": "Peru", "SR": "Suriname", "UY": "Uruguay", "VE": "Venezuela" } }, "search_engine": { "name": "Search Engine", "sub_area": { "search_engine": "Search Engine" } } } }