API Documents
Contents
    Loading
Documentation API Documents Get the Record Information

Get the Record Information

1. API Description

This API (Record.Info) is used to get the record information.
Domain name for API request::https://api.dnspod.com/Record.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 yes The domain id. Mandatory parameter.
record_id yes The record id. Mandatory parameter.

3. Response Codes

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

Response Codes Description
-15 Domain got prohibited.
-7 A domain of a company account need a upgrade first.
-8 You need a upgrade for the domain you are acting for.
6 Invalid domain id.
7 You don’t have the permission.
8 Invalid record id.

4. Sample

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

The following is a sample response:

  • JSON:
{
    "status": {
        "code": "1",
        "message": "Action completed successful",
        "created_at": "2014-06-05 10:07:05"
    },
    "domain": {
        "id": "9",
        "domain": "dnspod.com",
        "domain_grade": "DP_Free"
    },
    "record": {
        "id": "50",
        "sub_domain": "@",
        "record_type": "A",
        "record_line": "Default",
        "value": "96.126.115.73",
        "mx": "0",
        "ttl": "600",
        "enabled": "1",
        "monitor_status": "",
        "remark": "",
        "updated_on": "2014-06-05 09:47:59",
        "domain_id": "9"
    }
}
Last updated on 2022-03-11 02:58

DNS health check tool powered by DNSPod

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

Official WeChat group

Join WeChat group to chat and feedback

Scan using WeChat