API Documents
Contents
    Loading
Documentation API Documents Get The Domain Information

Get The Domain Information

1. API Description

This API (Domain.Info) is used to get the domain information.
Domain name for API request:https://api.dnspod.com/Domain.Info
HTTP request method: POST

2. Request Parameters

The table below lists only the API request parameters. Common request parameters are required when the API is called. For more information, please see Common Request Parameters.

Parameter Required Description
domain_id Or domain yes Stand for the id and the name of the domain. You only need to and must set one of them.

3. Response Codes

Only the response codes related to this API are listed below. For other response codes, please see Common Return Codes.

Response Code Description
-7 The company account need a upgrade before doing this.
-8 You need a upgrade for the domains you are acting for.
6 Invalid domain id.
8 You have no permit to do this.

4. Sample

curl -X POST https://api.dnspod.com/Domain.Info  -d 'login_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2059079'

The following is a sample response:

  • 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"
    }
}
Last updated on 2022-03-11 02:05

DNS health check tool powered by DNSPod

查询域名信息,快速排查网站问题

Official WeChat group

Join WeChat group to chat and feedback

Scan using WeChat