Emailyze offers an on-premise data dump: a gzipped JSONL snapshot of all disposable domains. Enterprises that need data sovereignty, offline lookup, or air-gapped deployments can download this file and use it in their own systems. This guide covers the format, update frequency, download process, sync workflow, and use cases.

Overview: What the Dump Is and Why Use It

The dump is a complete snapshot of Emailyze's domain database at a point in time. Each line is a JSON object representing one domain with its metadata (is_disposable, provider_type, risk_score, MX records, first_seen, last_seen, sources, etc.). The file is gzipped to minimize bandwidth. Use it when you need the full dataset on your side: offline lookups, air-gapped environments, compliance requirements, or custom ETL pipelines that merge with your own data.

Format: JSONL, Gzipped, Schema

The file format is JSONL (JSON Lines): one JSON object per line, UTF-8 encoded. The file is compressed with gzip (.jsonl.gz). Each line decodes to a single JSON object. Example line:

{"domain":"tempmail.com","is_disposable":true,"provider_type":"disposable","risk_score":95,"mx_records":["mx1.tempmail.com"],"first_seen":"2022-03-15","last_seen":"2024-11-20","sources":["disposable-email-domains","github-lists"],"status":"active"}

Schema fields: domain (string), is_disposable (boolean), provider_type (string), risk_score (number 0–100), mx_records (array of MX hostnames), first_seen (ISO date or null), last_seen (ISO date or null), sources (array of source names), source_flags (object), status (e.g., "active"). Additional fields may be added in future versions; consumers should ignore unknown keys.

Updates: Hourly

The dump is regenerated hourly by the ETL pipeline. A Celery Beat task runs at the top of each hour (e.g., :30 past) to publish a fresh snapshot. The filename includes a timestamp: disposable-domains-full-YYYYMMDDHH.jsonl.gz (e.g., disposable-domains-full-2025030614.jsonl.gz for 2025-03-06 14:00 UTC). Each download returns the latest snapshot; the timestamp in the filename reflects when it was generated.

Download: API Endpoint and Auth

Download via GET /v1/download/. Authentication is required: pass your API key in the X-API-Key header or as a query parameter ?key=YOUR_API_KEY. The response is application/gzip with a Content-Disposition header specifying the filename. Example:

curl -H "X-API-Key: YOUR_KEY" -o domains.jsonl.gz "https://api.emailyze.xyz/v1/download/"

Or with query param: curl -o domains.jsonl.gz "https://api.emailyze.xyz/v1/download/?key=YOUR_KEY". The response is binary; decompress with gunzip or read with a gzip-capable library.

Sync Workflow: Cron and Scripting

To keep your local copy up to date, run a cron job hourly (or at another interval that matches the publish schedule). Example cron: 0 /opt/emailguard/sync-dump.sh (every hour at minute 0). The script can: (1) Download the latest file. (2) Optionally diff against the previous file (e.g., parse both and compute added/removed domains). (3) Replace the local file or update a database. For full replace, simply overwrite: curl ... -o /data/disposable-domains.jsonl.gz. For diff-based updates, you'd need to parse the previous and new files and apply changes to your lookup store.

Use Cases

Offline lookup: Load the JSONL into a local database (SQLite, PostgreSQL) or in-memory hash map. Key by domain for O(1) lookups. No network call needed at check time.

Air-gapped: In environments with no outbound internet, transfer the dump via secure media. Update periodically by repeating the transfer.

Compliance: Some organizations require that sensitive data (e.g., customer emails) never leave their network. By downloading the domain list and doing lookups locally, you avoid sending emails to a third-party API.

Custom pipelines: Merge the dump with your own domain lists, enrich with internal data, or feed into ML models. The JSONL format is easy to stream and process.

Self-Hosted Option

If you run the full Emailyze stack with Docker (see the Docker integration guide), the download endpoint is available at your self-hosted URL. The ETL pipeline publishes the snapshot locally; no data leaves your infrastructure. Use GET http://your-server:8000/v1/download/ with your API key.

Processing the JSONL File

To process the gzipped JSONL, use a streaming approach for large files. In Python: import gzip, json; f = gzip.open("domains.jsonl.gz", "rt"); [json.loads(line) for line in f]. In Node.js: use zlib.createGunzip() and a line-by-line parser. In bash: gunzip -c domains.jsonl.gz | while read line; do echo "$line" | jq .; done. For database import, batch insert rows (e.g., 1000 at a time) to avoid memory spikes. Index the domain column for fast lookups.

Diff-Based Sync

For incremental updates, download the new file and diff against the previous one. Parse both files (streaming) and build sets of domains. Added = new - old, removed = old - new. Apply changes to your lookup store: insert added, delete removed. This reduces write load compared to full replace. The filename timestamp helps you track which snapshot you have; consider storing it in a manifest file.

Rate Limits and Quotas

The download endpoint is subject to rate limits. Typically one download per hour is sufficient since the file updates hourly. Excessive requests may be throttled. Ensure your API key has download access (included in standard tiers). For very high volume, contact support for custom arrangements.

Filename Convention

The filename disposable-domains-full-YYYYMMDDHH.jsonl.gz uses UTC. Example: disposable-domains-full-2025030614.jsonl.gz is the snapshot for 2025-03-06 14:00 UTC. Use this to detect if you have the latest file and to implement versioning in your sync script. Store the filename with your local copy for audit purposes.

Schema Evolution

New fields may be added to the JSONL schema in future releases. Consumers should parse only the fields they need and ignore unknown keys. Avoid strict schema validation that fails on extra fields. The core fields (domain, is_disposable, provider_type, risk_score, first_seen, last_seen, sources) are expected to remain stable. Check the changelog when upgrading to see if new fields were added. When building a lookup index, consider indexing both domain and is_disposable for fast filtering. The risk_score field supports range queries if you need to segment by risk level. For compliance audits, retain the filename and download timestamp to demonstrate when your copy was last refreshed. The gzipped format typically achieves 5–10x compression; a full snapshot may be tens of MB compressed versus hundreds uncompressed, so bandwidth requirements are modest. Plan your sync window accordingly.

See Also