AllZonefiles.io API Documentation

Access and download complete zonefiles and domain lists via our simple and powerful API.

1. Authentication

2. Zonefiles

3. .ZIP with all zonefiles

4. New/expired domain lists


1. Authentication

1.1. Authentication

To use the API, include your API token in the Authorization header:

Authorization: Bearer YOUR_API_TOKEN

2. Zonefiles

2.1. GET /api/v1/zones - get list of all zonefiles

Retrieve a list of all available domain zones.

GET https://allzonefiles.io/api/v1/zones

Response:

{
  "zones": [
    {"name": "com", "type": "gTLD", "domains": 155447708, "latest_update_date": "2025-06-27", "filesize_bytes": 616970673},
    {"name": "net", "type": "gTLD", "domains": 12332251, "latest_update_date": "2025-06-27", "filesize_bytes": 49463253},
    {"name": "uk",  "type": "ccTLD", "domains": 9750218, "latest_update_date": "2025-06-27", "filesize_bytes": 40290566},
    ...
  ]
}

Example of CURL request:

curl -H "Authorization: Bearer allzfio_5c1572d016b846ce99ce7a177922ff21" https://allzonefiles.io/api/v1/zones

2.2. GET /api/v1/zones/{zone} - get list of all zonefiles for specified zone

Retrieve a list of all available zonefiles for specified zone

GET https://allzonefiles.io/api/v1/zones/dev

Response:

{
  "zone": "dev",
  "type": "gTLD",
  "zonefiles": [
    {"date": "2026-06-05", "domains": 677062, "filesize_bytes": 2440862},
    {"date": "2026-06-04", "domains": 676378, "filesize_bytes": 2438361},
    {"date": "2026-06-03", "domains": 675606, "filesize_bytes": 2435613},
    ...
  ]
}

Example of CURL request:

curl -H "Authorization: Bearer allzfio_5c1572d016b846ce99ce7a177922ff21" https://allzonefiles.io/api/v1/zones/dev

2.3. GET /api/v1/zones/{zone}/dl - download latest zonefile

Download the latest zonefile (file is gzipped) for a specific zone (e.g., .com).

GET https://allzonefiles.io/api/v1/zones/com/dl

Response: Returns a downloadable .txt.gz file.

Example of CURL request (save zonefile for dev into file dev.txt.gz):

curl -H "Authorization: Bearer allzfio_5c1572d016b846ce99ce7a177922ff21" -o dev.txt.gz https://allzonefiles.io/api/v1/zones/dev/dl

File excerpt (gzippped text file, a list of domain names, one domain name per line):

0--0.dev
0-0-0-0.dev
0-0-0.dev
0-0.dev
0-1.dev
0-2.dev
0-3.dev
0-9.dev
0-bit.dev
0-day.dev
0-matter.dev
0-n.dev
0.dev
00.dev
000.dev
0000.dev
00000.dev
00000000.dev
...

2.4. GET /api/v1/zones/{zone}/dl/{date} - download historic zonefile for zone for date

Download historic zonefile (file is gzipped) for a specific zone (e.g., .com) for a specific date (e.g., 2026-05-11 - May 11, 2026).

GET https://allzonefiles.io/api/v1/zones/com/dl/2026-05-11

Response: Returns a downloadable .txt.gz file.

Example of CURL request (save zonefile for zone .dev for date May 11, 2026 into file dev.2026-05-11.txt.gz):

curl -H "Authorization: Bearer allzfio_5c1572d016b846ce99ce7a177922ff21" -o dev.2026-05-11.txt.gz https://allzonefiles.io/api/v1/zones/dev/dl/2026-05-11

3. .ZIP with all zonefiles

3.1. GET /api/v1/all - download ZIP archive with all zonefiles

Retrieve a list of .ZIP files with all zonefiles.

GET https://allzonefiles.io/api/v1/all

Response:

{
  "lists": [
    {"date":"2026-06-04","domains":367042384,"filesize_bytes":1482563882},
    {"date":"2026-06-03","domains":366897871,"filesize_bytes":1481974088},
    ...
  ]
}

Examples of CURL request:

curl -H "Authorization: Bearer allzfio_5c1572d016b846ce99ce7a177922ff21" https://allzonefiles.io/api/v1/all

