API Documentation

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

Authentication

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

Authorization: Bearer YOUR_API_TOKEN

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

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

Download the domain list file (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
...

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

GET /api/v1/{listName}/{date}/dl - download new or expired domain list for a date

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

{listName} should be new or expired

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

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

Response: Returns a downloadable .txt.gz file.

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

curl -H "Authorization: Bearer allzfio_5c1572d016b846ce99ce7a177922ff21" -o new.20250811.txt.gz https://allzonefiles.io/api/v1/new/2025-08-11/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
...