Skip to content
OSINTtools.io

ViewDNS.info API

Collection of free DNS and IP utilities including reverse IP, reverse WHOIS, IP history and DNS record lookups.

Base URL
https://api.viewdns.info
Sign-in
API key
Free tier
Free trial
Pricing
Subscription
Format
REST
Endpoints
8

Compiled by OSINTtools.io editors from viewdns.info · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

ViewDNS.info's API returns the results of its DNS and network tools: reverse IP (domains on a server), WHOIS, reverse WHOIS by registrant name or email, IP history of a domain, DNS records, subdomains, IP location and reverse DNS. The site lists more tools (ping, port scanner, traceroute, spam lookups, HTTP headers and others) that are not covered here.

Each tool is a GET on https://api.viewdns.info/<tool>/ with an apikey query parameter. output can be json (the default) or xml; every response has a query object echoing the request and a response object with the result.

The pricing page lists a free Sandbox plan of 250 trial queries on most APIs, and paid plans that share one query pool across all APIs. Rate limits are not stated in the docs I read.

Quick start

  1. Get a key

    Create an account with ViewDNS.info and copy your api key (free trial). Where to get it

  2. Make your first request

    Find the domains hosted on the same server as a domain or IP.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.viewdns.info/reverseip/?host=example.com&apikey=YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "query": {
        "tool": "reverseip_PRO",
        "host": "example.com"
      },
      "response": {
        "domain_count": "2",
        "domains": [
          {
            "name": "example.com",
            "last_resolved": "2024-10-02"
          },
          {
            "name": "example.org",
            "last_resolved": "2024-09-28"
          }
        ]
      }
    }

Authentication

Send your API key in the apikey query parameter of every request.

The docs' examples use apikey=demo.

Get a key from ViewDNS.info

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Not stated in the docs

Free trial. Pricing: subscription.

  • SandboxFree · 250 trial queries, access to most APIs
  • Developer$49/month · 2,500 queries/month, all APIs
  • Professional$149/month · 15,000 queries/month, all APIs
  • Business$549/month · 100,000 queries/month, all APIs
  • EnterpriseContact sales · Higher monthly query volumes, custom APIs possible

Plans from viewdns.info, checked Nov 25, 2026.

Reverse lookups

Each page holds up to 10,000 results.

Query parameters

hoststringrequiredtakes your domain

A domain or IP address to look up

Example: example.com
pageinteger

Page of results

Example: 1Default: 1
Response fields · 5Show

toolstring

Tool identifier

hoststring

The host queried

domain_countstring

Number of matching domains

namestring

A domain hosted on the server

last_resolvedstring

Date it last resolved to the IP (YYYY-MM-DD)

curl 'https://api.viewdns.info/reverseip/?host=example.com&apikey=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "query": {
    "tool": "reverseip_PRO",
    "host": "example.com"
  },
  "response": {
    "domain_count": "2",
    "domains": [
      {
        "name": "example.com",
        "last_resolved": "2024-10-02"
      },
      {
        "name": "example.org",
        "last_resolved": "2024-09-28"
      }
    ]
  }
}

Results come back in pages of up to 1,000.

Query parameters

qstringrequiredtakes your email

Registrant name or email address to search for

Example: owner@example.com
pageinteger

Page of results

Example: 1Default: 1
Response fields · 8Show

toolstring

Tool identifier

querystring

The search term

result_countstring

Total matching domains

total_pagesstring

Total pages

current_pagestring

Page returned

domainstring

Matching domain

created_datestring

Registration date (YYYY-MM-DD)

registrarstring

Registrar

curl 'https://api.viewdns.info/reversewhois/?q=owner%40example.com&apikey=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "query": {
    "tool": "reversewhois_PRO",
    "query": "owner@example.com"
  },
  "response": {
    "result_count": "1",
    "total_pages": "1",
    "current_page": "1",
    "matches": [
      {
        "domain": "example.org",
        "created_date": "2012-08-03",
        "registrar": "Example Registrar, Inc."
      }
    ]
  }
}

Domain data

Returns registrar, dates, contacts (as the registry publishes them, often redacted), name servers, status and the raw record.

Query parameters

domainstringrequiredtakes your domain

Domain or IP to look up

Example: example.com
Response fields · 13Show

toolstring

Tool identifier

domainstring

The domain queried

domainNamestring

Domain name

registrarNamestring

Registrar

registrarIANAIDstring

Registrar IANA id

createdDatestring

Creation date

updatedDatestring

Last update date

expiresDatestring

Expiry date

abuseEmailstring

Abuse contact

namestring

Registrant name (each contact also has organization, address, telephone, email)

hostNames[]string

Name servers

statusstring

EPP status flags

rawTextstring

Raw WHOIS/RDAP record