3.2. GET /api/v1/all/dl - download latest .ZIP archive with all zonefiles

Download latest .ZIP file with all zonefiles.

GET https://allzonefiles.io/api/v1/all/dl

Response: Returns a downloadable .zip file with all zonefiles in it.

Example of CURL request (download latest ZIP file with all zonefiles into file all.latest.zip):

curl -H "Authorization: Bearer allzfio_5c1572d016b846ce99ce7a177922ff21" -o all.latest.zip https://allzonefiles.io/api/v1/all/dl

3.3. GET /api/v1/all/dl/{date} - download historic .ZIP archive with all zonefiles for a specified date

Download historic .ZIP file with all zonefiles for a specified date (e.g., 2026-05-11 - May 11, 2026).

GET https://allzonefiles.io/api/v1/all/dl/2026-05-11

Response: Returns a downloadable .zip file with all zonefiles in it.

Example of CURL request (download .ZIP file with all zonefiles into file all.2026-05-11.zip):

curl -H "Authorization: Bearer allzfio_5c1572d016b846ce99ce7a177922ff21" -o all.2026-05-11.zip https://allzonefiles.io/api/v1/all/dl/2026-05-11

4. New/expired domain lists

4.1. GET /api/v1/{listName} - get list of new or expired domain lists

Retrieve a list of new or expired domain lists for each day. {listName} can be new or expired

GET https://allzonefiles.io/api/v1/new
GET https://allzonefiles.io/api/v1/expired

Response:

{
  "lists": [
    {"date":"2025-08-12","domains":281130,"filesize_bytes":1667401},
    {"date":"2025-08-11","domains":188591,"filesize_bytes":1159870},
    ...
  ]
}

Examples of CURL request:

curl -H "Authorization: Bearer allzfio_5c1572d016b846ce99ce7a177922ff21" https://allzonefiles.io/api/v1/new
curl -H "Authorization: Bearer allzfio_5c1572d016b846ce99ce7a177922ff21" https://allzonefiles.io/api/v1/expired

4.2. GET /api/v1/{listName}/dl - download latest new/expired domain list

Download latest list of new or expired domains (file is gzipped).

{listName} should be new or expired

GET https://allzonefiles.io/api/v1/new/dl
GET https://allzonefiles.io/api/v1/expired/dl

Response: Returns a downloadable .txt.gz file.

Example of CURL request (save latest available list of new domains into file new.txt.gz):

curl -H "Authorization: Bearer allzfio_5c1572d016b846ce99ce7a177922ff21" -o new.txt.gz https://allzonefiles.io/api/v1/new/dl

File excerpt (gzippped text file, a list of domain names, one domain name per line):

0-0-0-0-0-hey-you-geek-click-here.ch
0-a.pro
0-abv.com
0-agent.ru
0-amazon.ru
0-cash.ru
0-chill.com
0-cy-xn1is8y6jlgk0rr.com
0-i-b-d.com
0-j-a-t.com
0-l.ink
0-money.ru
0-qpgpxn1dtcq05-otvg.com
0-x6.com
00.mom
000-andoid.com
000.game
0000-1.vip
000000.digital
00000667.com
0000227.xyz
0001xxd1.store
000214.lol
0002302.com
0002302.pro
0002626.xyz
000267.xyz
000279136.com
000287.xyz
000289.xyz
000296b.cfd
000325.lol
000338.lol
000390.lol
...

4.3. GET /api/v1/{listName}/dl/{date} - download historic new/expired domain list for a specified date

Download list of new or expired domains (file is gzipped) for a specified date (e.g., 2025-08-11).

{listName} should be new or expired

{date} is in YYYY-mm-dd format, for instance 2025-08-11 - August 11, 2025

GET https://allzonefiles.io/api/v1/new/dl/2025-08-11
GET https://allzonefiles.io/api/v1/expired/dl/2025-08-11

Response: Returns a downloadable .txt.gz file.

Example of CURL request (save list of new domains for a date 2025-08-11 into file new.2025-08-11.txt.gz):

curl -H "Authorization: Bearer allzfio_5c1572d016b846ce99ce7a177922ff21" -o new.2025-08-11.txt.gz https://allzonefiles.io/api/v1/new/dl/2025-08-11