域名
域名市场
支持
Copyright © 2002-2024 Dynadot LLC. All rights reserved.
返回
域名
域API命令列表
我们的API是专为效率而构建的高级域名管理和获取工具包。在Dynadot平台上,我们提供了50多个命令来设置,管理,注册和竞标,您可以在任何API软件中完全控制您的帐户和域设置。我们的域API可用于所有帐户,所以现在就开始吧!
我们的高级域API请求发送到以下URL:
https://api.dynadot.com/api3.xml
为了安全起见,请求应通过https(安全套接字)发送。一次只能处理一个请求,请等待当前请求完成后再发送另一个请求。请求应具有以下两个参数:'Key'和'Command'。可以单击命令来查看与其相关的参数。
我们的高级域名API将以 XML 格式返回结果。您收到的响应应包含以下2个或3个字段之一:
如要发送搜索命令,则需包含下面参数:
搜索示例
https://api.dynadot.com/api3.xml?key=mykey&command=search&domain0=mydomain.com&domain1=mydomain.net&show_price=1¤cy=USD
<Results> <SearchResponse> <SearchHeader> <SuccessCode>0</SuccessCode> <DomainName>mydomain.com</DomainName> <Available>yes</Available> <Price>77.00 in USD</Price> </SearchHeader> </SearchResponse> <SearchResponse> <SearchHeader> <SuccessCode>0</SuccessCode> <DomainName>mydomain.net</DomainName> <Available>yes</Available> <Price>44.00 in USD</Price> </SearchHeader> </SearchResponse> </Results>
https://api.dynadot.com/api3.json?key=mykey&command=search&domain0=mydomain.com&domain1=mydomain.net&show_price=1¤cy=USD
{ "SearchResponse":{ "ResponseCode":"0", "SearchResults":[ { "DomainName":"mydomain.com", "Available":"yes", "Price":"77.00 in USD" }, { "DomainName":"mydomain.net", "Available":"yes", "Price":"44.00 in USD" } ] } }
发送注册命令后将创建并处理注册订单。您账户中须由足够余额支付订单。如果发送注册命令,须包含下列参数:
注册示例
https://api.dynadot.com/api3.xml?key=mykey&command=register&domain=domain1.net&duration=3¤cy=USD
<RegisterResponse> <RegisterHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </RegisterHeader> <RegisterContent> <Expiration>1458379145266</Expiration> </RegisterContent> </RegisterResponse>
https://api.dynadot.com/api3.json?key=mykey&command=register&domain=domain1.net&duration=3¤cy=USD
{ "RegisterResponse":{ "ResponseCode":"0", "Status":"success", "DomainName":"domain1.net", "Expiration":"1458379145266" } }
调用删除(delete)命令将删除仍然处于宽限期中的域名。注册费将退回至您的账户余额。已续期或已移动至新账户的域名不得通过API进行删除。如果调用删除命令,应包括以下参数:
删除示例
https://api.dynadot.com/api3.xml?key=mykey&command=delete&domain=domain1.com
<DeleteResponse> <DeleteHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </DeleteHeader> </DeleteResponse>
https://api.dynadot.com/api3.json?key=mykey&command=delete&domain=domain1.com
{ "DeleteResponse":{ "ResponseCode":"0", "Status":"success", "DomainName":"domain1.com", } }
调用续期(renew)命令将创建和处理续期订单。您必须具备足够的账户余额用于该订单。如果调用续期命令,应包括以下参数:
续费示例
https://api.dynadot.com/api3.xml?key=mykey&domain=domian1.com&command=renew&duration=1¤cy=USD&coupon=testcoupon
<RenewResponse> <RenewHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </RenewHeader> <RenewContent> <Expiration>73984579834</Expiration> </RenewContent> </RenewResponse>
https://api.dynadot.com/api3.json?key=mykey&domain=domian1.com&command=renew&duration=1¤cy=USD&coupon=testcoupon
{ "RenewResponse":{ "ResponseCode":"0", "Status":"success", "DomainName":"domian1.com", "Expiration":"73984579834" } }
调用push命令将创建和处理一个push订单。您必须为订单解锁您的域名和帐户。接收人账户必须拒绝/接受域名才能完成订单。如果调用push命令,应包含以下参数:
Push例子
https://api.dynadot.com/api3.xml?key=mykey&command=push&domain=domian1.com&receiver_push_username=username¤cy=USD
<PushResponse> <PushHeader> <SuccessCode>0</SuccessCode> <Status>order created</Status> </PushHeader> </PushResponse>
https://api.dynadot.com/api3.json?key=mykey&command=push&domain=domian1.com&receiver_push_username=username¤cy=USD
{ "PushResponse":{ "ResponseCode":"0", "Status":"order created" } }
调用转移命令将创建和处理转移订单。部分tld可能会要求失去域名的注册人确认后才能完成订单。如果调用转移命令,应包括以下参数:
转移例子
https://api.dynadot.com/api3.xml?key=mykey&command=transfer&domain=domian1.com&auth=testauth¤cy=USD&coupon=testcoupon
<TransferResponse> <TransferHeader> <SuccessCode>0</SuccessCode> <Status>order created</Status> </TransferHeader> </TransferResponse>
https://api.dynadot.com/api3.json?key=mykey&command=transfer&domain=domian1.com&auth=testauth¤cy=USD&coupon=testcoupon
{ "TransferResponse":{ "ResponseCode":"0", "Status":"order created", "DomainName":"domian1.com" } }
调用批量注册命令将创建和处理注册订单。您必须有足够的账户余额来支付订单。如果调用批量注册命令,则应包括以下参数:
批量注册示例
https://api.dynadot.com/api3.xml?key=mykey&command=bulk_register&domain0=domain0.com&domain1=domain1.com¤cy=USD
<?xml version="1.0" encoding="UTF-8"?> <BulkRegisterResponse> <BulkRegisterHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </BulkRegisterHeader> <BulkRegisterContent> <BulkRegister> <RegisterResult> <DomainName>domain0.com</DomainName> <Expiration>1234567890</Expiration> <Result>success</Result> <Message>-</Message> </RegisterResult> <RegisterResult> <DomainName>domain1.com</DomainName> <Expiration>-</Expiration> <Result>error</Result> <Message>not_available</Message> </RegisterResult> </BulkRegister> </BulkRegisterContent> </BulkRegisterResponse>
https://api.dynadot.com/api3.json?key=mykey&command=bulk_register&domain0=domain0.com&domain1=domain1.com¤cy=USD
{ "BulkRegisterResponse": { "ResponseCode": 0, "Status": "success", "BulkRegister": [ { "DomainName": "domain0.com", "Expiration": "1234567890", "Result": "success", "Message": "-" }, { "DomainName": "domain1.com", "Expiration": "-", "Result": "error", "Message": "not_available" } ] } }
此命令仅适用于XML和JSON格式:
域名信息示例
https://api.dynadot.com/api3.xml?key=mykey&command=domain_info&domain=domain1.com
<?xml version="1.0" encoding="UTF-8"?> <DomainInfoResponse> <DomainInfoHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </DomainInfoHeader> <DomainInfoContent> <Domain> <Name>domain1.com</Name> <Expiration>1361430589062</Expiration> <Registration>1234567890123</Registration> <NameServerSettings> <Type>Dynadot Parking</Type> <WithAds>Yes</WithAds> </NameServerSettings> <Whois> <Registrant> <ContactId>0</ContactId> </Registrant> <Admin> <ContactId>0</ContactId> </Admin> <Technical> <ContactId>0</ContactId> </Technical> <Billing> <ContactId>0</ContactId> </Billing> </Whois> <Locked>yes</Locked> <Disabled>no</Disabled> <UdrpLocked>no</UdrpLocked> <RegistrantUnverified>no</RegistrantUnverified> <Hold>no</Hold> <Privacy>none</Privacy> <isForSale>yes</isForSale> <RenewOption>no renew option</RenewOption> <Note/> <Folder> <FolderId>-1</FolderId> <FolderName>(no folder)</FolderName> </Folder> </Domain> </DomainInfoContent> </DomainInfoResponse>
https://api.dynadot.com/api3.json?key=mykey&command=domain_info&domain=domain1.com
{ "DomainInfoResponse": { "ResponseCode": 0, "Status": "success", "DomainInfo": { "Name": "domain1.com", "Expiration": "1361430589062", "Registration": "1234567890123", "NameServerSettings": { "Type": "Dynadot Parking", "WithAds": "Yes" }, "Whois": { "Registrant": { "ContactId": "0" }, "Admin": { "ContactId": "0" }, "Technical": { "ContactId": "0" }, "Billing": { "ContactId": "0" } }, "Locked": "yes", "Disabled": "no", "UdrpLocked": "no", "RegistrantUnverified": "no", "Hold": "no", "Privacy": "none", "isForSale": "yes", "RenewOption": "no renew option", "Note": "", "Folder": { "FolderId": "-1", "FolderName": "(no folder)" } } } }
如果设置Whois命令,则应包含以下参数:
设置Whois示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_whois&domain=domain4.com®istrant_contact=0&admin_contact=0&technical_contact=0&billing_contact=0
<SetWhoisResponse> <SetWhoisHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetWhoisHeader> </SetWhoisResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_whois&domain=domain4.com®istrant_contact=0&admin_contact=0&technical_contact=0&billing_contact=0
{ "SetWhoisResponse":{ "ResponseCode":"0", "Status":"success" } }
如要呼叫设置域名服务器命令,应包含下列参数:
设置域名服务器示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_ns&domain=domain1.com,domain2.com&ns0=ns1.hostns.com&ns1=ns2.hostns.com
<SetNsResponse> <SetNsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetNsHeader> </SetNsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_ns&domain=domain1.com,domain2.com&ns0=ns1.hostns.com&ns1=ns2.hostns.com
{ "SetNsResponse":{ "ResponseCode":"0", "Status":"success" } }
如设置停靠命令,则下列参数应包含在内:
设置域名停放示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_parking&domain=domain1.com&with_ads=no
<SetParkingResponse> <SetParkingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetParkingHeader> </SetParkingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_parking&domain=domain1.com&with_ads=no
{ "SetParkingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置转发命令,则须包含下列参数
设置转发示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_forwarding&forward_url=http%3A%2F%2Fwww.mydomain.com&domain=domain1.com,domain2.com
<SetForwardingResponse> <SetForwardingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetForwardingHeader> </SetForwardingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_forwarding&forward_url=http%3A%2F%2Fwww.mydomain.com&domain=domain1.com,domain2.com
{ "SetForwardingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置隐身命令,则须包含下列参数:
设置隐身示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_stealth&domain=domain1.com&stealth_title=obama's shop&stealth_url=http%3A%2F%2Fwww.obamashop.com
<SetStealthResponse> <SetStealthHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetStealthHeader> </SetStealthResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_stealth&domain=domain1.com&stealth_title=obama's shop&stealth_url=http%3A%2F%2Fwww.obamashop.com
{ "SetStealthResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置托管命令,则须包含下列参数:
设置托管示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_hosting&domain=domain8.com&hosting_type=advanced&mobile_view_on=yes
<SetHostingResponse> <SetHostingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetHostingHeader> </SetHostingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_hosting&domain=domain8.com&hosting_type=advanced&mobile_view_on=yes
{ "SetHostingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果调用设置DNS2命令,应包含以下参数:
请注意,调用set DNS2命令将覆盖当前DNS设置。
设置DNS2示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_dns2&domain=domain1.com&main_record_type0=aaaa&main_record0=0:0:0:0:0:0:0:1&main_record_type1=mx&main_record1=mail1.myisp.com&main_recordx1=0&subdomain0=www&sub_record_type0=a&sub_record0=192.168.1.1
<?xml version="1.0" encoding="UTF-8"?> <SetDnsResponse> <SetDnsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetDnsHeader> </SetDnsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_dns2&domain=domain1.com&main_record_type0=aaaa&main_record0=0:0:0:0:0:0:0:1&main_record_type1=mx&main_record1=mail1.myisp.com&main_recordx1=0&subdomain0=www&sub_record_type0=a&sub_record0=192.168.1.1
{ "SetDnsResponse": { "ResponseCode": 0, "Status": "success" } }
如果发送设置电子邮件转发命令,则须包含下列参数:
设置 电子邮件转发示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_email_forward&domain=domain1.com&forward_type=forward&username0=peter&[email protected]
<SetEmailForwardingResponse> <SetEmailForwardingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetEmailForwardingHeader> </SetEmailForwardingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_email_forward&domain=domain1.com&forward_type=forward&username0=peter&[email protected]
{ "SetEmailForwardingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置清除域名设置命令,则须包含下列参数:
设置清除域名设置示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_clear_domain_setting&domain=domain1.com&service=nameservers
<SetClearDomainSettingResponse> <SetClearDomainSettingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetClearDomainSettingHeader> </SetClearDomainSettingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_clear_domain_setting&domain=domain1.com&service=nameservers
{ "SetClearDomainSettingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置文件夹命令,则须包含下列参数:
设置文件夹示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_folder&domain=domian1.com&folder=folder1
<SetFolderResponse> <SetFolderHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetFolderHeader> </SetFolderResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_folder&domain=domian1.com&folder=folder1
{ "SetFolderResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置续费选项命令,则须包含下列参数:
设置续费选项示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_renew_option&domain=domain1.com&renew_option=auto
<SetRenewOptionResponse> <SetRenewOptionHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetRenewOptionHeader> </SetRenewOptionResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_renew_option&domain=domain1.com&renew_option=auto
{ "SetRenewOptionResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置注释命令,则须包含下列参数:
设置注释示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_note&domain=domain1.com¬e=Do not modify any information
<SetNoteResponse> <SetNoteHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetNoteHeader> </SetNoteResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_note&domain=domain1.com¬e=Do not modify any information
{ "SetNoteResponse":{ "ResponseCode":"0", "Status":"success" } }
如果调用设置客户ID命令,则应包含以下参数:
客户ID示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_customer_id&domain=domain1.com,domain2.com&customer_id=123456
<SetCustomerIdResponse> <SetCustomerIdHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </SetCustomerIdHeader> <SetCustomerIdContent> <SetCustomerIdSuccess> <content> <Domain>domain1.com</Domain> <CustomerId>123456</CustomerId> </content> <content> <Domain>domain2.com</Domain> <CustomerId>123456</CustomerId> </content> </SetCustomerIdSuccess> </SetCustomerIdContent> </SetCustomerIdResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_customer_id&domain=domain1.com,domain2.com&customer_id=123456
{ "SetCustomerIdResponse": { "ResponseCode": 0, "Status": "success", "SetCustomerIdSuccess": [ { "Domain": "domain1.com", "CustomerId": 123456 }, { "Domain": "domain2.com", "CustomerId": 123456 } ] } }
如果发送设置隐私保护命令,则须包含下列参数:
设置隐私保护示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_privacy&domain=domain1.com&option=off
<SetPrivacyResponse> <SetPrivacyHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetPrivacyHeader> </SetPrivacyResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_privacy&domain=domain1.com&option=off
{ "SetPrivacyResponse":{ "ResponseCode":"0", "Status":"success" } }
此功能仅在XML和JSON格式中可用:
TLD价格示例
https://api.dynadot.com/api3.xml?key=0&command=tld_price¤cy=USD
<?xml version="1.0" encoding="UTF-8"?> <TldPriceResponse> <TldPriceResponseHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> <PriceLevel>Regular Pricing</PriceLevel> <Currency>USD</Currency> </TldPriceResponseHeader> <TldPriceContent> <TldContent> <Tld>.com</Tld> <Usage>Usage</Usage> <Price> <Unit>(Price/1 year)</Unit> <Register>99.00</Register> <Renew>60.00</Renew> <Transfer>92.00</Transfer> </Price> <Privacy>Yes</Privacy> <GracePeriod> <Unit>(Grace Period/days)</Unit> <Renew>40</Renew> <Delete>5</Delete> </GracePeriod> <IDN>Yes</IDN> <Restrictions>--</Restrictions> </TldContent> </TldPriceContent> </TldPriceResponse>
https://api.dynadot.com/api3.json?key=0&command=tld_price¤cy=USD
{ "TldPriceResponse": { "ResponseCode": 0, "Status": "success", "PriceLevel": "Regular Pricing", "Currency": "USD", "TldPrice": [ { "Tld": ".com", "Usage": "Usage", "Price": { "Unit": "(Price/1 year)", "Register": "99.00", "Renew": "60.00", "Transfer": "92.00" }, "Privacy": "Yes", "GracePeriod": { "Unit": "(Grace Period/days)", "Renew": "40", "Delete": "5" }, "IDN": "Yes", "Restrictions": "--" } ] } }
此功能仅在XML和JSON格式中可用:
列出域名示例
https://api.dynadot.com/api3.xml?key=mykey&command=list_domain
<?xml version="1.0" encoding="UTF-8"?> <ListDomainInfoResponse> <ListDomainInfoHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </ListDomainInfoHeader> <ListDomainInfoContent> <DomainInfoList> <DomainInfo> <Domain> <Name>domain-exp140.com</Name> <Expiration>1361430589062</Expiration> <Registration>1234567890123</Registration> <NameServerSettings> <Type>Dynadot Parking</Type> <WithAds>Yes</WithAds> </NameServerSettings> <Whois> <Registrant> <ContactId>0</ContactId> </Registrant> <Admin> <ContactId>0</ContactId> </Admin> <Technical> <ContactId>0</ContactId> </Technical> <Billing> <ContactId>0</ContactId> </Billing> </Whois> <Locked>yes</Locked> <Disabled>no</Disabled> <UdrpLocked>no</UdrpLocked> <RegistrantUnverified>no</RegistrantUnverified> <Hold>no</Hold> <Privacy>none</Privacy> <isForSale>no</isForSale> <RenewOption>no renew option</RenewOption> <Note/> <Folder> <FolderId>-1</FolderId> <FolderName>(no folder)</FolderName> </Folder> </Domain> <Domain> <Name>domain-exp141.com</Name> <Expiration>1361430589062</Expiration> <Registration>1234567890123</Registration> <NameServerSettings> <Type>Dynadot Parking</Type> <WithAds>Yes</WithAds> </NameServerSettings> <Whois> <Registrant> <ContactId>1</ContactId> </Registrant> <Admin> <ContactId>2</ContactId> </Admin> <Technical> <ContactId>3</ContactId> </Technical> <Billing> <ContactId>4</ContactId> </Billing> </Whois> <Locked>yes</Locked> <Disabled>no</Disabled> <UdrpLocked>no</UdrpLocked> <RegistrantUnverified>no</RegistrantUnverified> <Hold>no</Hold> <Privacy>none</Privacy> <isForSale>no</isForSale> <RenewOption>no renew option</RenewOption> <Note/> <Folder> <FolderId>-1</FolderId> <FolderName>(no folder)</FolderName> </Folder> </Domain> </DomainInfo> </DomainInfoList> </ListDomainInfoContent> </ListDomainInfoResponse>
https://api.dynadot.com/api3.json?key=mykey&command=list_domain
{ "ListDomainInfoResponse": { "ResponseCode": 0, "Status": "success", "MainDomains": [ { "Name": "domain-exp140.com", "Expiration": "1361430589062", "Registration": "1234567890123", "NameServerSettings": { "Type": "Dynadot Parking", "WithAds": "Yes" }, "Whois": { "Registrant": { "ContactId": "0" }, "Admin": { "ContactId": "0" }, "Technical": { "ContactId": "0" }, "Billing": { "ContactId": "0" } }, "Locked": "yes", "Disabled": "no", "UdrpLocked": "no", "RegistrantUnverified": "no", "Hold": "no", "Privacy": "none", "isForSale": "no", "RenewOption": "no renew option", "Note": "", "Folder": { "FolderId": "-1", "FolderName": "(no folder)" } }, { "Name": "domain-exp141.com", "Expiration": "1361430589062", "Registration": "1234567890123", "NameServerSettings": { "Type": "Dynadot Parking", "WithAds": "Yes" }, "Whois": { "Registrant": { "ContactId": "1" }, "Admin": { "ContactId": "2" }, "Technical": { "ContactId": "3" }, "Billing": { "ContactId": "4" } }, "Locked": "yes", "Disabled": "no", "UdrpLocked": "no", "RegistrantUnverified": "no", "Hold": "no", "Privacy": "none", "isForSale": "no", "RenewOption": "no renew option", "Note": "", "Folder": { "FolderId": "-1", "FolderName": "(no folder)" } } ] } }
如果发送创建联系方式命令,则须包含下列参数:
创建联系方式示例
https://api.dynadot.com/api3.xml?key=mykey&command=create_contact&name=Webb&[email protected]&phonenum=8662623399&phonecc=1&address1=PO Box 345&city=San Mateo&state=America&zip=94401&country=US
<CreateContactResponse> <CreateContactHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </CreateContactHeader> <CreateContactContent> <ContactId>1234</ContactId> </CreateContactContent> </CreateContactResponse>
https://api.dynadot.com/api3.json?key=mykey&command=create_contact&name=Webb&[email protected]&phonenum=8662623399&phonecc=1&address1=PO Box 345&city=San Mateo&state=America&zip=94401&country=US
{ "CreateContactResponse":{ "ResponseCode":"0", "Status":"success", "CreateContactContent":{ "ContactId":"0" } } }
如果发送遍及联系方式命令,则须包含下列参数:
https://api.dynadot.com/api3.xml?key=mykey&command=edit_contact&contact_id=0&name=Webb&[email protected]&phonenum=8662623399&phonecc=1&address1=PO Box 345&city=San Mateo&state=U.S&zip=94401&country=US
<?xml version="1.0" encoding="UTF-8"?> <EditContactResponse> <EditContactHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </EditContactHeader> <EditContactContent> <ContactId>0</ContactId> </EditContactContent> </EditContactResponse>
https://api.dynadot.com/api3.html?key=mykey&command=edit_contact&contact_id=0&name=Webb&[email protected]&phonenum=8662623399&phonecc=1&address1=PO Box 345&city=San Mateo&state=U.S&zip=94401&country=US
ok, success, ,
https://api.dynadot.com/api3.json?key=mykey&command=edit_contact&contact_id=0&name=Webb&[email protected]&phonenum=8662623399&phonecc=1&address1=PO Box 345&city=San Mateo&state=U.S&zip=94401&country=US
{ "EditContactResponse": { "ResponseCode": "0", "Status": "success", "EditContactContent": { "ContactId": "0" } } }
如果调用设置联系人欧盟设置命令,则应包括以下参数:
设置联系人欧盟设置示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_contact_eu_setting&contact_id=0&country_of_citizenship=AT
<?xml version="1.0" encoding="UTF-8"?> <SetContactEUSettingResponse> <SetContactEUSettingHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </SetContactEUSettingHeader> <SetContactEUSettingContent> <ContactId>0</ContactId> </SetContactEUSettingContent> </SetContactEUSettingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_contact_eu_setting&contact_id=0&country_of_citizenship=AT
{ "SetContactEUSettingResponse": { "ResponseCode: ": "0", "Status": "Success", "SetContactEUSettingContent": { "ContactId: ": "0" } } }
如果调用设置联系人lv命令,应包括以下参数:
设置联系LV设置示例
https://api.dynadot.com/api3.csv?key=mykey&command=set_contact_lv_setting&contact_id=0®istration_number=test_reg_number&vat_number=test_vat_number
ok,success,0
https://api.dynadot.com/api3.xml?key=mykey&command=set_contact_lv_setting&contact_id=0®istration_number=test_reg_number&vat_number=test_vat_number
<?xml version="1.0" encoding="UTF-8"?> <SetContactLvSettingResponse> <SetContactLvSettingHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </SetContactLvSettingHeader> <SetContactLvSettingContent> <ContactId>0</ContactId> </SetContactLvSettingContent> </SetContactLvSettingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_contact_lv_setting&contact_id=0®istration_number=test_reg_number&vat_number=test_vat_number
{ "SetContactLvSettingResponse": { "ResponseCode": 0, "Status": "success", "SetContactLvSettingContent": { "ContactId: ": "0" } } }
如果发送删除联系方式命令,则须包含下列参数:
删除联系方式示例
https://api.dynadot.com/api3.xml?key=mykey&command=delete_contact&contact_id=0
<DeleteContactResponse> <DeleteContactHeader> <SuccessCode>-1</SuccessCode> <Status>error</Status> <Error>cannot delete these contacts (Jack Slater). Because they are in use.</Error> </DeleteContactHeader> </DeleteContactResponse>
https://api.dynadot.com/api3.json?key=mykey&command=delete_contact&contact_id=0
{ "DeleteContactResponse":{ "ResponseCode":"0", "Status":"success" } }
此命令仅适用于XML和JSON格式:
联系方式列表示例
https://api.dynadot.com/api3.xml?key=mykey&command=contact_list
<?xml version="1.0" encoding="UTF-8"?> <ContactListResponse> <ContactListHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </ContactListHeader> <ContactListContent> <ContactList> <Contact> <ContactId>0</ContactId> <Organization/> <Name>Jack Slater</Name> <Email>[email protected]</Email> <PhoneCc>1</PhoneCc> <PhoneNum>555.555.5233</PhoneNum> <FaxCc/> <FaxNum/> <Address1>1 Free Way</Address1> <Address2/> <City>Los Angeles</City> <State>CA</State> <ZipCode>90068</ZipCode> <Country>US</Country> <GtldVerified>no</GtldVerified> </Contact> <Contact> <ContactId>1</ContactId> <Organization/> <Name>John tester</Name> <Email>[email protected]</Email> <PhoneCc>1</PhoneCc> <PhoneNum>123.456.7890</PhoneNum> <FaxCc>1</FaxCc> <FaxNum>123.456.7890</FaxNum> <Address1>high Way first</Address1> <Address2/> <City>San Francisco</City> <State>CA</State> <ZipCode>90068</ZipCode> <Country>US</Country> <GtldVerified>yes</GtldVerified> </Contact> </ContactList> </ContactListContent> </ContactListResponse>
https://api.dynadot.com/api3.json?key=mykey&command=contact_list
{ "ContactListResponse": { "ResponseCode": 0, "Status": "success", "ContactList": [ { "ContactId": "0", "Organization": "", "Name": "Jack Slater", "Email": "[email protected]", "PhoneCc": "1", "PhoneNum": "555.555.5233", "FaxCc": "", "FaxNum": "", "Address1": "1 Free Way", "Address2": "", "City": "Los Angeles", "State": "CA", "ZipCode": "90068", "Country": "US", "GtldVerified": "no" }, { "ContactId": "1", "Organization": "", "Name": "John tester", "Email": "[email protected]", "PhoneCc": "1", "PhoneNum": "123.456.7890", "FaxCc": "1", "FaxNum": "123.456.7890", "Address1": "high Way first", "Address2": "", "City": "San Francisco", "State": "CA", "ZipCode": "90068", "Country": "US", "GtldVerified": "yes" } ] } }
此命令仅适用于XML和JSON格式:
获取联络人示例
https://api.dynadot.com/api3.xml?key=mykey&command=get_contact&contact_id=10000
<?xml version="1.0" encoding="UTF-8"?> <GetContactResponse> <GetContactHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </GetContactHeader> <GetContactContent> <GetContact> <Contact> <ContactId>12345</ContactId> <Organization>org</Organization> <Name>name</Name> <Email>[email protected]</Email> <PhoneCc>1</PhoneCc> <PhoneNum>555.555.5233</PhoneNum> <FaxCc/> <FaxNum/> <Address1>address1</Address1> <Address2>address2</Address2> <City>city</City> <State>state</State> <ZipCode>zipcode</ZipCode> <Country>country</Country> <GtldVerified>no</GtldVerified> </Contact> </GetContact> </GetContactContent> </GetContactResponse>
https://api.dynadot.com/api3.json?key=mykey&command=get_contact&contact_id=10000
{ "GetContactResponse": { "ResponseCode": 0, "Status": "success", "GetContact": { "ContactId": "12345", "Organization": "org", "Name": "name", "Email": "[email protected]", "PhoneCc": "1", "PhoneNum": "555.555.5233", "FaxCc": "", "FaxNum": "", "Address1": "address1", "Address2": "address2", "City": "city", "State": "state", "ZipCode": "zipcode", "Country": "country", "GtldVerified": "no" } } }
如果调用获取域名服务器命令,则应包含以下参数:
获取域名服务器示例
https://api.dynadot.com/api3.html?key=mykey&command=get_ns&domain=mydomain.com
<GetNsResponse> <GetNsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </GetNsHeader> <NsContent> <Host>ns1.mydomain.com</Host> <Host>ns2.mydomain.com</Host> </NsContent> </GetNsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=get_ns&domain=mydomain.com
{ "GetNsResponse":{ "ResponseCode":"0", "Status":"success", "NsContent":{ "Host":"ns1.mydomain.com", "Host":"ns2.mydomain.com" } } }
若呼叫添加域名服务器命令,则需包含以下参数:
添加域名服务器示例
https://api.dynadot.com/api3.xml?key=mykey&command=add_ns&host=ns1.mydomain.com
<AddNsResponse> <AddNsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </AddNsHeader> <AddNsContent> <Server> <Host>ns1.mydomain.com</Host> <ServerId>0</ServerId> </Server> </AddNsContent> </AddNsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=add_ns&host=ns1.mydomain.com
{ "AddNsResponse":{ "ResponseCode":"0", "Status":"success", "AddNsContent":{ "Server":{ "Host":"ns1.mydomain.com", "ServerId":"0" } } } }
如果呼叫注册域名服务器命令,则应包含下列参数:
注册域名服务器示例
https://api.dynadot.com/api3.xml?key=mykey&command=register_ns&host=domain1.com&ip=192.168.1.1
<RegisterNsResponse> <RegisterNsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </RegisterNsHeader> <RegisterNsContent> <Server> <Host>domain1.com</Host> <ServerId>0</ServerId> </Server> </RegisterNsContent> </RegisterNsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=register_ns&host=domain1.com&ip=192.168.1.1
{ "RegisterNsResponse":{ "ResponseCode":"0", "Status":"success", "RegisterNsContent":{ "Server":{ "Host":"ndomain1.com", "ServerId":"0" } } } }
若呼叫设置域名服务器IP命令,则应包含以下参数:
设置域名服务器IP示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_ns_ip&server_id=1&ip0=192.168.1.1
<SetNsIpResponse> <SetNsIpHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetNsIpHeader> </SetNsIpResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_ns_ip&server_id=1&ip0=192.168.1.1
{ "SetNsIpResponse":{ "ResponseCode":"0", "Status":"success" } }
如果呼叫删除域名服务器命令,则应包含下列参数:
删除域名服务器示例
https://api.dynadot.com/api3.xml?key=mykey&command=delete_ns&server_id=0
<DeleteNsResponse> <DeleteNsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </DeleteNsHeader> </DeleteNsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=delete_ns&server_id=0
{ "DeleteNsResponse":{ "ResponseCode":"0", "Status":"success" } }
如果通过域命令调用删除域名服务器,则应包括以下参数:
按示例域名删除域名服务器
https://api.dynadot.com/api3.xml?key=mykey&command=delete_ns_by_domain&server_domain=ns1.testnameserver.com
<DeleteNsResponse> <DeleteNsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </DeleteNsHeader> </DeleteNsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=delete_ns_by_domain&server_domain=ns1.testnameserver.com
{ "DeleteNsResponse":{ "ResponseCode":"0", "Status":"success" } }
此命令仅适用于XML和JSON格式:
服务器列表示例
https://api.dynadot.com/api3.xml?key=mykey&command=server_list
<?xml version="1.0" encoding="UTF-8"?> <ServerListResponse> <ServerListHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </ServerListHeader> <ServerListContent> <NameServerList> <List> <Server> <ServerId>0</ServerId> <ServerName>ns1.com</ServerName> </Server> <Server> <ServerId>1</ServerId> <ServerName>domain1.com</ServerName> <ServerIp>192.168.1.1</ServerIp> <ServerIp>1.1.1.1</ServerIp> </Server> </List> </NameServerList> </ServerListContent> </ServerListResponse>
https://api.dynadot.com/api3.json?key=mykey&command=server_list
{ "ServerListResponse": { "ResponseCode": 0, "Status": "success", "ServerList": [ { "ServerId": "0", "ServerName": "ns1.com" }, { "ServerId": "1", "ServerName": "domain1.com", "ServerIps": [ { "Ip": "192.168.1.1" }, { "Ip": "1.1.1.1" } ] } ] } }
如果调用获取域名服务器设置命令,则应包括以下参数:
获取域名服务器设置示例
https://api.dynadot.com/api3.xml?key=mykey&command=get_dns&domain=mydomain.com
<?xml version="1.0" encoding="UTF-8"?> <GetDnsResponse> <GetDnsHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </GetDnsHeader> <GetDnsContent> <NameServerSettings> <Type>Dynadot Parking</Type> <WithAds>Yes</WithAds> </NameServerSettings> </GetDnsContent> </GetDnsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=get_dns&domain=mydomain.com
{ "GetDnsResponse": { "ResponseCode": 0, "Status": "success", "GetDns": { "NameServerSettings": { "Type": "Dynadot Parking", "WithAds": "Yes" } } } }
您必须在请求授权代码前先解锁域名和账户。
获取转移授权代码示例
https://api.dynadot.com/api3.xml?key=mykey&command=get_transfer_auth_code&domain=domian1.com&new_code=1&unlock_domain_for_transfer=1
<GetTransferAuthCodeResponse> <GetTransferAuthCodeHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> <AuthCode>testauthcode</AuthCode> </GetTransferAuthCodeHeader> </GetTransferAuthCodeResponse>
https://api.dynadot.com/api3.json?key=mykey&command=get_transfer_auth_code&domain=domian1.com&new_code=1&unlock_domain_for_transfer=1
{ "GetTransferAuthCodeResponse":{ "ResponseCode":"0", "Status":"success", "AuthCode":"testauthcode" } }
如果调用获取转移状态命令,则应包括以下参数:
获取转移状态示例
https://api.dynadot.com/api3.xml?key=mykey&command=get_transfer_status&domain=domian1.com&transfer_type=in
<?xml version="1.0" encoding="UTF-8"?> <GetTransferStatusResponse> <GetTransferStatusHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </GetTransferStatusHeader> <GetTransferStatusContent> <TransferList> <Transfer> <OrderId>testorderid</OrderId> <TransferStatus>teststatus</TransferStatus> </Transfer> <Transfer> <OrderId>testorderid2</OrderId> <TransferStatus>teststatus2</TransferStatus> </Transfer> </TransferList> </GetTransferStatusContent> </GetTransferStatusResponse>
https://api.dynadot.com/api3.json?key=mykey&command=get_transfer_status&domain=domian1.com&transfer_type=in
{ "GetTransferStatusResponse": { "ResponseCode": 0, "Status": "success", "TransferList": [ { "OrderId": "testorderid", "TransferStatus": "teststatus" }, { "OrderId": "testorderid2", "TransferStatus": "teststatus2" } ] } }
允许您更新处理转移订单的授权代码的命令。如果调用设置传输授权代码命令,则应包括以下参数:
设置转移授权代码示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_transfer_auth_code&domain=domain4.com&auth_code=testauthcode
<SetTransferAuthCodeResponse> <SetTransferAuthCodeHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetTransferAuthCodeHeader> </SetTransferAuthCodeResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_transfer_auth_code&domain=domain4.com&auth_code=testauthcode
{ "SetTransferAuthCodeResponse":{ "ResponseCode":"0", "Status":"success" } }
该命令允许您取消订单中的转移项目。如果调用取消转移命令,则应包含以下参数:
取消转让示例
https://api.dynadot.com/api3.xml?key=mykey&command=cancel_transfer&domain=domain4.com
<CancelTransferResponse> <CancelTransferHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </CancelTransferHeader> </CancelTransferResponse>
https://api.dynadot.com/api3.json?key=mykey&command=cancel_transfer&domain=domain4.com
{ "CancelTransferResponse":{ "ResponseCode":"0", "Status":"success" } }
授权转移示例
https://api.dynadot.com/api3.xml?key=mykey&command=authorize_transfer_away&domain=domian.com&authorize=approve&order_id=123
<AuthorizeTransferAwayResponse> <AuthorizeTransferAwayHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> <Result>away_approved</Result> </AuthorizeTransferAwayHeader> </AuthorizeTransferAwayResponse>
https://api.dynadot.com/api3.json?key=mykey&command=authorize_transfer_away&domain=domian.com&authorize=approve&order_id=123
{ "AuthorizeTransferAwayResponse":{ "ResponseCode":"0", "Status":"success", "Result":"away_approved" } }
该命令允许为联系人创建CN审计。如果调用创建CN审计命令,应包括以下参数:
创建CN审计示例
https://api.dynadot.com/api3.xml?key=mykey&command=create_cn_audit&contact_id=testcontactid&contact_type=Enterprise&individual_id_type=SFZ&individual_license_id=testlicenseid&individual_url=url1&enterprise_id_type=ORG&enterprise_license_id=testlicenseid2&enterprise_url=url2
<CreateCnAuditResponse> <CreateCnAuditHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </CreateCnAuditHeader> </CreateCnAuditResponse>
https://api.dynadot.com/api3.json?key=mykey&command=create_cn_audit&contact_id=testcontactid&license_id=testlicenseid&url=url
{ "CreateCnAuditResponse":{ "ResponseCode":"0", "Status":"success" } }
如果调用 get cn 审核状态命令,则应包含以下参数:
获取Cn审计状态示例
https://api.dynadot.xml/api3.xml?key=mykey&command=get_cn_audit_status&contact_id=testcontactid
<?xml version="1.0" encoding="UTF-8"?> <GetCnAuditStatusResponse> <GetCnAuditStatusHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> <CnAuditStatus>pass</CnAuditStatus> </GetCnAuditStatusHeader> </GetCnAuditStatusResponse>
https://api.dynadot.json/api3.xml?key=mykey&command=get_cn_audit_status&contact_id=testcontactid
{ "GetCnAuditStatusResponse": { "ResponseCode": "0", "Status": "success", "CnAuditStatus": "pass" } }
此命令仅适用于XML和JSON格式:
获取账户余额示例
https://api.dynadot.com/api3.xml?key=mykey&command=get_account_balance
<?xml version="1.0" encoding="UTF-8"?> <GetAccountBalanceResponse> <GetAccountBalanceHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </GetAccountBalanceHeader> <GetAccountBalanceContent> <BalanceList> <Balance> <Currency>USD</Currency> <Amount>300.00</Amount> </Balance> </BalanceList> </GetAccountBalanceContent> </GetAccountBalanceResponse>
https://api.dynadot.com/api3.json?key=mykey&command=get_account_balance
{ "GetAccountBalanceResponse": { "ResponseCode": 0, "Status": "success", "BalanceList": [ { "Currency": "USD", "Amount": "300.00" } ] } }
如果调用了锁定域命令,则应包括以下参数:
锁定域名示例
https://api.dynadot.com/api3.xml?key=mykey&command=lock_domain&domain=domain4.com
<LockDomainResponse> <LockDomainferHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </LockDomainHeader> </LockDomainResponse>
https://api.dynadot.com/api3.json?key=mykey&command=lock_domain&domain=domain4.com
{ "LockDomainResponse":{ "ResponseCode":"0", "Status":"success" } }
如果调用获取列表命令,则应包括以下参数:
获取列表示例
https://api.dynadot.com/api3.xml?key=mykey¤cy=usd&command=get_listings
<?xml version="1.0" encoding="UTF-8"?> <GetListingsResponse> <GetListingsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </GetListingsHeader> <GetListingsContent> <Listing> <ListingId>id1</ListingId> <Domain>domain_name1</Domain> <Price>1</Price> <InboundLinks>1</InboundLinks> <Age>1</Age> <PendingSaleLocked>No</PendingSaleLocked> </Listing> <Listing> <ListingId>id2</ListingId> <Domain>domain_name2</Domain> <Price>2</Price> <InboundLinks>2</InboundLinks> <Age>2</Age> <PendingSaleLocked>No</PendingSaleLocked> </Listing> </GetListingsContent> </GetListingsResponse>
https://api.dynadot.com/api3.json?key=mykey¤cy=usd&command=get_listings
{ "GetListingsResponse": { "ResponseCode": 0, "Status": "success", "Listing": [ { "ListingId": "id1", "Domain": "domain_name1", "Price": "1", "InboundLinks": "1", "Age": "1", "PendingSaleLocked": "No" }, { "ListingId": "id2", "Domain": "domain_name2", "Price": "2", "InboundLinks": "2", "Age": "2", "PendingSaleLocked": "No" } ] } }
如果调用获取列表项命令,则应包括以下参数:
获取清单项示例
http://api.dynadot.com/api3.xml?key=my_key&command=get_listing_item¤cy=usd&domain=domain_name
<?xml version="1.0" encoding="UTF-8"?> <GetListingsItemResponse> <GetListingsItemHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </GetListingsItemHeader> <GetListingsItemContent> <Listing> <ListingId>id</ListingId> <Domain>domain_name</Domain> <Price>0</Price> <InboundLinks>0</InboundLinks> <Age>0</Age> <PendingSaleLocked>No</PendingSaleLocked> </Listing> </GetListingsItemContent> </GetListingsItemResponse>
http://api.dynadot.com/api3.json?key=my_key&command=get_listing_item¤cy=usd&domain=domain_name
{ "GetListingsItemResponse": { "ResponseCode": 0, "Status": "success", "Listing": { "ListingId": "id", "Domain": "domain_name", "Price": "0", "InboundLinks": "0", "Age": "0", "PendingSaleLocked": "No" } } }
如果调用购买立即命令,则应包括以下参数:
立即购买示例
https://api.dynadot.com/api3.xml?key=mykey&command=buy_it_now&domain=domain¤cy=currency
<BuyItNowResponse> <BuyItNowHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </BuyItNowHeader> <Message>domain order created</Message> </BuyItNowResponse>
https://api.dynadot.com/api3.json?key=mykey&command=buy_it_now&domain=domain¤cy=currency
{ "BuyItNowResponse":{ "ResponseCode":"0", "Status":"success", "Message":"domain order created" } }
此命令仅适用于XML和JSON格式:
账户信息示例
https://api.dynadot.com/api3.xml?key=mykey&command=account_info
<?xml version="1.0" encoding="UTF-8"?> <AccountInfoResponse> <AccountInfoHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </AccountInfoHeader> <AccountInfoContent> <AccountInfo> <Username>testname</Username> <ForumName>test forum name</ForumName> <Contact> <Organization/> <Name>testname test</Name> <Email>[email protected]</Email> <PhoneCc>1</PhoneCc> <PhoneNum>555.555.5233</PhoneNum> <FaxCc/> <FaxNum/> <Address1>1 test road</Address1> <Address2/> <City>Los Angeles</City> <State>CA</State> <ZipCode>90000</ZipCode> <Country>US</Country> </Contact> <CustomerSince>1364888735253</CustomerSince> <AccountLock>on</AccountLock> <TotalSpending>$0.00</TotalSpending> <PriceLevel>Regular Pricing</PriceLevel> <AccountBalance>$70.02</AccountBalance> <CustomTimeZone>PST</CustomTimeZone> <DefaultSettings> <DefaultWhois> <DefaultRegistrant> <ContactId>0</ContactId> </DefaultRegistrant> <DefaultAdmin> <ContactId>0</ContactId> </DefaultAdmin> <DefaultTechnical> <ContactId>0</ContactId> </DefaultTechnical> <DefaultBilling> <ContactId>0</ContactId> </DefaultBilling> </DefaultWhois> <DefaultNameServerSettings> <Type>Dynadot Parking</Type> <WithAds>yes</WithAds> </DefaultNameServerSettings> </DefaultSettings> </AccountInfo> </AccountInfoContent> </AccountInfoResponse>
https://api.dynadot.com/api3.json?key=mykey&command=account_info
{ "AccountInfoResponse": { "ResponseCode": 0, "Status": "success", "AccountInfo": { "Username": "testname", "ForumName": "test forum name", "Contact": { "Organization": "", "Name": "testname test", "Email": "[email protected]", "PhoneCc": "1", "PhoneNum": "555.555.5233", "FaxCc": "", "FaxNum": "", "Address1": "1 test road", "Address2": "", "City": "Los Angeles", "State": "CA", "ZipCode": "90000", "Country": "US" }, "CustomerSince": "1364888735253", "AccountLock": "on", "TotalSpending": "$0.00", "PriceLevel": "Regular Pricing", "AccountBalance": "$70.02", "CustomTimeZone": "PST", "DefaultSettings": { "DefaultWhois": { "DefaultRegistrant": { "ContactId": "0" }, "DefaultAdmin": { "ContactId": "0" }, "DefaultTechnical": { "ContactId": "0" }, "DefaultBilling": { "ContactId": "0" } }, "DefaultNameServerSettings": { "Type": "Dynadot Parking", "WithAds": "yes" } } } } }
如果呼叫设置默认Whois命令,则应包含以下参数:
设置默认Whois示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_default_whois®istrant_contact=0&admin_contact=0&technical_contact=0&billing_contact=0
<SetDefaultWhoisResponse> <SetDefaultWhoisHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetDefaultWhoisHeader> </SetDefaultWhoisResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_default_whois®istrant_contact=0&admin_contact=0&technical_contact=0&billing_contact=0
{ "SetDefaultWhoisResponse":{ "ResponseCode":"0", "Status":"success" } }
如果呼叫设置默认域名服务器命令,则应包含下列参数:
设置默认域名服务器示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_default_ns&ns0=ns1.hosts.com&ns1=ns2.host.com
<SetDefaultNsResponse> <SetDefaultNsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetDefaultNsHeader> <SetDefaultNsContent> <Servers> <Server> <ServerName>ns1.hosts.com</ServerName> <ServerId>0</ServerId> </Server> <Server> <ServerName>ns2.host.com</ServerName> <ServerId>1</ServerId> </Server> <Server> <ServerName /> <ServerId /> </Server> <Server> <ServerName /> <ServerId /> </Server> <Server> <ServerName /> <ServerId /> </Server> <Server> <ServerName /> <ServerId /> </Server> <Server> <ServerName /> <ServerId /> </Server> <Server> <ServerName /> <ServerId /> </Server> <Server> <ServerName /> <ServerId /> </Server> <Server> <ServerName /> <ServerId /> </Server> <Server> <ServerName /> <ServerId /> </Server> <Server> <ServerName /> <ServerId /> </Server> <Server> <ServerName /> <ServerId /> </Server> </Servers> </SetDefaultNsContent> </SetDefaultNsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_default_ns&ns0=ns1.hosts.com&ns1=ns2.host.com
{ "SetDefaultNsResponse":{ "ResponseCode":"0", "Status":"success", "SetDefaultNsContent":{ "Servers":[ { "ServerName":"ns1.hosts.com", "ServerId":"0" }, { "ServerName":"ns2.host.com", "ServerId":"1" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" } ] } } }
如果发送设置默认停放命令,则须包含下列参数:
设置默认停放示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_default_parking&folder_id=0&with_ads=no
<SetDefaultParkingResponse> <SetDefaultParkingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetDefaultParkingHeader> </SetDefaultParkingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_default_parking&folder_id=0&with_ads=no
{ "SetDefaultParkingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置默认转发命令,则须包含下列参数:
设置默认转发示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_default_forwarding&forward_url=http%3A%2F%2Fmydomain.com
<SetDefaultForwardingResponse> <SetDefaultForwardingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetDefaultForwardingHeader> </SetDefaultForwardingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_default_forwarding&forward_url=http%3A%2F%2Fmydomain.com
{ "SetDefaultForwardingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果要发送默认隐身命令,则须包含下列参数:
设置默认隐身示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_default_stealth&stealth_title=obama's shop&stealth_url=http%3A%2F%2Fwww.obamashop.com
<SetDefaultStealthResponse> <SetDefaultStealthHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetDefaultStealthHeader> </SetDefaultStealthResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_default_stealth&stealth_title=obama's shop&stealth_url=http%3A%2F%2Fwww.obamashop.com
{ "SetDefaultStealthResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置默认托管命令,则须包含下列参数:
设置默认托管示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_default_hosting&hosting_type=advanced
<SetDefaultHostingResponse> <SetDefaultHostingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetDefaultHostingHeader> </SetDefaultHostingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_default_hosting&hosting_type=advanced
{ "SetDefaultHostingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置默认域名系统命令,则须包含下列参数:
(该命令已过时,不建议使用,请使用Set Default DNS2命令)
设置默认域名系统示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_default_dns&main_record_type=aaaa&main_record=0:0:0:0:0:0:0:1
<SetDefaultDnsResponse> <SetDefaultDnsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetDefaultDnsHeader> </SetDefaultDnsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_default_dns&main_record_type=aaaa&main_record=0:0:0:0:0:0:0:1
{ "SetDefaultDnsResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置默认域名系统命令,则须包含下列参数:
设置默认DNS2示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_default_dns2&main_record_type0=aaaa&main_record0=0:0:0:0:0:0:0:1
<SetDefaultDnsResponse> <SetDefaultDnsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetDefaultDnsHeader> </SetDefaultDnsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_default_dns2&main_record_type0=aaaa&main_record0=0:0:0:0:0:0:0:1
{ "SetDefaultDnsResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置默认电子邮件转发命令,则须包含下列参数:
设置默认电子邮件转发示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_default_email_forward&forward_type=forward&username0=peter&[email protected]
<SetDefaultEmailForwardingResponse> <SetDefaultEmailForwardingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetDefaultEmailForwardingHeader> </SetDefaultEmailForwardingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_default_email_forward&forward_type=forward&username0=peter&[email protected]
{ "SetDefaultEmailForwardingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果呼叫设置清除默认设置命令,则需包含以下参数:
设置清除默认设置示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_clear_default_setting&service=nameservers
<SetClearDefaultSettingResponse> <SetClearDefaultSettingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetClearDefaultSettingHeader> </SetClearDefaultSettingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_clear_default_setting&service=nameservers
{ "SetClearDefaultSettingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置默认续费选项命令,则须包含下列参数:
设置默认续费选项示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_default_renew_option&renew_option=auto
<SetDefaultRenewOptionResponse> <SetDefaultRenewOptionHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetDefaultRenewOptionHeader> </SetDefaultRenewOptionResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_default_renew_option&renew_option=auto
{ "SetDefaultRenewOptionResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送创建文件夹命令,则须包含下列参数:
创建文件夹示例
https://api.dynadot.com/api3.xml?key=mykey&command=create_folder&folder_name=new
<FolderCreateResponse> <FolderCreateHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </FolderCreateHeader> <FolderCreateContent> <FolderName>new</FolderName> <FolderId>1</FolderId> </FolderCreateContent> </FolderCreateResponse>
https://api.dynadot.com/api3.json?key=mykey&command=create_folder&folder_name=new
{ "FolderCreateResponse":{ "ResponseCode":"0", "Status":"success", "FolderCreateContent":{ "FolderName":"new", "FolderId":"1" } } }
如果设置Whois命令,则应包含以下参数:
删除文件夹例子
https://api.dynadot.com/api3.xml?key=mykey&command=delete_folder&folder_id=0,1
<DeleteFolderResponse> <DeleteFolderHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </DeleteFolderHeader> </DeleteFolderResponse>
https://api.dynadot.com/api3.json?key=mykey&command=delete_folder&folder_id=0,1
{ "DeleteFolderResponse":{ "ResponseCode":"0", "Status":"success" } }
如果呼叫设置文件夹Whois命令,则应包含下列参数:
设置Whois文件夹示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_folder_whois&folder_id=0®istrant_contact=0&admin_contact=0&technical_contact=0&billing_contact=0
<SetFolderWhoisResponse> <SetFolderWhoisHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetFolderWhoisHeader> </SetFolderWhoisResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_folder_whois&folder_id=0®istrant_contact=0&admin_contact=0&technical_contact=0&billing_contact=0
{ "SetFolderWhoisResponse":{ "ResponseCode":"0", "Status":"success" } }
如果呼叫设置文件夹域名服务器命令,则应包含下列参数:
设置域名服务器文件夹示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_folder_ns&folder_id=0&ns0=ns1.hosts.com&ns1=ns2.host.com&enable=yes&sync=yes
https://api.dynadot.com/api3.json?key=mykey&command=set_folder_ns&folder_id=0&ns0=ns1.hosts.com&ns1=ns2.host.com&enable=yes&sync=yes
{ "SetFolderNsResponse":{ "ResponseCode":"0", "Status":"success", "SetFolderNsContent":{ "Servers":[ { "ServerName":"ns1.hosts.com", "ServerId":"0" }, { "ServerName":"ns2.host.com", "ServerId":"1" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" }, { "ServerName":"", "ServerId":"" } ] } } }
如果发送设置文件夹停放命令,则须包含下列参数:
设置文件夹停放示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_folder_parking&folder_id=0&with_ads=no
<SetFolderParkingResponse> <SetFolderParkingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetFolderParkingHeader> </SetFolderParkingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_folder_parking&folder_id=0&with_ads=no
{ "SetFolderParkingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置文件夹转发命令,则须包含下列参数:
设置文件夹转发示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_folder_forwarding&folder_id=0&forward_url=http%3A%2F%2Fmydomain.com&sync=yes
<SetFolderForwardingResponse> <SetFolderForwardingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetFolderForwardingHeader> </SetFolderForwardingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_folder_forwarding&folder_id=0&forward_url=http%3A%2F%2Fmydomain.com&sync=yes
{ "SetFolderForwardingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置文件夹隐身命令,则须包含下列参数:
设置文件夹隐身示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_folder_stealth&folder_id=0&stealth_title=obama's shop&stealth_url=http%3A%2F%2Fwww.obamashop.com&sync=yes
<SetFolderStealthResponse> <SetFolderStealthHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetFolderStealthHeader> </SetFolderStealthResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_folder_stealth&folder_id=0&stealth_title=obama's shop&stealth_url=http%3A%2F%2Fwww.obamashop.com&sync=yes
{ "SetFolderStealthResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置文件夹托管命令,则须包含下列参数:
设置文件夹托管示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_folder_hosting&folder_id=0&hosting_type=advanced&sync=yes
<SetFolderHostingResponse> <SetFolderHostingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetFolderHostingHeader> </SetFolderHostingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_folder_hosting&folder_id=0&hosting_type=advanced&sync=yes
{ "SetFolderHostingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果要发送设置文件夹域名系统命令,则须包含下列参数:
(该命令已过时,不建议使用。请使用Set Folder DNS2命令)
设置文件夹域名系统示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_folder_dns&folder_id=0&main_record_type=aaaa&main_record=0:0:0:0:0:0:0:1
<SetFolderDnsResponse> <SetFolderDnsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetFolderDnsHeader> </SetFolderDnsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_folder_dns&folder_id=0&main_record_type=aaaa&main_record=0:0:0:0:0:0:0:1
{ "SetFolderDnsResponse":{ "ResponseCode":"0", "Status":"success" } }
如果调用设置文件夹DNS2命令,应包含以下参数:
设置文件夹DNS2示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_folder_dns2&folder_id=0&main_record_type0=aaaa&main_record0=0:0:0:0:0:0:0:1
<SetFolderDnsResponse> <SetFolderDnsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetFolderDnsHeader> </SetFolderDnsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_folder_dns2&folder_id=0&main_record_type0=aaaa&main_record0=0:0:0:0:0:0:0:1
{ "SetFolderDnsResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置文件夹电子邮件转发命令,则须包含下列参数:
设置文件夹电子邮件转发示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_folder_email_forward&folder_id=0&forward_type=forward&username0=peter&[email protected]
<SetFolderEmailForwardingResponse> <SetFolderEmailForwardingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetFolderEmailForwardingHeader> </SetFolderEmailForwardingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_folder_email_forward&folder_id=0&forward_type=forward&username0=peter&[email protected]
{ "SetFolderEmailForwardingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置清除文件夹设置命令,则须包含下列参数:
设置清除文件夹设置示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_clear_folder_setting&folder_id=0&service=nameservers
<SetClearFolderSettingResponse> <SetClearFolderSettingHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetClearFolderSettingHeader> </SetClearFolderSettingResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_clear_folder_setting&folder_id=0&service=nameservers
{ "SetClearFolderSettingResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置文件夹名称命令,则须包含下列参数:
设置文件夹名称示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_folder_name&folder_id=0&folder_name=new
<SetFolderNameResponse> <SetFolderNameHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetFolderNameHeader> </SetFolderNameResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_folder_name&folder_id=0&folder_name=new
{ "SetFolderNameResponse":{ "ResponseCode":"0", "Status":"success" } }
如果发送设置文件夹续费选项命令,则须包含下列参数:
设置文件夹续费选项示例
https://api.dynadot.com/api3.xml?key=mykey&command=set_folder_renew_option&folder_id=0&renew_option=auto
<SetFolderRenewOptionResponse> <SetFolderRenewOptionHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetFolderRenewOptionHeader> </SetFolderRenewOptionResponse>
https://api.dynadot.com/api3.json?key=mykey&command=set_folder_renew_option&folder_id=0&renew_option=auto
{ "SetFolderRenewOptionResponse":{ "ResponseCode":"0", "Status":"success" } }
此命令仅适用于XML和JSON格式:
文件夹列表示例
https://api.dynadot.com/api3.xml?key=mykey&command=folder_list
<?xml version="1.0" encoding="UTF-8"?> <FolderListResponse> <FolderListHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </FolderListHeader> <FolderListContent> <FolderList> <List> <Folder> <FolderId>0</FolderId> <FolderName>new</FolderName> <DefaultWhois> <DefaultWhoisEnableStatus>disable</DefaultWhoisEnableStatus> <DefaultRegistrant> <ContactId>0</ContactId> </DefaultRegistrant> <DefaultAdmin> <ContactId>0</ContactId> </DefaultAdmin> <DefaultTechnical> <ContactId>0</ContactId> </DefaultTechnical> <DefaultBilling> <ContactId>0</ContactId> </DefaultBilling> </DefaultWhois> <DefaultNameServers> <DefaultNameServerEnableStatus>disable</DefaultNameServerEnableStatus> <NameServerSettings> <Type>Dynadot Parking</Type> <WithAds>Yes</WithAds> </NameServerSettings> </DefaultNameServers> <DefaultRenewOption> <DefaultRenewOptionEnableStatus>disable</DefaultRenewOptionEnableStatus> <RenewOption>no renew option</RenewOption> </DefaultRenewOption> <DefaultTransferLock> <DefaultTransferLockEnableStatus>disable</DefaultTransferLockEnableStatus> <LockStatus>locked</LockStatus> </DefaultTransferLock> </Folder> </List> </FolderList> </FolderListContent> </FolderListResponse>
https://api.dynadot.com/api3.json?key=mykey&command=folder_list
{ "FolderListResponse": { "ResponseCode": 0, "Status": "success", "FolderList": [ { "FolderId": "0", "FolderName": "new", "DefaultWhois": { "DefaultWhoisEnableStatus": "disable", "DefaultRegistrant": { "ContactId": "0" }, "DefaultAdmin": { "ContactId": "0" }, "DefaultTechnical": { "ContactId": "0" }, "DefaultBilling": { "ContactId": "0" } }, "DefaultNameServers": { "DefaultTransferLockEnableStatus": "disable", "NameServerSettings": { "Type": "Dynadot Parking", "WithAds": "Yes" } }, "DefaultRenewOption": { "DefaultRenewOptionEnableStatus": "disable", "RenewOption": "no renew option" }, "DefaultTransferLock": { "DefaultTransferLockEnableStatus": "disable", "LockStatus": "locked" } } ] } }
如添加域名抢购请求命令,则须包括下列参数:
添加域名抢购请求示例
https://api.dynadot.com/api3.xml?key=mykey&command=add_backorder_request&domain=droppingdomain.com,domaindropping.net,domaindrop.org
<AddBackorderRequestResponse> <AddBackorderRequestHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </AddBackorderRequestHeader> </AddBackorderRequestResponse>
https://api.dynadot.com/api3.json?key=mykey&command=add_backorder_request&domain=droppingdomain.com,domaindropping.net,domaindrop.org
{ "AddBackorderRequestResponse":{ "ResponseCode":"0", "Status":"success" } }
如设置删除域名抢购请求命令,则需包含下列参数:
删除域名抢购请求示例
https://api.dynadot.com/api3.xml?key=mykey&command=delete_backorder_request&domain=domaindropp.com
<DeleteBackorderRequestResponse> <DeleteBackorderRequestHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </DeleteBackorderRequestHeader> </DeleteBackorderRequestResponse>
https://api.dynadot.com/api3.json?key=mykey&command=delete_backorder_request&domain=domaindropp.com
{ "DeleteBackorderRequestResponse":{ "ResponseCode":"0", "Status":"success" } }
呼叫域名过期抢注请求清单命令将返回一个指定账户域名过期抢注请求清单;如果呼叫该命令,则需包含以下参数:
域名抢购请求列表示例
http://api.dynadot.com/api3.xml?key=1&command=backorder_request_list&startDate=2015-01-01&endDate=2015-5-20
<?xml version="1.0" encoding="UTF-8"?> <BackorderRequestListResponse> <BackorderRequestListHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </BackorderRequestListHeader> <BackorderRequestListContent> <BackorderRequestList> <BackorderRequest> <DomainName>testdrop.com</DomainName> <CutoffTime>1403914140000</CutoffTime> <BackorderRequestStatus>Active</BackorderRequestStatus> </BackorderRequest> <BackorderRequest> <DomainName>testdrop3.com</DomainName> <CutoffTime>1403914140000</CutoffTime> <BackorderRequestStatus>Active</BackorderRequestStatus> </BackorderRequest> <BackorderRequest> <DomainName>testdrop4.com</DomainName> <CutoffTime>1403914140000</CutoffTime> <BackorderRequestStatus>Active</BackorderRequestStatus> </BackorderRequest> <BackorderRequest> <DomainName>testdrop5.com</DomainName> <CutoffTime>1403914140000</CutoffTime> <BackorderRequestStatus>Active</BackorderRequestStatus> </BackorderRequest> </BackorderRequestList> </BackorderRequestListContent> </BackorderRequestListResponse>
http://api.dynadot.com/api3.html?key=1&command=backorder_request_list&startDate=2015-01-01&endDate=2015-5-20
ok,success,Domain,CutoffTime,BackorderRequestStatus,testdrop.com,1403914140000,Active,testdrop3.com,1403914140000,Active,testdrop4.com,1403914140000,Active,testdrop5.com,1403914140000,Active
http://api.dynadot.com/api3.json?key=1&command=backorder_request_list&startDate=2015-01-01&endDate=2015-5-20
{ "BackorderRequestListResponse": { "ResponseCode": 0, "Status": "success", "BackorderRequestList": [ { "DomainName": "testdrop.com", "CutoffTime": "1403914140000", "BackorderRequestStatus": "Active" }, { "DomainName": "testdrop3.com", "CutoffTime": "1403914140000", "BackorderRequestStatus": "Active" }, { "DomainName": "testdrop4.com", "CutoffTime": "1403914140000", "BackorderRequestStatus": "Active" }, { "DomainName": "testdrop5.com", "CutoffTime": "1403914140000", "BackorderRequestStatus": "Active" } ] } }
呼叫获取公开拍卖命令将返回一个正在处理中的拍卖的清单;如果呼叫此命令,则应包含以下参数:
获取公开拍卖示例
https://api.dynadot.com/api3.xml?key=mykey&command=get_open_auctions¤cy=usd&type=expired
<GetOpenAuctionsResponse> <GetOpenAuctionsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </GetOpenAuctionsHeader> <GetOpenAuctionsContent> <Auction> <AuctionId>0</AuctionId> <Domain>domain.com</Domain> <BidPrice>63.99</BidPrice> <BidPriceCurrency>USD</BidPriceCurrency> <Bids>0</Bids> <EndTime>2015/04/28 05:46 UTC</EndTime> <EndTimestamp>1430199960354</EndTimestamp> <Revenue>72</Revenue> <RevenueCurrency>USD</RevenueCurrency> <Visitors>-1</Visitors> <Links>-1</Links> <Age>1</Age> </Auction> <Auction> <AuctionId>0</AuctionId> <Domain>domain.com</Domain> <BidPrice>63.99</BidPrice> <BidPriceCurrency>USD</BidPriceCurrency> <Bids>0</Bids> <EndTime>2015/04/28 05:46 UTC</EndTime> <EndTimestamp>1430199960354</EndTimestamp> <Revenue>72</Revenue> <RevenueCurrency>USD</RevenueCurrency> <Visitors>-1</Visitors> <Links>-1</Links> <Age>1</Age> </Auction> . . . </GetOpenAuctionsContent> </GetOpenAuctionsResponse>
https://api.dynadot.com/api3.html?key=mykey&command=get_open_auctions¤cy=usd&type=expired
ok,
success,
AuctionId,Domain,BidPrice,BidPriceCurrency,Bids,EndTime,EndTimestamp,Revenue,RevenueCurrency,Visitors,Links,Age
10001,domain.com,92.99,USD,0,2015/04/28 18:04 UTC,1430244248274,0.64,USD,-1,-1,1
10002,xn--wkccg.com,77.99,USD,0,2015/05/01 06:04 UTC,1430460248338,86,USD,435,-1,1
10003,domain2.com,11.25,USD,0,2015/05/05 06:04 UTC,1430805846946,91,USD,358,-1,1
.
.
.
https://api.dynadot.com/api3.json?key=mykey&command=get_open_auctions¤cy=usd&type=expired
{ "status": "success", "auction_list": [ { "auction_id": 11, "domain": "domain.com", "utf_name": "domain.com", "is_idn": false, "auction_type": "expired", "currency": "USD", "current_bid_price": "124.00", "bids": 4, "bidders": 2, "time_left": "1 day, 23 hours", "start_time": "2022/03/28 02:20 PST", "start_time_stamp": 1648459234033, "end_time": "2022/04/04 02:20 PST", "end_time_stamp": 1649064034033, "visitors": 223, "links": "-", "age": 0, "estibot_appraisal": "-" }, { "auction_id": 12, "domain": "domain0.com", "utf_name": "domain0.com", "is_idn": false, "auction_type": "expired", "currency": "USD", "current_bid_price": "44.99", "bids": 1, "bidders": 1, "time_left": "2 days, 23 hours", "start_time": "2022/03/29 02:20 PST", "start_time_stamp": 1648545634049, "end_time": "2022/04/05 02:20 PST", "end_time_stamp": 1649150434049, "visitors": 245, "links": "-", "age": 0, "estibot_appraisal": "-" } ... ] }
调用获取拍卖详细信息命令将返回指定拍卖的详细信息。此命令仅以XML和JSON格式提供。如果调用此命令,应包括以下参数:
获取拍卖详情示例
https://api.dynadot.com/api3.xml?key=MY_API_KEY&command=get_auction_details&domain=domain0.com¤cy=usd
<?xml version="1.0" encoding="UTF-8"?> <GetAuctionDetailsResponse> <GetAuctionDetailsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </GetAuctionDetailsHeader> <GetAuctionDetailsContent> <Auction> <AuctionStatusId>0</AuctionStatusId> <AuctionStatus>1</AuctionStatus> <AuctionId>0</AuctionId> <Domain>test.biz</Domain> <BidPrice>46.99</BidPrice> <BidPriceCurrency>USD</BidPriceCurrency> <Bids>0</Bids> <EndTime>1970/01/01 00:00 UTC</EndTime> <EndTimestamp>0</EndTimestamp> <Revenue>1</Revenue> <RevenueCurrency>USD</RevenueCurrency> <Visitors>-1</Visitors> <Links>1</Links> <Age>10</Age> <isPremium>false</isPremium> <RenewalPrice>-0.1</RenewalPrice> <UserIsHighBid>false</UserIsHighBid> <YourCurrentBid>-1</YourCurrentBid> <YourProxyBid>-1</YourProxyBid> </Auction> </GetAuctionDetailsContent> </GetAuctionDetailsResponse>
https://api.dynadot.com/api3.json?key=MY_API_KEY&command=get_auction_details&domain=domain0.com¤cy=usd
{ "status": "success", "size": 1, "auction_details": [ { "auction_json": { "auction_id": 0, "domain": "test.biz", "utf_name": "test.biz", "is_idn": false, "auction_type": "expired", "current_bid_price": "46.99", "accepted_bid_price": "46.99", "currency": "USD", "is_high_bidder": false, "bids": 0, "bidders": 0, "auction_status_id": 0, "time_left": "1", "start_time": "1", "start_time_stamp": 0, "end_time": "", "end_time_stamp": 0, "revenue": "1", "visitors": -1, "links": "1", "age": 10, "estibot_appraisal": "", "bidder_name": "", "bid_price": "", "timestamp": 0, "bid_status": "", "is_proxy_auto_bid": false, "auction_ended": false, "customer_bided": false, "customer_bid": "1", "customer_proxy_bid": "1", "is_premium": false, "renewal_price": "-0.1" }, "bid_history": [] } ] }
呼叫出价竞标命令将会为指定拍卖出价;若呼叫此命令,则应包含以下参数:
域名例子
https://api.dynadot.com/api3.xml?key=mykey&command=place_auction_bid&domain=example.com&bid_amount=99.9¤cy=usd
<PlaceAuctionBidResponse> <PlaceAuctionBidHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </PlaceAuctionBidHeader> </PlaceAuctionBidResponse>
https://api.dynadot.com/api3.html?key=mykey&command=place_auction_bid&domain=example.com&bid_amount=99.9¤cy=usd
ok,success
https://api.dynadot.com/api3.json?key=mykey&command=place_auction_bid&domain=example.com&bid_amount=99.9¤cy=usd
{ "status": "success", "auction_details": { "auction_json": { "auction_id": 12, "domain": "example.com", "utf_name": "example.com", "is_idn": false, "auction_type": "expired", "current_bid_price": "44.99", "accepted_bid_price": "45.99", "currency": "USD", "is_high_bidder": true, "bids": 3, "bidders": 2, "time_left": "2 days, 22 hours", "start_time": "2022/03/29 02:20 PST", "start_time_stamp": 1648545634049, "end_time": "2022/04/05 02:20 PST", "end_time_stamp": 1649150434049, "revenue": "$26.50", "visitors": 245, "links": "-", "age": 0, "estibot_appraisal": "-", "auction_ended": false, "customer_bided": true, "customer_bid": "44.99", "customer_proxy_bid": "$121.00" }, "bid_history": [ { "bidder_name": "You", "bid_price": "44.99", "currency": "USD", "timestamp": 1648892255084, "bid_status": "High Bidder", "is_proxy_auto_bid": false } ... ] } }
调用获取已关闭竞拍命令将返回指定账户的已关闭竞拍列表。如果调用该命令,应包含以下参数:
获取已关闭拍卖示例
https://api.dynadot.com/api3.xml?key=1&command=get_closed_auctions&startDate=2000-01-02&endDate=2015-5-15
<?xml version="1.0" encoding="UTF-8"?> <GetClosedAuctionsResponse> <GetClosedAuctionsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </GetClosedAuctionsHeader> <GetClosedAuctionsContent> <Auction> <AuctionId>2</AuctionId> <Domain>testdomain1.test</Domain> <AuctionStatusId>4</AuctionStatusId> <AuctionStatus>Closed by Timeout</AuctionStatus> <BidPrice>89.99</BidPrice> <BidPriceCurrency>USD</BidPriceCurrency> <Bids>1</Bids> <AuctionWonStatus>won</AuctionWonStatus> <YourHighBid>89.99</YourHighBid> <YourProxyBid>1000.0</YourProxyBid> </Auction> <Auction> <AuctionId>3</AuctionId> <Domain>testdomain2.test</Domain> <AuctionStatusId>4</AuctionStatusId> <AuctionStatus>Closed by Timeout</AuctionStatus> <BidPrice>28.99</BidPrice> <BidPriceCurrency>USD</BidPriceCurrency> <Bids>1</Bids> <AuctionWonStatus>won</AuctionWonStatus> <YourHighBid>28.99</YourHighBid> <YourProxyBid>1000.0</YourProxyBid> </Auction> </GetClosedAuctionsContent> </GetClosedAuctionsResponse>
https://api.dynadot.com/api3.html?key=1&command=get_closed_auctions&startDate=2000-01-02&endDate=2015-5-15
ok,success,AuctionId,Domain,AuctionStatusId,AuctionStatus,BidPrice,BidPriceCurrency,Bids,AuctionWonStatus,YourHighBid,YourProxyBid,2,testdomain1.test,4,Closed by Timeout,89.99,USD,1,won,89.99,1000.0,3,testdomain2.test,4,Closed by Timeout,28.99,USD,1,won,28.99,1000.0
https://api.dynadot.com/api3.json?key=1&command=get_closed_auctions&startDate=2000-01-02&endDate=2015-5-15
{ "GetClosedAuctionsResponse": { "ResponseCode": 0, "Status": "success", "Auctions": [ { "AuctionId": "2", "Domain": "testdomain1.test", "AuctionStatusId": "4", "AuctionStatus": "Closed by Timeout", "BidPrice": "89.99", "BidPriceCurrency": "USD", "Bids": "1", "AuctionWonStatus": "won", "YourHighBid": "89.99", "YourProxyBid": "1000.0" }, { "AuctionId": "3", "Domain": "testdomain2.test", "AuctionStatusId": "4", "AuctionStatus": "Closed by Timeout", "BidPrice": "28.99", "BidPriceCurrency": "USD", "Bids": "1", "AuctionWonStatus": "won", "YourHighBid": "28.99", "YourProxyBid": "1000.0" } ] } }
获取开放过期域名竞拍命令(已弃用,请使用get_open_auctions命令)
调用获取开放过期域名竞拍命令将返回正在进行中的过期域名竞拍列表。如果调用此命令,应包含以下参数:
获取开放过期竞拍域名例子
https://api.dynadot.com/api3.xml?key=mykey&command=get_open_backorder_auctions¤cy=usd
<GetOpenBackorderAuctionsResponse> <GetOpenBackorderAuctionsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </GetOpenBackorderAuctionsHeader> <GetOpenBackorderAuctionsContent> <Auction> <AuctionId>0</AuctionId> <Domain>domain.com</Domain> <BidPrice>63.99</BidPrice> <BidPriceCurrency>USD</BidPriceCurrency> <Bids>0</Bids> <EndTime>2015/04/28 05:46 UTC</EndTime> <EndTimestamp>1430199960354</EndTimestamp> </Auction> <Auction> <AuctionId>0</AuctionId> <Domain>domain.com</Domain> <BidPrice>63.99</BidPrice> <BidPriceCurrency>USD</BidPriceCurrency> <Bids>0</Bids> <EndTime>2015/04/28 05:46 UTC</EndTime> <EndTimestamp>1430199960354</EndTimestamp> </Auction> . . . </GetOpenBackorderAuctionsContent> </GetOpenBackorderAuctionsResponse>
https://api.dynadot.com/api3.html?key=mykey&command=get_open_backorder_auctions¤cy=usd
ok,
success,
AuctionId,Domain,BidPrice,BidPriceCurrency,Bids,EndTime,EndTimestamp
10000,backorder0.com,6.35,USD,0,2017/08/29 17:53 UTC,1504029194453
10001,backorder1.com,1.0,USD,0,2017/08/29 17:53 UTC,1504029194453
10002,backorder2.com,1.0,USD,0,2017/08/29 17:53 UTC,1504029194453
.
.
.
调用获取委托拍卖明细命令将返回指定拍卖的详细信息。此命令仅适用于XML和JSON格式。如果调用此命令,则应包括以下参数:
获取过期域名详情例子
https://api.dynadot.com/api3.xml?key=mykey&command=get_backorder_auction_details&domain=example.com¤cy=usd
<?xml version="1.0" encoding="UTF-8"?> <GetBackorderAuctionDetailsResponse> <GetBackorderAuctionDetailsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </GetBackorderAuctionDetailsHeader> <GetBackorderAuctionDetailsContent> <AuctionStatusId>0</AuctionStatusId> <AuctionStatus>In Progress</AuctionStatus> <UserIsHighBid>no</UserIsHighBid> <YourCurrentBid>-1</YourCurrentBid> <YourProxyBid>-1</YourProxyBid> <Auction> <AuctionId>10001</AuctionId> <Domain>example.com</Domain> <BidPrice>89.99</BidPrice> <BidPriceCurrency>USD</BidPriceCurrency> <Bids>0</Bids> <EndTime>2015/04/28 18:16 UTC</EndTime> <EndTimestamp>1430244969779</EndTimestamp> </Auction> </GetBackorderAuctionDetailsContent> </GetBackorderAuctionDetailsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=get_backorder_auction_details&domain=example.com¤cy=usd
{ "GetBackorderAuctionDetailsResponse": { "ResponseCode": 0, "Status": "success", "GetBackorderAuctionDetails": { "AuctionStatusId": "0", "AuctionStatus": "In Progress", "UserIsHighBid": "no", "YourCurrentBid": "-1", "YourProxyBid": "-1", "Auction": { "AuctionId": "10001", "Domain": "example.com", "BidPrice": "89.99", "BidPriceCurrency": "USD", "Bids": "0", "EndTime": "2015/04/28 18:16 UTC", "EndTimestamp": "1430244969779" } } } }
调用过期域名竞拍出价命令将对指定的过期域名竞拍进行报价。如果调用该命令,应包含以下参数:
进行过期域名拍卖出价例子
https://api.dynadot.com/api3.xml?key=mykey&command=place_backorder_auction_bid&domain=example.com&bid_amount=99.9¤cy=usd
<PlaceBakcorderAuctionBidResponse> <PlaceBackorderAuctionBidHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </PlaceBackorderAuctionBidHeader> </PlaceBakcorderAuctionBidResponse>
https://api.dynadot.com/api3.html?key=mykey&command=place_backorder_auction_bid&domain=example.com&bid_amount=99.9¤cy=usd
ok,success
https://api.dynadot.com/api3.json?key=mykey&command=place_backorder_auction_bid&domain=example.com&bid_amount=99.9¤cy=usd
{ "PlaceBakcorderAuctionBidResponse":{ "ResponseCode":"0", "Status":"success" } }
调用获取已关闭过期域名命令将返回指定账户的已关闭过期域名竞拍列表。如果调用该命令,应包含以下参数:
获取已关闭的备货拍卖示例
https://api.dynadot.com/api3.xml?key=1&command=get_closed_backorder_auctions&startDate=2000-01-02&endDate=2015-5-15
<?xml version="1.0" encoding="UTF-8"?> <GetClosedBackorderAuctionsResponse> <GetClosedBackorderAuctionsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </GetClosedBackorderAuctionsHeader> <GetClosedBackorderAuctionsContent> <Auction> <AuctionWonStatus>won</AuctionWonStatus> <YourHighBid>89.99</YourHighBid> <YourProxyBid>1000.0</YourProxyBid> <AuctionId>2</AuctionId> <Domain>testdomain1.test</Domain> <BidPrice>89.99</BidPrice> <BidPriceCurrency>USD</BidPriceCurrency> <Bids>1</Bids> <EndTime>2022/04/04 02:20:34 PST</EndTime> <EndTimestamp>1649064034033</EndTimestamp> </Auction> <Auction> <AuctionWonStatus>won</AuctionWonStatus> <YourHighBid>28.99</YourHighBid> <YourProxyBid>1000.0</YourProxyBid> <AuctionId>3</AuctionId> <Domain>testdomain2.test</Domain> <BidPrice>28.99</BidPrice> <BidPriceCurrency>USD</BidPriceCurrency> <Bids>1</Bids> <EndTime>2022/04/05 02:20:34 PST</EndTime> <EndTimestamp>1649150434049</EndTimestamp> </Auction> </GetClosedBackorderAuctionsContent> </GetClosedBackorderAuctionsResponse>
https://api.dynadot.com/api3.html?key=1&command=get_closed_backorder_auctions&startDate=2000-01-02&endDate=2015-5-15
ok,success,AuctionId,Domain,AuctionStatusId,AuctionStatus,BidPrice,BidPriceCurrency,Bids,AuctionWonStatus,YourHighBid,YourProxyBid,2,testdomain1.test,4,Closed by Timeout,89.99,USD,1,won,89.99,1000.0,3,testdomain2.test,4,Closed by Timeout,28.99,USD,1,won,28.99,1000.0
https://api.dynadot.com/api3.json?key=1&command=get_closed_backorder_auctions&startDate=2000-01-02&endDate=2015-5-15
{ "GetClosedBackorderAuctionsResponse": { "ResponseCode": 0, "Status": "success", "Auctions": [ { "AuctionWonStatus": "won", "YourHighBid": "89.99", "YourProxyBid": "1000.0", "AuctionId": "2", "Domain": "testdomain1.test", "BidPrice": "89.99", "BidPriceCurrency": "USD", "Bids": "1", "EndTime": "2022/04/04 02:20:34 PST", "EndTimestamp": "1649064034033" }, { "AuctionWonStatus": "won", "YourHighBid": "28.99", "YourProxyBid": "1000.0", "AuctionId": "3", "Domain": "testdomain2.test", "BidPrice": "28.99", "BidPriceCurrency": "USD", "Bids": "1", "EndTime": "2022/04/05 02:20:34 PST", "EndTimestamp": "1649150434049" } ] } }
调用获取拍卖竞标命令将获取您参与的竞标列表。如果调用此命令,则必须包含以下参数:
获取竞拍出价(Get Auction Bids)示例
https://api.dynadot.com/api3.xml?key=mykey&command=get_auction_bids&currency=usd
<GetAuctionBidsResponse> <GetAuctionBidsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </GetAuctionBidsHeader> <GetAuctionBidsContent> <BidList> <Bid> <BidId>0</BidId> <AuctionId>11</AuctionId> <AccountId>1</AccountId> <Domain>domain.com</Domain> <DomainUtf>domain.com</DomainUtf> <AuctionType>expired</AuctionType> <IsIdn>false</IsIdn> <CurrentBid>$124.00</CurrentBid> <YourStatus>Out Bid</YourStatus> <ProxyBid>$119.00</ProxyBid> <ActiveBidders>2</ActiveBidders> <TimeLeft>1 day, 6 hours</TimeLeft> <EndTime>2022/04/04 02:20:34 PST</EndTime> <EndTimestamp>1649064034033</EndTimestamp> </Bid> <Bid> <BidId>9</BidId> <AuctionId>12</AuctionId> <AccountId>1</AccountId> <Domain>domain0.com</Domain> <DomainUtf>domain0.com</DomainUtf> <AuctionType>expired</AuctionType> <IsIdn>false</IsIdn> <CurrentBid>$44.99</CurrentBid> <YourStatus>High Bidder</YourStatus> <ProxyBid>$121.00</ProxyBid> <ActiveBidders>1</ActiveBidders> <TimeLeft>2 days, 6 hours</TimeLeft> <EndTime>2022/04/05 02:20:34 PST</EndTime> <EndTimestamp>1649150434049</EndTimestamp> </Bid> </BidList> </GetAuctionBidsContent> </GetAuctionBidsResponse>
https://api.dynadot.com/api3.json?key=mykey&command=get_auction_bids&currency=usd
{ "status": "success", "auction_bids": [ { "bid_id": 0, "auction_id": 11, "account_id": "1", "domain": "domain.com", "domain_utf": "domain.com", "auction_type": "expired", "is_idn": false, "current_bid": "$44.99", "your_status": "High Bidder", "proxy_bid": "$119.00", "active_bidders": 1, "time_left": "1 day, 23 hours", "end_time": "2022/04/04 02:20:34 PST", "end_time_stamp": 1649064034033 }, { "bid_id": 2, "auction_id": 12, "account_id": "1", "domain": "domain0.com", "domain_utf": "domain0.com", "auction_type": "expired", "is_idn": false, "current_bid": "$44.99", "your_status": "High Bidder", "proxy_bid": "$119.00", "active_bidders": 1, "time_left": "2 days, 23 hours", "end_time": "2022/04/05 02:20:34 PST", "end_time_stamp": 1649150434049 } ... ] }
呼叫is_processing可让您知晓提交一个新请求是否安全
Is_Processing示例
https://api.dynadot.com/api3.xml?key=mykey&command=is_processing
<Response> <ResponseHeader> <ResponseCode>0</ResponseCode> <ResponseMsg>yes</ResponseMsg> </ResponseHeader> </Response>
http://api.dynadot.com/api3.html?key=mykey&command=is_processing
ok,yes
http://api.dynadot.com/api3.html?key=mykey&command=is_processing
{ "Response":{ "ResponseCode":"0", "ResponseMsg":"no" } }
调用获取过期清算域名命令会获取过期清算域名。该命令仅适用于XML和JSON格式。如果调用该命令,应包括以下参数:
获取已过期的平仓域名示例
https://api.dynadot.com/api3.xml?key=MY_API_KEY&command=get_expired_closeout_domains¤cy=usd
<?xml version="1.0" encoding="UTF-8"?> <GetExpiredCloseoutDomainsResponse> <GetExpiredCloseoutDomainsHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </GetExpiredCloseoutDomainsHeader> <GetExpiredCloseoutDomainsContent> <CloseoutItem> <DomainName>test.biz</DomainName> <DomainNameUtf>test.biz</DomainNameUtf> <CurrentPrice>9.91</CurrentPrice> <IsIDN>false</IsIDN> <EndTimeStamp>0</EndTimeStamp> <RenewalPrice>9.99</RenewalPrice> <ExpiredRevenue>9.90</ExpiredRevenue> <EstibotAppraisal>1223</EstibotAppraisal> <InboundLinks>-1</InboundLinks> <MonthlyVisitors>-1</MonthlyVisitors> <Currency>usd</Currency> </CloseoutItem> </GetExpiredCloseoutDomainsContent> </GetExpiredCloseoutDomainsResponse>
https://api.dynadot.com/api3.json?key=MY_API_KEY&command=get_expired_closeout_domains¤cy=usd
{ "GetExpiredCloseoutDomainsResponse": { "ResponseCode": 0, "Status": "success", "Size": 1, "CloseoutDomains": [ { "closeoutItem": { "domainName": "test.biz", "domainNameUtf": "test.biz", "currentPrice": "9.91", "isIdn": false, "endTimeStamp": 0, "renewalPrice": "9.99", "expiredRevenue": "9.90", "estibotAppraisal": "1223", "inboundLinks": -1, "monthlyVisitors": -1, "currency": "usd" } } ] } }
调用购买过期清仓域名命令将购买指定的域名。此命令仅在XML和JSON格式中提供。如果调用此命令,应包括以下参数:
购买过期关闭域名示例
https://api.dynadot.com/api3.xml?key=MY_API_KEY&command=buy_expired_closeout_domain¤cy=USD&domain=domain.com
<?xml version="1.0" encoding="UTF-8"?> <BuyExpiredCloseoutDomainResponse> <BuyExpiredCloseoutDomainHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </BuyExpiredCloseoutDomainHeader> </BuyExpiredCloseoutDomainResponse>
https://api.dynadot.com/api3.json?key=MY_API_KEY&command=buy_expired_closeout_domain¤cy=USD&domain=domain.com
{ "BuyExpiredCloseoutDomainResponse": { "ResponseCode": "0", "Status": "success" } }
调用Set Afternic Confirm Action命令将购买指定的域名。此命令仅在XML和JSON格式中提供。如果调用此命令,则应包括以下参数:
设置Afternic确认操作示例
https://api.dynadot.com/api3.xml?key=MY_API_KEY&command=set_afternic_confirm_action&domain=domain.com&action=confirm_afternic
<?xml version="1.0" encoding="UTF-8"?> <SetAfternicConfirmActionResponse> <SetAfternicConfirmActionHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetAfternicConfirmActionHeader> </SetAfternicConfirmActionResponse>
https://api.dynadot.com/api3.json?key=MY_API_KEY&command=set_afternic_confirm_action&domain=domain.com&action=confirm_afternic
{ "SetAfternicConfirmActionResponse": { "ResponseCode": "0", "Status": "success" } }
调用命令列表命令将获取订单列表。此命令仅适用于XML和JSON格式。如果调用此命令,应包括以下参数。
订单列表例子
https://api.dynadot.com/api3.xml?key=0&searchBy=date_range&startDate=2024/01/01&endDate=2024/01/31&paymentMethod=account_balance,credit_card
<?xml version="1.0" encoding="UTF-8"?> <OrderListResponse> <OrderListHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </OrderListHeader> <OrderListContent> <OrderList> <Order> <OrderId>123456</OrderId> <SubmittedDate>1715334445378</SubmittedDate> <Currency>USD</Currency> <PaymentMethod>Account Balance</PaymentMethod> <TotalCost>$8.00</TotalCost> <TotalPaid>$8.00</TotalPaid> <Status>Problem</Status> <OrderItem> <ItemType>Domain Registration</ItemType> <Name>test.com</Name> <Duration>1</Duration> <Cost>2.99</Cost> <Status>Completed</Status> </OrderItem> <OrderItem> <ItemType>Domain Renewal</ItemType> <Name>test1.ac</Name> <Duration>1</Duration> <Cost>3.99</Cost> <Status>Completed</Status> </OrderItem> <OrderItem> <ItemType>Domain Transfer</ItemType> <Name>test2.de</Name> <Duration>1</Duration> <Cost>4.99</Cost> <Status>Completed</Status> </OrderItem> <OrderItem> <ItemType>Domain Registration</ItemType> <Name>test3.gg</Name> <Duration>1</Duration> <Cost>5.99</Cost> <Status>Completed</Status> </OrderItem> <OrderItem> <ItemType>Domain Renewal</ItemType> <Name>test4.uk</Name> <Duration>1</Duration> <Cost>6.99</Cost> <Status>Completed</Status> </OrderItem> <OrderItem> <ItemType>Domain Transfer</ItemType> <Name>test5.net</Name> <Duration>1</Duration> <Cost>7.99</Cost> <Status>Completed</Status> </OrderItem> </Order> <Order> <OrderId>123457</OrderId> <SubmittedDate>1715334445378</SubmittedDate> <Currency>EUR</Currency> <PaymentMethod>Paypal</PaymentMethod> <TotalCost>$100.00</TotalCost> <TotalPaid>$100.00</TotalPaid> <Status>Submitted</Status> </Order> </OrderList> </OrderListContent> </OrderListResponse>
https://api.dynadot.com/api3.json?key=0&command=order_list&searchBy=date_range&startDate=2024/01/01&endDate=2024/01/31&paymentMethod=account_balance,credit_card
{ "OrderListResponse": { "ResponseCode": 0, "Status": "success", "OrderList": [ { "OrderId": "123456", "SubmittedDate": "2024/05/10", "Currency": "USD", "PaymentMethod": "Account Balance", "TotalCost": "$8.00", "TotalPaid": "$8.00", "Status": "Problem", "ItemList": [ { "ItemType": "Domain Registration", "Name": "test.com", "Duration": 1, "Cost": "2.99", "Status": "Completed" }, { "ItemType": "Domain Renewal", "Name": "test1.ac", "Duration": 1, "Cost": "3.99", "Status": "Completed" }, { "ItemType": "Domain Transfer", "Name": "test2.de", "Duration": 1, "Cost": "4.99", "Status": "Completed" }, { "ItemType": "Domain Registration", "Name": "test3.gg", "Duration": 1, "Cost": "5.99", "Status": "Completed" }, { "ItemType": "Domain Renewal", "Name": "test4.uk", "Duration": 1, "Cost": "6.99", "Status": "Completed" }, { "ItemType": "Domain Transfer", "Name": "test5.net", "Duration": 1, "Cost": "7.99", "Status": "Completed" } ] }, { "OrderId": "123457", "SubmittedDate": "2024/05/10", "Currency": "EUR", "PaymentMethod": "Paypal", "TotalCost": "$100.00", "TotalPaid": "$100.00", "Status": "Submitted", "ItemList": [] } ] } }
调用获取订单状态命令将获取订单状态。该命令仅适用于XML和JSON格式。如果调用此命令,则应包括以下参数:
获取订单状态示例
https://api.dynadot.com/api3.xml?key=MY_API_KEY&command=get_order_status&order_id=0
<?xml version="1.0" encoding="UTF-8"?> <GetOrderStatusResponse> <GetOrderStatusHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </GetOrderStatusHeader> <GetOrderStatusContent> <OrderId>0</OrderId> <OrderStatus>Completed</OrderStatus> <Item> <ItemTypeName>domain transfer away</ItemTypeName> <ItemName>&</ItemName> <ItemStatus>transfer.com</ItemStatus> </Item> <Item> <ItemTypeName>domain</ItemTypeName> <ItemName>&</ItemName> <ItemStatus>register.com</ItemStatus> </Item> </GetOrderStatusContent> </GetOrderStatusResponse>
https://api.dynadot.com/api3.json?key=MY_API_KEY&command=get_order_status&order_id=0
{ "GetOrderStatusResponse": { "ResponseCode": 0, "Status": "success", "OrderStatus": { "OrderId": 0, "OrderStatus": "Completed", "ItemList": [ { "ItemTypeName": "domain transfer away", "ItemName": "transfer.com", "ItemStatus": "Completed" }, { "ItemTypeName": "domain", "ItemName": "register.com", "ItemStatus": "Completed" } ] } } }
调用获取域名推送请求命令将获取域名推送请求。该命令仅支持XML和JSON格式。
获取域名推送请求示例
https://api.dynadot.com/api3.xml?key=0&command=get_domain_push_request
<?xml version="1.0" encoding="UTF-8"?> <GetDomainPushRequestResponse> <GetDomainPushRequestHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </GetDomainPushRequestHeader> <GetDomainPushRequestContent> <PushDomain> <PushDomainName>haha.com</PushDomainName> </PushDomain> <PushDomain> <PushDomainName>haha1.com</PushDomainName> </PushDomain> </GetDomainPushRequestContent> </GetDomainPushRequestResponse>
https://api.dynadot.com/api3.xml?key=0&command=get_domain_push_request
{ "GetDomainPushRequestResponse": { "ResponseCode": 0, "Status": "success", "pushDomainName": "[haha.com,haha1.com]" } }
调用“设置域推送请求命令”将设置域推送请求。此命令仅适用于XML和JSON格式。如果调用此命令,则应包括以下参数:
设置域推送请求示例
https://api.dynadot.com/api3.xml?key=0&command=set_domain_push_request&domains=domain-haha1.com,domain-haha2.com,domain-haha3.com&action=accept
<?xml version="1.0" encoding="UTF-8"?> <SetDomainPushRequestResponse> <SetDomainPushRequestHeader> <ResponseCode>0</ResponseCode> <Status>success</Status> </SetDomainPushRequestHeader> <SetDomainPushRequestContent/> </SetDomainPushRequestResponse>
https://api.dynadot.com/api3.xml?key=0&command=set_domain_push_request&domains=domain-haha1.com,domain-haha2.com,domain-haha3.com&action=accept
{ "SetDomainPushRequestResponse": { "ResponseCode": 0, "Status": "success" } }