API

HTTP Method POST
API URL https://perfectdns.in/api/v2
Return Format JSON

Service List

parameters Explanation
key Your API Key
action services

Sample Return

[
    {
        "service": 1,
        "name": "Followers",
        "type": "Default",
        "category": "First Category",
        "rate": "0.90",
        "min": "50",
        "max": "10000"
    },
    {
        "service": 2,
        "name": "Comments",
        "type": "Custom Comments",
        "category": "Second Category",
        "rate": "8",
        "min": "10",
        "max": "1500"
    }
]

New Order

Parameter Explanation
key Your API Key
action add
service Service ID
link Service connection
quantity Quantity
runs (optionally) Runs to deliver
interval (optionally) Interval in minutes

Sample Return

{
    "order": 23501
}

Order Status

Parameter Explanation
key Your API Key
action status
order Order ID

Sample Return

{
    "charge": "0.27819",
    "start_count": "3572",
    "status": "Partial",
    "remains": "157",
    "currency": "USD"
}

Multiple orders status

Parameters Description
keyYour API key
actionstatus
ordersOrder IDs separated by a comma (up to 100)

Example response

{
    "1": {
        "charge": "0.27819",
        "start_count": "3572",
        "status": "Partial",
        "remains": "157",
        "currency": "USD"
    },
    "10": {
        "error": "Incorrect order ID"
    },
    "100": {
        "charge": "1.44219",
        "start_count": "234",
        "status": "In progress",
        "remains": "10",
        "currency": "USD"
    }
}

Create refill

Parameters Description
keyYour API key
actionrefill
orderOrder ID

Example response

{
    "refill": "1"
}

Create multiple refill

Parameters Description
keyYour API key
actionrefill
ordersOrder IDs separated by a comma (up to 100)

Example response

[
    {
        "order": 1,
        "refill": 1
    },
    {
        "order": 2,
        "refill": 2
    },
    {
        "order": 3,
        "error": "Incorrect order ID"
    }
]

Get refill status

Parameters Description
keyYour API key
actionrefill_status
refillRefill ID

Example response

{
    "status": "Completed"
}

Get multiple refill status

Parameters Description
keyYour API key
actionrefill_status
refillsRefill IDs separated by a comma (up to 100)

Example response

[
    {
        "1": {
            "status": "Completed"
        }
    },
    {
        "2": {
            "status": "In progress"
        }
    },
    {
        "3": {
            "error": "Incorrect refill ID"
        }
    }
]

Cancel orders

Parameters Description
keyYour API key
actioncancel
ordersOrder IDs separated by a comma (up to 100)

Example response

[
    {
        "order": 1,
        "cancel": {
            "status": true,
            "error": ""
        }
    },
    {
        "order": 2,
        "cancel": {
            "status": false,
            "error": "Incorrect order ID"
        }
    }
]

User Balance

Parameter Explanation
key Your API Key
action balance

Sample Return

{
    "balance": "100.84292",
    "currency": "USD"
}
Sample PHP File