Naar de inhoud
GET /v1/records

All common records

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/dns-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/dns-api/v1/records" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dns-api/v1/records", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dns-api/v1/records");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/dns-api/v1/records",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "domain": "example.com",
        "records": {
            "A": [
                {
                    "ttl": 251,
                    "data": "104.20.23.154",
                    "name": "example.com",
                    "type": "A"
                },
                {
                    "ttl": 251,
                    "data": "172.66.147.243",
                    "name": "example.com",
                    "type": "A"
                }
            ],
            "MX": [
                {
                    "ttl": 225,
                    "data": "0 .",
                    "name": "example.com",
                    "type": "MX"
                }
            ],
            "NS": [
                {
                    "ttl": 21600,
                    "data": "hera.ns.cloudflare.com.",
                    "name": "example.com",
                    "type": "NS"
                },
                {
                    "ttl": 21600,
                    "data": "elliott.ns.cloudflare.com.",
                    "name": "example.com",
                    "type": "NS"
                }
            ],
            "TXT": [
                {
                    "ttl": 300,
                    "data": "_k2n1y4vw3qtb4skdx9e7dxt97qrmmq9",
                    "name": "example.com",
                    "type": "TXT"
                },
                {
                    "ttl": 300,
                    "data": "v=spf1 -all",
                    "name": "example.com",
                    "type": "TXT"
                }
            ],
            "AAAA": [
                {
                    "ttl": 300,
                    "data": "2606:4700:10::6814:179a",
                    "name": "example.com",
                    "type": "AAAA"
                },
                {
                    "ttl": 300,
                    "data": "2606:4700:10::ac42:93f3",
                    "name": "example.com",
                    "type": "AAAA"
                }
            ],
            "CNAME": []
        }
    },
    "meta": {
        "timestamp": "2026-05-30T04:09:47.775Z",
        "request_id": "c3937092-3b73-4e13-8a12-696c247861b8"
    },
    "status": "ok",
    "message": "DNS records retrieved",
    "success": true
}