Manual for Channel Partners: Downloading Export Files

By
How to Retrieve Export Files

Version: 2.0
Updated 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.


1. What you need before you start

You needNotes
A Channel Partner accountA brand account, or a shop account of another type, cannot download from these repositories
An active subscriptionOpen Icecat or Full Icecat; it decides which repository you may read
CredentialsAn access token, an application key, or your user name and password — see section 2
A client that handles large filesAnything that can write a stream to disk: curl, wget, PowerShell, or your own code

There is no anonymous download. A request without credentials is answered with 401, in both repositories, Open Icecat included.

2. Authentication

2.1 The three ways in

MethodWhat you sendExample
Access tokenThe header Api-TokenApi-Token: 1f2e3d4c-5b6a-7980-1234-56789abcdef0
Application keyThe header Authorization with the word AppkeyAuthorization: Appkey <your key>
User name and passwordHTTP basic authenticationcurl -u <user>:<password> …

Each works on its own; you never send more than one.

2.2 Use the access token

Two reasons, and the first one is the one that costs people days:

  • With a token, the IP whitelist on your account is not checked. With an application key or with a password it is, so the moment you move your import to a new server, add a second server, or run it from a cloud function whose address changes, the download starts failing until that address has been added to your account. A token travels with the request, not with the machine.
  • A password on a command line ends up in your shell history, your process list and your logs. A token can be replaced without changing the password of the account.

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.

2.3 The same request in three clients

# 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.

3. The address of a file

https://data.icecat.biz/export/<repository>/<folder>/<file>
PartValues
<repository>freexml for Open Icecat, level4 for Full Icecat
<folder>refs for reference files; a language code such as EN or DE for index files and data sheets
<file>The file name, for example SuppliersList.xml.gz, daily.index.xml.gz, files.index.csv.gz

Three rules that each save a support ticket:

  • Always ask for the .gz address. The same file is also served uncompressed, without the .gz, and the server then decompresses it for you as it sends. For a reference list of a few megabytes that is merely wasteful; for a file of several gigabytes it is a transfer many times larger than it needs to be. Download the .gz and decompress on your side — section 5.3.
  • Follow redirects. A request for a product data sheet is answered with a redirect to where that data sheet is produced. wget and Invoke-WebRequest follow redirects on their own; curl needs -L. Without it you receive an empty file and no error.
  • An address that ends in a slash returns the list of files in that folder, which is the quickest way to confirm a file name. It needs the same credentials as the files themselves.

4. The commands in full

The commands below write into the folder you are standing in, so change into the folder you keep your imports in before running them.

4.1 Windows PowerShell

$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.

ParameterWhat it does
-HeadersSends your token, and any other header
-OutFileWrites the response to a file instead of into memory — always use it for export files
-CredentialAuthenticates with a user name and password instead of a token
-TimeoutSecHow long to wait; the default is too short for large files

4.2 curl

Pre-installed in Git Bash, macOS and most Linux distributions; check with 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"
OptionWhat it does
-o <file>Writes to a file. Without it the compressed content is printed to your screen.
-LFollows redirects — required for product data sheets
--failReturns an error instead of saving the error message as if it were the file
-HSends a header, which is how the token travels
-u <user>:<password>Basic authentication instead of a token
--connect-timeout, --max-timeHow long to wait for the connection, and for the whole transfer
-s, -vSilent, for scripts; verbose, for finding out why something fails

--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.

4.3 wget

Check with 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"
OptionWhat it does
-O <file>Writes to a file under that name
--headerSends your token
--user, --passwordBasic authentication instead of a token
--tries, --timeoutHow many attempts, and how long each may take
-q, -vQuiet, for scripts; verbose, for diagnosis

5. Large files

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.

5.1 Look before you download

A HEAD request costs nothing and tells you the size of the file and when it was generated:

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.

5.2 Check what you received

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.

5.3 Work with the compressed stream

A file of this size is not something you open. It is something you pass through.

  • Do not read it into memory. A 10 GB document loaded into a variable will exhaust the memory of most servers.
  • Do not open it in a text editor, and do not open it in a browser. Both try to hold the whole document, and both will stop responding.
  • Do not decompress it to disk first if you can avoid it. Sending the compressed file straight into your parser saves you the 10 GB of disk that the decompressed copy would occupy.
# 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.

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.

5.4 If the download is interrupted

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.

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:

What to doWhy
Take the .gz addressThe transfer is a fraction of the size, so there are far fewer minutes in which it can break
Download once, onto one machineSection 5.5. Every extra server is another transfer that can fail
Give the client generous timeoutsA slow stretch should not be treated as a failure: --max-time in curl, --timeout in wget, -TimeoutSec in PowerShell
Let the client retry on its own--retry 3 --retry-delay 60 in curl, --tries=3 in wget. Each attempt starts from the beginning, so allow the time for it
Refresh it only as often as you needCategoryFeaturesList changes slowly; for most partners monthly is enough. Use Last-Modified from section 5.1 to skip a download you do not need
Take the smaller file where there is onedaily.index instead of files.index, a vertical file instead of the whole catalogue, or a Personal Index File instead of the full index

5.5 Download once, use many times

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.

6. When something goes wrong

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.

What you seeWhat it meansWhat to do
401, no messageYou sent no credentials at allEvery download needs them, Open Icecat included
Login and password are invalid. / Login or password are invalid.The user name or the password is not acceptedCheck them, and consider switching to a token
API token is invalid.The token is not recognisedCheck that you copied it whole, and that it has not been revoked
File does not exist.The file name or the folder is wrong — or your credentials are not accepted for this folderOpen the folder address, the one ending in a slash, to see the real file names
Please, add this IP address … to the 'Allowed IP addresses' setting of your account.Your account is IP-protected, and you authenticated with a password or an application keyAdd that address to your account, or switch to an access token, for which the check is skipped
You are not allowed to access a Full Icecat repository with a free Open Icecat account.You asked for level4 with an Open Icecat subscriptionUse freexml, or upgrade
You don't have access to this language folder.Your subscription does not cover that languageContact your account manager
Your subscription has expired.The subscription has run outContact your account manager
Invalid group level.The account is not a Channel Partner accountBrand accounts cannot read these repositories
Access to CSV files is not allowed for your account.CSV files are not included for your accountUse the XML files, or contact your account manager
An empty file, and no errorA redirect that was not followedAdd -L to curl
A short file that your parser rejectsAn error message saved as if it were the fileAdd --fail to curl, and compare the file size with Content-Length

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.

manual thumbnail3

Manual for Channel Partners: Icecat Live HTML

Icecat Live is a (free) service that enables you to insert real-time produc...
 June 10, 2022

Icecat Add-Ons Overview. NEW: Claude AI, ChatGPT, AgenticFlow.AI, Mindpal.space and BoltAI

Icecat has a huge list of integration partners, making it easy for clients ...
 September 3, 2025
LIVE JS

How to Create a Button that Opens Video in a Modal Window

Recently, our Icecat Live JavaScript interface was updated with two new fun...
 November 3, 2021
New Standard video thumbnail

Autheos video acquisition completed

July 21, Icecat and Autheos jointly a...
 September 7, 2021
Manual How to Import Free Product Content Into Your Webshop via Icecat

Manual: How to Import Free Product Content Into Your E-commerce System via Icecat API

This guide is intended for developers working with Icecat via API. The docu...
 May 24, 2024