# ViewDNS.info API reference

> 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…

Source: https://osinttools.io/apis/viewdns/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/viewdns/

- Base URL: https://api.viewdns.info
- Authentication: API key in the `apikey` query parameter. Get a key: https://viewdns.info/signup/ The docs' examples use apikey=demo.
- Free tier: a free trial only
- Pricing: Subscription
- Rate limits: Not stated in the docs
- Vendor docs: https://viewdns.info/api/

## Overview

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.

## Reverse lookups

### Find the domains hosted on the same server as a domain or IP.

`GET /reverseip/`

- Takes: Domain, IP address
- Footprint: passive (the target is not contacted)

Each page holds up to 10,000 results.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `host` | query | string | yes | A domain or IP address to look up Example: example.com |
| `page` | query | integer | no | Page of results Example: 1 |

Response fields:

- `query.tool` (string): Tool identifier
- `query.host` (string): The host queried
- `response.domain_count` (string): Number of matching domains
- `response.domains[].name` (string): A domain hosted on the server
- `response.domains[].last_resolved` (string): Date it last resolved to the IP (YYYY-MM-DD)

```bash
curl 'https://api.viewdns.info/reverseip/?host=example.com&apikey=YOUR_API_KEY'
```

Example response (200):

```json
{
  "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"
      }
    ]
  }
}
```

### Find domains by registrant name or email address.

`GET /reversewhois/`

- Takes: Email, Name
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | yes | Registrant name or email address to search for Example: owner@example.com |
| `page` | query | integer | no | Page of results Example: 1 |

Response fields:

- `query.tool` (string): Tool identifier
- `query.query` (string): The search term
- `response.result_count` (string): Total matching domains
- `response.total_pages` (string): Total pages
- `response.current_page` (string): Page returned
- `response.matches[].domain` (string): Matching domain
- `response.matches[].created_date` (string): Registration date (YYYY-MM-DD)
- `response.matches[].registrar` (string): Registrar

```bash
curl 'https://api.viewdns.info/reversewhois/?q=owner%40example.com&apikey=YOUR_API_KEY'
```

Example response (200):

```json
{
  "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

### Parsed WHOIS/RDAP record of a domain or IP.

`GET /whois/v2/`

- Takes: Domain, IP address
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `domain` | query | string | yes | Domain or IP to look up Example: example.com |

Response fields:

- `query.tool` (string): Tool identifier
- `query.domain` (string): The domain queried
- `response.domainName` (string): Domain name
- `response.registrarName` (string): Registrar
- `response.registrarIANAID` (string): Registrar IANA id
- `response.registryData.createdDate` (string): Creation date
- `response.registryData.updatedDate` (string): Last update date
- `response.registryData.expiresDate` (string): Expiry date
- `response.registryData.abuseEmail` (string): Abuse contact
- `response.registryData.registrant.name` (string): Registrant name (each contact also has organization, address, telephone, email)
- `response.registryData.nameServers.hostNames[]` (string): Name servers
- `response.registryData.status` (string): EPP status flags
- `response.registryData.rawText` (string): Raw WHOIS/RDAP record

```bash
curl 'https://api.viewdns.info/whois/v2/?domain=example.com&apikey=YOUR_API_KEY'
```

Example response (200):

```json
{
  "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 ..."
    }
  }
}
```

### Historical IP addresses a domain has pointed to.

`GET /iphistory/`

- Takes: Domain
- Footprint: passive (the target is not contacted)

Records are sorted from most recent to oldest.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `domain` | query | string | yes | Domain to look up Example: example.com |

Response fields:

- `query.tool` (string): Tool identifier
- `query.domain` (string): The domain queried
- `response.records[].ip` (string): IP address
- `response.records[].location` (string): Location, or Unknown
- `response.records[].owner` (string): Network owner
- `response.records[].lastseen` (string): Date last seen (YYYY-MM-DD)

```bash
curl 'https://api.viewdns.info/iphistory/?domain=example.com&apikey=YOUR_API_KEY'
```

Example response (200):

```json
{
  "query": {
    "tool": "iphistory_PRO",
    "domain": "example.com"
  },
  "response": {
    "records": [
      {
        "ip": "203.0.113.7",
        "location": "Unknown",
        "owner": "Example Hosting, Inc",
        "lastseen": "2024-09-20"
      }
    ]
  }
}
```

### DNS records of a hostname, by record type.

`GET /dnsrecord/`

- Takes: Domain
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `domain` | query | string | yes | Hostname to look up Example: example.com |
| `recordtype` | query | string | no | Record type, e.g. A, AAAA, MX, TXT, ANY Example: MX |

Response fields:

- `query.tool` (string): Tool identifier
- `query.domain` (string): The domain queried
- `query.recordtype` (string): The record type requested
- `response.records[].name` (string): Owner name, with a trailing dot
- `response.records[].ttl` (string): Time to live in seconds
- `response.records[].class` (string): Record class, e.g. IN
- `response.records[].type` (string): Record type
- `response.records[].data` (string): Record value
- `response.records[].priority` (string): Priority, on MX records

```bash
curl 'https://api.viewdns.info/dnsrecord/?domain=example.com&apikey=YOUR_API_KEY'
```

Example response (200):

```json
{
  "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."
      }
    ]
  }
}
```

### Known subdomains of a domain.

`GET /subdomains/`

- Takes: Domain
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `domain` | query | string | yes | Domain to look up Example: example.com |
| `page` | query | integer | no | Page of results Example: 1 |

Response fields:

- `query.tool` (string): Tool identifier
- `query.domain` (string): The domain queried
- `response.subdomain_count` (string): Total subdomains found
- `response.total_pages` (string): Total pages
- `response.current_page` (string): Page returned
- `response.subdomains[].name` (string): Subdomain
- `response.subdomains[].ips[]` (string): IP addresses
- `response.subdomains[].last_resolved` (string): Last resolved, or null

```bash
curl 'https://api.viewdns.info/subdomains/?domain=example.com&apikey=YOUR_API_KEY'
```

Example response (200):

```json
{
  "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

### Geographic location of an IP address.

`GET /iplocation/`

- Takes: IP address
- Footprint: passive (the target is not contacted)

Returns city, region, country and coordinates.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ip` | query | string | yes | IP address Example: 203.0.113.7 |

Response fields:

- `query.tool` (string): Tool identifier
- `query.ip` (string): The IP queried
- `response.city` (string): City
- `response.zipcode` (string): Postal code
- `response.region_code` (string): Region code
- `response.region_name` (string): Region name
- `response.country_code` (string): Two-letter country code
- `response.country_name` (string): Country name
- `response.latitude` (string): Latitude
- `response.longitude` (string): Longitude

```bash
curl 'https://api.viewdns.info/iplocation/?ip=203.0.113.7&apikey=YOUR_API_KEY'
```

Example response (200):

```json
{
  "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": ""
  }
}
```

### PTR record (reverse DNS name) of an IP address.

`GET /reversedns/`

- Takes: IP address
- Footprint: passive (the target is not contacted)

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

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ip` | query | string | yes | IP address Example: 203.0.113.7 |

Response fields:

- `query.tool` (string): Tool identifier
- `query.ip` (string): The IP queried
- `response.rdns` (string): The PTR record

```bash
curl 'https://api.viewdns.info/reversedns/?ip=203.0.113.7&apikey=YOUR_API_KEY'
```

Example response (200):

```json
{
  "query": {
    "tool": "reversedns_PRO",
    "ip": "203.0.113.7"
  },
  "response": {
    "rdns": "host.example.net."
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
