# All Domain Names Feed

URL: https://www.deepinfo.com/data-api/feeds/all-domain-names/

## Download Every Registered Domain in the Index as One File.

One call to the All Domain Names Feed returns the metadata of the current all-domains file and a pre-signed link to download it. Load the file once, and questions that span all known domains run on your infrastructure instead of one request per name.

[Talk to us about access](https://www.deepinfo.com/contact/?topic=data-api) [All Domains reference](https://docs.deepinfo.com/reference/feeds/all-domains/)

### Read the Metadata Before the File.

The response describes the file before you fetch it. A job can read the update time and the size, then decide whether to download at all.

GET `https://api.deepinfo.com/v1/feeds/all-domains` [Reference](https://docs.deepinfo.com/reference/feeds/all-domains/)

| Parameter | Type |  | Description |
| --- | --- | --- | --- |
| `file_format` | string | Optional | `json` (default) or `csv`. |

Request

curl:

```bash
curl "https://api.deepinfo.com/v1/feeds/all-domains?file_format=csv" \
  -H "apikey: YOUR_API_KEY"
```

Python:

```python
import requests

meta = requests.get(
    "https://api.deepinfo.com/v1/feeds/all-domains",
    params={"file_format": "csv"},
    headers={"apikey": "YOUR_API_KEY"},
).json()
print(meta["file_update_time"], meta["file_size"], meta["line_count"])
```

JavaScript:

```javascript
const r = await fetch(
  'https://api.deepinfo.com/v1/feeds/all-domains?file_format=csv',
  { headers: { apikey: 'YOUR_API_KEY' } }
)
const meta = await r.json()
console.log(meta.file_update_time, meta.file_size, meta.line_count)
```

Response

200 OK · application/json

```json
{
  "download_url": "https://…/<pre-signed link, valid for 1 hour>",
  "file_format": "csv",
  "file_size": …,
  "file_update_time": "2026-09-22T10:00:00Z",
  "line_count": …
}
```

### Download Only When the File Changes.

The full file is large, so treat it like a snapshot you refresh, not a page you poll. Store the `file_update_time` you loaded, and skip the download when the endpoint reports it again.

Stream the file to disk rather than into memory. Check `file_size` against free space before you start, and `line_count` against what you wrote when you finish.

[Feeds reference](https://docs.deepinfo.com/reference/feeds/)

Python

```python
import pathlib, requests

API = "https://api.deepinfo.com/v1"
state = pathlib.Path("all-domains.updated")

meta = requests.get(
    f"{API}/feeds/all-domains",
    params={"file_format": "csv"},
    headers={"apikey": "YOUR_API_KEY"},
).json()

if state.exists() and state.read_text() == meta["file_update_time"]:
    raise SystemExit("unchanged")

with requests.get(meta["download_url"], stream=True) as r:
    r.raise_for_status()
    with open("all-domains.csv", "wb") as out:
        for chunk in r.iter_content(chunk_size=1 << 20):
            out.write(chunk)

state.write_text(meta["file_update_time"])
```

### Work That Needs All Domains at Once.

#### [Brand Variants at Scale](https://www.deepinfo.com/solutions/use-cases/brand-impersonation-protection/)

Run your own matching over all registered names, review the candidates, and send the confirmed lookalikes to your takedown process.

#### [Domain Research](https://www.deepinfo.com/solutions/use-cases/domain-intelligence-and-research/)

Count, cluster and compare names across TLDs locally, with no request budget in the way.

#### [Threat Hunting](https://www.deepinfo.com/solutions/use-cases/threat-hunting/)

Test a naming hypothesis against the full list before you spend lookups on the matches.

#### [Inventory Checks](https://www.deepinfo.com/solutions/use-cases/attack-surface-management/)

Match the list against your company and product names to find registrations that may be yours and are missing from your inventory, then confirm ownership with WHOIS.

### The Rest of the Namespace.

- [All Subdomains](https://www.deepinfo.com/data-api/feeds/all-subdomains/) (Full file): All subdomains in the index, in one file.
- [Daily Registered Domain Names](https://www.deepinfo.com/data-api/feeds/daily-registered-domain-names/) (Daily file): Domains registered in the last day.
- [Daily Deleted Domain Names](https://www.deepinfo.com/data-api/feeds/daily-deleted-domain-names/) (Daily file): Domains deleted in the last day.

### See This Data at Work in the Deepinfo Platform

Brand Risk Protection matches these newly seen domains against your brand names, down to letters from other alphabets, and keeps the evidence for a takedown.

- [Brand Risk Protection](https://www.deepinfo.com/platform/brp/) (BRP)
- [Fraudulent Domain Monitoring](https://www.deepinfo.com/platform/brp/fraudulent-domain-monitoring/) (BRP)
- [Deep Search & Insights](https://www.deepinfo.com/platform/dsi/) (DSI)

### Questions About All Domain Names Feed

**Does the file include subdomains?**

No. This feed covers registered domains. Subdomains have their own full file, the [All Subdomains feed](https://www.deepinfo.com/data-api/feeds/all-subdomains/).

**How do we get WHOIS, DNS or certificate data for the domains in the file?**

Use the file to decide which names matter, then call [Domain Detail](https://www.deepinfo.com/data-api/apis/domain-detail/) for the full record of each, or the individual lookups for one layer at a time.

**How do we keep up with changes between full files?**

Pair the full file with the daily feeds for [registered](https://www.deepinfo.com/data-api/feeds/daily-registered-domain-names/), [updated](https://www.deepinfo.com/data-api/feeds/daily-updated-domain-names/) and [deleted](https://www.deepinfo.com/data-api/feeds/daily-deleted-domain-names/) domains. Each covers the last day.

**How is the feed priced?**

Data feeds are priced on their own, by volume and frequency, separately from the Deepinfo Platform. See [Data & API pricing](https://www.deepinfo.com/pricing/#data-pricing).

**Can we use the file inside our own product?**

How the data can be used and shown in your product is part of the agreement. [Talk to the data team](https://www.deepinfo.com/contact/?topic=data-api) about your case.

### Load All Domains Into Your Stack.

We set up access to the feed and walk your team through the file before you build on it.

[Talk to us about access](https://www.deepinfo.com/contact/?topic=data-api) [Feeds reference](https://docs.deepinfo.com/reference/feeds/)
