關于Dynadot
Dynadot是通過ICANN認證的域名注冊商,自2002年成立以來,服務于全球108個國家和地區的客戶,為數以萬計的客戶提供簡潔,優惠,安全的域名注冊以及管理服務。
Dynadot平臺操作教程索引(包括域名郵箱,解析,建站,優惠長期更新)
?Dynadot.com提供的API是專為效率而構建的高級域名管理和獲取工具包。在Dynadot平臺上,我們提供了50多個命令來設置,管理,注冊和競標域名。
在了具體的功能API代碼前,請閱讀關于Dynadot的API使用須知。
使用Dynadot API,可以在Dynadot市場中出售您當前持有的域名。
命令參數
如果發售出域名的命令,則須包含下列參數:
請求出售參數 | 解釋 |
domains | 您想在域名市場上列出要出售的域名,請每次只輸入1個域名。 |
for_sale_type | 您可以從以下列表中選擇一個值來表示您的銷售類型: |
listing_type (optional) |
|
price (optional) | 您希望出售您的域名的價格。 (for_sale_type是marketplace時必填) |
minimum_offer (optional) | 您對您的域名接受的最低報價。(for_sale_type是marketplace時必填) |
installment (optional) | 是否允許分期付款的。如果要啟用分期付款,請將其設置為"yes" |
maximum_installments (optional) | 最大允許的分期付款數,僅在允許分期付款時使用。您可以選擇一個值從2到12來代表分期付款的最大期數。 |
category (optional) | 為您的域名選擇類型。 |
Sub-category (optional) | 為您的域名選擇子類型。您可以參考下面的類別和子類別對照表進行選擇。 |
Description (optional) | 您的領域描述 |
在成功發送設置域名售出信息的命令之后,返回的結果將以XML、JSON格式的標簽返回,其中XML的結果標簽所代表含義由下圖所示:
XML結果標簽 | 解釋 |
<SetForSaleResponse></SetForSaleResponse> | 響應的根節點 |
<SetForSaleHeader></SetForSaleHeader> | 設置待售標題 |
<ResponseCode></ResponseCode> | 如果操作成功,則為成功的"0",失敗的"-1" |
<Status></Status> | 請求狀態 |
<Error></Error> | 請求的錯誤信息僅在狀態為“錯誤”時使用 |
可表述的域名類型:
域名類型 | 域名子類型 |
advertising | marketing |
retail | |
sales | |
automotive | cars_trucks |
enthusiasts | |
motorsports | |
business | investment |
law | |
money | |
professions | |
services | |
careers_education | No subCategory |
consumer_goods_services | apparel |
electronics | |
entertainment | games |
pop_culture | |
fashion | No subCategory |
finance | No subCategory |
gambling | casino |
sports | |
health | fitness |
medicine | |
internet | blogs |
ecommerce | |
domains | |
web_design | |
web_hosting | |
other | No subCategory |
places | africa |
asia | |
europe | |
north_america | |
south_america | |
real_estate | No subCategory |
science | No subCategory |
society | culture |
news | |
politics | |
religion | |
sports | leisure_activities |
professional | |
technology | computers |
uncategorized | No subCategory |
adult | No subCategory |
home | No subCategory |
ai | No subCategory |
aerospace | No subCategory |
agency | No subCategory |
agriculture_company | No subCategory |
analytics | No subCategory |
alcohol | No subCategory |
babies_kids | No subCategory |
biotech | No subCategory |
clean_energy | No subCategory |
cleaning | No subCategory |
community | No subCategory |
construction_organization | No subCategory |
cryptocurrency_blockchain | No subCategory |
dating_relationship | No subCategory |
daycare | No subCategory |
dental | No subCategory |
drone | No subCategory |
e_commerce | No subCategory |
food_drink | No subCategory |
furniture | No subCategory |
games | No subCategory |
insurance | No subCategory |
interior_design | No subCategory |
legal_law | No subCategory |
motivational | No subCategory |
manufacturing | No subCategory |
marketing | No subCategory |
medical | No subCategory |
metaverse | No subCategory |
movies_tv | No subCategory |
music_audio | No subCategory |
news_media | No subCategory |
nft | No subCategory |
outdoor | No subCategory |
payment | No subCategory |
pets | No subCategory |
politics | No subCategory |
property_management | No subCategory |
recruitment_staffing | No subCategory |
services | No subCategory |
security | No subCategory |
social | No subCategory |
transportation | No subCategory |
travel | No subCategory |
video_books_magazines | No subCategory |
virtual_reality | No subCategory |
website_design | No subCategory |
示例
此處,使用API命令設置售出某一域名。域名為test.com,類型為一口價域名,價格為1000,可最多分為四期進行付款,域名類型為健康,子類型為健身,描述為testdescription。
將高級域API請求發送到以下URL:https://api.dynadot.com/api3.xml。
equest (XML format)
https://api.dynadot.com/api3.xml?key=[API Key]&command=set_for_sale&domains=test.com&for_sale_type=marketplace&listing_type=buy_now&price=1000&installment=Yes&category=health&sub_category=fitness&maximum_installments=4&for_sale_type=marketplace&description=testdescription
Response (XML format)
<?xml version="1.0" encoding="UTF-8"?><SetForSaleResponse><SetForSaleHeader><ResponseCode>0</ResponseCode><Status>success</Status></SetForSaleHeader></SetForSaleResponse>
Request (JSON format)
https://api.dynadot.com/api3.json?key=[API Key]&command=set_for_sale&domains=test.com&for_sale_type=marketplace&listing_type=buy_now&price=1000&installment=Yes&category=health&sub_category=fitness&maximum_installments=4&for_sale_type=marketplace&description=testdescription
Response (JSON format)
{"SetForSaleResponse": {"ResponseCode: ": "0","Status": "Success"}}