Domain download API

Use our API to download domain lists directly from your server.
API is available only in Pro or Ultimate plans.
REST API format: https://zonefiles.io/a/yourToken/listType/zoneId/

yourToken

Your access token. You can find your token in your dashboard.

listType

listType value Description Output data format
full Full list of domain names (all zones including country-code domains). Plain text, 1 domain per line
update New domains added for the last 24h. Only for generic domains. Plain text, 1 domain per line
 
fulldata Full list of domain names including Domain name, DNS servers, IP, Geo IP, Geo by html, web server, hostname, emails, {% reserved service field %}, phone numbers, Majestic traffic rank, and discovery date.

This list is available only in Ultimate plan.
.CSV (comma-separated) format.
Example: "domain.com","dns1.net,dns2.net", "8.8.8.8","US","US","Nginx","srv01.myserverhost.com", "www.info@domain.com,admin@domain.com","","+1-541-754-3010","31","2017-03-13"
updatedata New domains added for the last 24h including Domain name, DNS servers, IP, Geo IP, Geo by html, web server, hostname, emails, {% reserved service field %}, phone numbers, Majestic traffic rank, and discovery date.

This list is available only in Ultimate plan.
.CSV (comma-separated) format (similar to fulldata method)

Note: output is plain-text by default. For compressed .gz output simply add -gz key to any of listType values (e.g: full-gz, update-gz, etc).
If you want to use a front-end utility to read the .gz file, it's required to add '.gz' to the extension of the downloaded file. It will provide the full compatibility for all archivers. For example: "1903.csv.gz".

zoneId

You can get the array of all zones in JSON format using API:
https://zonefiles.io/a/yourToken/zone_list/
Each zone in that JSON include fields:
id Zone id
zone Zone name
type Zone type (0 - generic / 1 - cctld)
domains_new The number of new domains within 24 hours
Domain zone Id OR 'all-zones-in-one' Id.
zoneId value Zone description Total domains in zone
1 All domain zones in one file 272,499,769
1852 .COM zone 154,912,870
2445 .NET zone 12,406,968
2504 .ORG zone 11,160,312
2193 .INFO zone 3,816,568
1716 .BIZ zone 1,220,388
2858 .UK zone 9,775,318
1903 .DE zone 6,195,716
2634 .RU zone 5,867,713
3098 .XYZ zone 4,158,795
2700 .SHOP zone 3,385,498
2826 .TOP zone 3,328,031
2498 .ONLINE zone 2,972,784
1812 .CH zone 2,534,576
2754 .STORE zone 1,741,095
2468 .NL zone 1,683,981
2214 .IT zone 1,526,071
2039 .FR zone 1,517,136