curl 'https://api.viewdns.info/whois/v2/?domain=example.com&apikey=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "query": {
    "tool": "whois_PRO",
    "domain": "example.com"
  },
  "response": {
    "domainName": "example.com",
    "registrarName": "Example Registrar, LLC",
    "registrarIANAID": "9999",
    "registryData": {
      "createdDate": "1994-07-01",
      "updatedDate": "2024-06-01",
      "expiresDate": "2031-01-07",
      "abuseEmail": "abuse@example.org",
      "registrant": {
        "name": "Example Owner",
        "organization": "Example Org"
      },
      "nameServers": {
        "hostNames": [
          "ns1.example.net",
          "ns2.example.net"
        ]
      },
      "status": "clientTransferProhibited",
      "rawText": "Domain Name: example.com ..."
    }
  }
}

Records are sorted from most recent to oldest.

Query parameters

domainstringrequiredtakes your domain

Domain to look up

Example: example.com
Response fields · 6Show

toolstring

Tool identifier

domainstring

The domain queried

ipstring

IP address

locationstring

Location, or Unknown

ownerstring

Network owner

lastseenstring

Date last seen (YYYY-MM-DD)

curl 'https://api.viewdns.info/iphistory/?domain=example.com&apikey=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "query": {
    "tool": "iphistory_PRO",
    "domain": "example.com"
  },
  "response": {
    "records": [
      {
        "ip": "203.0.113.7",
        "location": "Unknown",
        "owner": "Example Hosting, Inc",
        "lastseen": "2024-09-20"
      }
    ]
  }
}

recordtype defaults to ANY; the docs say any record type is supported.

Query parameters

domainstringrequiredtakes your domain

Hostname to look up

Example: example.com
recordtypestring

Record type, e.g. A, AAAA, MX, TXT, ANY

Example: MXDefault: ANY
Response fields · 9Show

toolstring

Tool identifier

domainstring

The domain queried

recordtypestring

The record type requested

namestring

Owner name, with a trailing dot

ttlstring

Time to live in seconds

classstring

Record class, e.g. IN

typestring

Record type

datastring

Record value

prioritystring

Priority, on MX records

curl 'https://api.viewdns.info/dnsrecord/?domain=example.com&apikey=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "query": {
    "tool": "dnsrecord_PRO",
    "domain": "example.com",
    "recordtype": "MX"
  },
  "response": {
    "records": [
      {
        "name": "example.com.",
        "ttl": "300",
        "class": "IN",
        "type": "MX",
        "priority": "10",
        "data": "mail.example.com."
      }
    ]
  }
}

The first 1,000 results are returned by default; use page for more.

Query parameters

domainstringrequiredtakes your domain

Domain to look up

Example: example.com
pageinteger

Page of results

Example: 1Default: 1
Response fields · 8Show

toolstring

Tool identifier

domainstring

The domain queried

subdomain_countstring

Total subdomains found

total_pagesstring

Total pages

current_pagestring

Page returned

namestring

Subdomain

ips[]string

IP addresses

last_resolvedstring

Last resolved, or null

curl 'https://api.viewdns.info/subdomains/?domain=example.com&apikey=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "query": {
    "tool": "subdomains_PRO",
    "domain": "example.com"
  },
  "response": {
    "subdomain_count": "2",
    "total_pages": "1",
    "current_page": "1",
    "subdomains": [
      {
        "name": "www.example.com",
        "ips": [
          "203.0.113.7"
        ],
        "last_resolved": "2024-09-20"
      },
      {
        "name": "dev.example.com",
        "ips": [],
        "last_resolved": null
      }
    ]
  }
}

IP lookups

Returns city, region, country and coordinates.

Query parameters

ipstringrequiredtakes your ip address

IP address

Example: 203.0.113.7
Response fields · 10Show

toolstring

Tool identifier

ipstring

The IP queried

citystring

City

zipcodestring

Postal code

region_codestring

Region code

region_namestring

Region name

country_codestring

Two-letter country code

country_namestring

Country name

latitudestring

Latitude

longitudestring

Longitude

curl 'https://api.viewdns.info/iplocation/?ip=203.0.113.7&apikey=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "query": {
    "tool": "iplocation_PRO",
    "ip": "203.0.113.7"
  },
  "response": {
    "city": "Example City",
    "zipcode": "00000",
    "region_code": "EX",
    "region_name": "Example Region",
    "country_code": "US",
    "country_name": "United States",
    "latitude": "10.0000",
    "longitude": "20.0000",
    "gmt_offset": "",
    "dst_offset": ""
  }
}

Returns the hostname the IP's PTR record points to.

Query parameters

ipstringrequiredtakes your ip address

IP address

Example: 203.0.113.7
Response fields · 3Show

toolstring

Tool identifier

ipstring

The IP queried

rdnsstring

The PTR record

curl 'https://api.viewdns.info/reversedns/?ip=203.0.113.7&apikey=YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "query": {
    "tool": "reversedns_PRO",
    "ip": "203.0.113.7"
  },
  "response": {
    "rdns": "host.example.net."
  }
}