All free APIs
Free APIDev ToolsNo keyOfficial

Cloudflare DNS over HTTPS

Resolve any DNS record over HTTPS with a keyless JSON GET

Cloudflare's 1.1.1.1 resolver exposes DNS over HTTPS with a simple JSON mode: GET a name and type and receive resolved records as JSON. It is a keyless way to do A/AAAA/MX/TXT/CNAME lookups, DNSSEC validation and CAA checks from any environment that can make an HTTP request, no DNS library required.

Free tier

Free, no key; public 1.1.1.1 resolver

Rate limits

Not published for casual use; intended as a public resolver, fair-use expected

Auth

No key

Base URL

https://cloudflare-dns.com

What you'd build with it

  • Resolve MX/TXT records to validate an email domain in an automation
  • Check a domain's A/AAAA records from a serverless function
  • Verify SPF/DKIM/DMARC TXT records during deliverability checks
  • Do DNS lookups in environments with no native resolver access

Key endpoints

  • GET/dns-query?name={name}&type={type}Resolve a DNS record as JSON (send Accept: application/dns-json)
Members

Members get the runnable recipe

Sign in free to copy the example request, see a sample response, and read the gotchas.

Tags

dnsnetworkdohlookupdeveloper