1. group
a. add domain to group
b. remove domain from group
c. get domains from group
2. domain
a. delete domain
b. disable domain
c. enable domain
3. record
a. add record
b. remove record
c. enable record
d. disable record
e. get records
4. domain search
No API about add domain yet.
The API is UNSTABLE, It should only be used for testing, any script written now may break in future releases. I hope you can give us feedback!
DNSPod has a simple Restful Web API, auth by cookie and response only json.
Here's some document you need.
API authentication:
by cookie, you can get it from your browser :)
Add & modify record:
PUT /api/domain/
yourdomain.comdata:
sub_domain: Sub-domain, e.g. www, bbs
record_type: one of A, CNAME, URL, TXT, MX, NS, SRV, AAAA
value: record value, e.g. 127.0.0.1
ttl: ttl, default 600
mx: mx priority, optional, just for MX record
area: 0 for default
record_id: optional, when you want modify one record. (Deprecated, Will remove from PUT method soon)
response status code:
200 OK: return record with record_id in a array
403 Forbidden: Permission denied.
406 Not Acceptable: param missing or error
409 Conflict: record conflict with other record
Remove record:
DELETE /api/domain/
yourdomain.com/${record_id}response statue code:
200 OK: successful
403 Forbidden: Permission denied.
May help you.