API Documents
Documentation API Documents List All the “A” Records for a Sub-domain

List All the “A” Records for a Sub-domain

1. API Description

This API (Monitor.Listsubvalue) is used to list all the “A” records for a sub-domain.
Domain name for API request:https://api.dnspod.com/Monitor.Listsubvalue
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 OR domain_id yes Stand for the domain name and the domain id. You only need to and must set one of them.
subdomain yes The sub-domain. 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 Code Description
6 Domain not exists.
7 Invalid domain id.

4. Sample

curl -X POST https://api.dnspod.com/Monitor.Listsubvalue -d 'user_token=730060,e1a8a$f14dc5dcbafd83680b3d2a553c4d553d&format=json&domain_id=2317346&subdomain=@'

The following is a sample response:

  • JSON:
    "status": {
        "code": "1",
        "message": "Action completed successful",
        "created_at": "2014-06-05 10:14:17"
    "domain": {
        "id": "9",
        "name": "dnspod.com",
        "punycode": "dnspod.com",
        "grade": "DP_Free"
    "points": {
        "max": 3,
        "list": {
            "ctc-4": "Hangzhou, Telecom, CN",
            "usa-1": "HE, CA, US",
            "hk-1": "PCCW, HK"
    "balance": 8,
    "records": [
            "id": "50",
            "area": "Default",
            "value": "",
            "record_type": "A",
            "sub_domain": "@"
Last updated on 2020-12-23 09:01

DNSPod Technical Community

Sharing & discussions

Scan using WeChat

Official WeChat group

Join WeChat group to chat and feedback

Scan using WeChat