Version: 2.0Updated on: November 10th, 2026
Every Icecat export file — a reference list, an index file, a Personal Index File, a product data sheet — is fetched the same way: one authenticated HTTPS request, one file. This manual is about that request: how to authenticate, how the address is built, which command to run, and what to do when the file is measured in gigabytes.
If you are updating existing scripts: earlier versions of this manual showed credentials written into the address, as https://user:password@data.icecat.biz/…. That form still works, but it is no longer what we recommend — see section 2.
https://user:password@data.icecat.biz/…
curl
wget
There is no anonymous download. A request without credentials is answered with 401, in both repositories, Open Icecat included.
401
Api-Token
Api-Token: 1f2e3d4c-5b6a-7980-1234-56789abcdef0
Authorization
Appkey
Authorization: Appkey <your key>
curl -u <user>:<password> …
Each works on its own; you never send more than one.
Two reasons, and the first one is the one that costs people days:
You create and revoke tokens yourself; see Manual: Access Tokens as Alternative to IP Whitelists & Basic Auth. The token is shown once, when it is created — store it where your import can read it, and treat it as a password.
A token is not case-sensitive, and it does not expire on a schedule. It stops working when you revoke it, or when the account it belongs to loses access.
# curl — Git Bash on Windows, macOS, Linux curl -L -H "Api-Token: <your token>" -o SuppliersList.xml.gz \ "https://data.icecat.biz/export/level4/refs/SuppliersList.xml.gz"
# wget wget --header="Api-Token: <your token>" -O SuppliersList.xml.gz \ "https://data.icecat.biz/export/level4/refs/SuppliersList.xml.gz"
# Windows PowerShell Invoke-WebRequest -Uri "https://data.icecat.biz/export/level4/refs/SuppliersList.xml.gz" -Headers @{ "Api-Token" = "<your token>" } -OutFile "SuppliersList.xml.gz"
All three write the file into the folder you are standing in, so change into the folder you want the files in before you run them.
If you authenticate with a user name and password instead, replace the header with -u <user>:<password> in curl, with --user and --password in wget, and with -Credential in PowerShell. Writing the password into the address itself works everywhere except PowerShell, which ignores credentials given that way.
-u <user>:<password>
--user
--password
-Credential
https://data.icecat.biz/export/<repository>/<folder>/<file>
<repository>
freexml
level4
<folder>
refs
EN
DE
<file>
SuppliersList.xml.gz
daily.index.xml.gz
files.index.csv.gz
Three rules that each save a support ticket:
.gz
Invoke-WebRequest
-L
The commands below write into the folder you are standing in, so change into the folder you keep your imports in before running them.
$Token = "<your token>" $Repo = "level4" $BaseUrl = "https://data.icecat.biz/export/$Repo" Invoke-WebRequest -Uri "$BaseUrl/refs/SuppliersList.xml.gz" -Headers @{ "Api-Token" = $Token } -OutFile "SuppliersList.xml.gz" -TimeoutSec 600
Save scripts with the extension .ps1. On Windows PowerShell 5.1 add -UseBasicParsing; on PowerShell 7 it is the default and the parameter is ignored.
.ps1
-UseBasicParsing
-Headers
-OutFile
-TimeoutSec
Pre-installed in Git Bash, macOS and most Linux distributions; check with curl --version.
curl --version
curl -L --fail --connect-timeout 30 \ -H "Api-Token: <your token>" \ -o daily.index.xml.gz \ "https://data.icecat.biz/export/level4/EN/daily.index.xml.gz"
-o <file>
--fail
-H
--connect-timeout
--max-time
-s
-v
--fail deserves a sentence of its own. Without it, a message from the server — “file does not exist”, or a message about your IP address — is written into your output file, and your import then fails on what looks like a short, malformed XML. With it, curl returns an error straight away and you know where you stand.
Check with wget --version.
wget --version
wget --header="Api-Token: <your token>" \ --tries=3 --timeout=60 \ -O daily.index.xml.gz \ "https://data.icecat.biz/export/level4/EN/daily.index.xml.gz"
-O <file>
--header
--tries
--timeout
-q
Most export files are a few megabytes. Three are not: CategoryFeaturesList, which is around 1.6 GB as you download it and over 10 GB once decompressed, files.index for a large language, and the combined refs.xml. Those need a different habit.
CategoryFeaturesList
files.index
refs.xml
A HEAD request costs nothing and tells you the size of the file and when it was generated:
HEAD
curl -I -H "Api-Token: <your token>" \ "https://data.icecat.biz/export/level4/refs/CategoryFeaturesList.xml.gz"
Read two things from the answer. Content-Length is the size in bytes of what you are about to download. Last-Modified is when that file was generated — store it after every successful import, and if it has not moved since, there is nothing new to fetch and you can skip the download entirely.
Content-Length
Last-Modified
A download that ended early still leaves a file on disk, and a truncated compressed file fails deep inside your import rather than at the start of it. After every download of a large file, compare the number of bytes you have with the Content-Length you were given. If they differ, the file is incomplete: discard it and fetch it again.
A file of this size is not something you open. It is something you pass through.
# decompress on the fly and hand the XML to your own importer curl -sS -H "Api-Token: <your token>" \ "https://data.icecat.biz/export/level4/refs/CategoryFeaturesList.xml.gz" \ | gunzip -c | your-import-script
# or keep the compressed file, and decompress it when you parse it gunzip -c CategoryFeaturesList.xml.gz | your-import-script
Your parser has to be a streaming one — the kind that reports elements as it meets them, rather than building the whole document first. Every common language has one: iterparse in Python, XMLReader in PHP, XmlReader in .NET, SAX or StAX in Java.
iterparse
XMLReader
XmlReader
One practical note on the first command: it joins two steps that can each fail, and the failure of the first one is easy to miss. Check that the download succeeded as well as the parsing, or download to disk first and parse in a second step.
A transfer of this size will be interrupted sooner or later. It cannot be continued from where it stopped. An export download always starts at the beginning, and the options that normally continue a partial download — -C - in curl, -c in wget, -Resume in PowerShell — do not help here. Delete what was written and run the command again.
-C -
-c
-Resume
One detail that misleads people here: when you ask for the size of a file, as in section 5.1, the answer also says that byte ranges are accepted. The download itself does not deliver them — ask for a range and the whole file comes back from the beginning. Do not build your import around continuing a partial file.
So the thing to plan for is not resuming, but keeping the interruption rare and cheap:
--retry 3 --retry-delay 60
--tries=3
daily.index
If several systems need the same reference file, download it once, onto one machine, and distribute it internally. Ten servers each pulling CategoryFeaturesList is ten times the transfer for exactly the same content, and it is a common reason for a nightly import that does not finish by morning.
Read the message in the body, not the status code. Several different problems are answered with 404, and only the message tells them apart. For an address ending in .xml the message comes back as XML; otherwise as plain text.
404
.xml
Login and password are invalid.
Login or password are invalid.
API token is invalid.
File does not exist.
Please, add this IP address … to the 'Allowed IP addresses' setting of your account.
You are not allowed to access a Full Icecat repository with a free Open Icecat account.
You don't have access to this language folder.
Your subscription has expired.
Invalid group level.
Access to CSV files is not allowed for your account.
If none of these fits, send us the full address you requested, the time you requested it, and the message you received — with your token or password removed.
Read further: Icecat, Manuals, dailyprompt, dailyprompt-2144