/v1/records
All common records
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}