Skip to content
Gridlode
LiveDomains and SEO1 credit / request

DNS Lookup API

DNS records (A, AAAA, MX, NS, TXT, CNAME, SOA, CAA) resolved through two independent DNS-over-HTTPS networks (Cloudflare and Google) with a consistency check between them.

GEThttps://api.gridlode.com/v1/domain/dns

Try it live

Try . Free, no account needed.

Parameters

NameTypeDescription
domainrequiredstringHostname to resolve, e.g. example.com or www.example.com.
typesarray of stringRecord types to resolve.
One of: A, AAAA, MX, NS, TXT, CNAME, SOA, CAA
max_ageintegerAccept a cached answer up to this many seconds old, billed at 50%. Default 0 (always fresh).

Response fields

  • exists · false when both resolvers return NXDOMAIN.
  • records · Map of record type to a list of { value, ttl }. MX, SOA and CAA values are structured objects.
  • resolvers · Which DNS-over-HTTPS networks answered (cloudflare, google).
  • consistent / inconsistent_types · Whether both resolvers returned the same answers, and which types differ.

Code

curl "https://api.gridlode.com/v1/domain/dns?domain=example.com&types=A%2CNS" \
  -H "Authorization: Bearer $GRIDLODE_KEY"
1 credit per request
One credit is $0.001 on the smallest pack, from $0.0003 on enterprise plans.
Half price for cached data
Cached for up to 1 h. Pass max_age to use it.
Failed requests are free
Blocks, timeouts and target errors never cost credits.

Market reference: TabAPI DNS: 1 credit ($1.00/1k).

Questions

Which resolvers do you use?

Cloudflare (1.1.1.1) and Google Public DNS over HTTPS, queried in parallel. The response tells you when they disagree.

How much does the DNS Lookup API cost?

1 credit per request. One credit costs $0.001 on the smallest pack and as little as $0.0003 on enterprise plans. Cached answers cost half and failed calls are free.

Domains and SEO
All 13 in Domains and SEO · 13 live
Live

Technology Lookup

Detects the technologies a website runs on (CMS, ecommerce platform, JavaScript frameworks, analytics, advertising pixels, CDN, hosting, web server…

2 credits / requestTry freeDocs
Live

WHOIS Lookup

Raw port-43 WHOIS text from the registry (and the registrar for thin registries such as .com) plus parsed registrar, dates, status and name servers

1 credit / requestTry freeDocs
Live

Domain Authority

How authoritative a domain is on the open web, from the Common Crawl domain-level web graph (over 100 million domains and about 2 billion links…

1 credit / requestTry freeDocs
Live

Referring Domains (Backlinks)

The domains that link to a domain, from the Common Crawl domain-level web graph, sorted by the referrer's authority (best first), each with its 0-100…

0.05 credits / domainTry freeDocs
Live

Similar Sites

Websites similar to a domain, found by co-citation in the Common Crawl domain-level web graph

3 credits / requestTry freeDocs