File type & encoding
The product feed should be in CSV or XML format and preferably compressed. The file extension should reflect the format and compression method.
The encoding of the feed should be in UTF-8 format.
Format | Example URL |
Pure CSV | http://example.com/feed.csv |
CSV with Gzip compression | http://example.com/feed.csv.gz |
CSV with Zip compression | http://example.com/feed.csv.zip |
Pure XML | http://example.com/feed.xml |
XML with Gzip compression | http://example.com/feed.xml.gz |
XML with Zip compression | http://example.com/feed.xml.zip |
CSV
CSV files require a header line with the column designations. Any CSV formats, such as TSV, Excel-compatible or similar, can be used.
To avoid problems during import, the following restrictions should be observed:
A semicolon should be used as a separator.
The field values should be specified in quotation marks.
The newline control character should be used as a line break.
"p_id"; "name"; "pr"; "img"; "url"
"ABC123"; "Color television"; "1234.56"; "http://www.example.com/abc123.jpg"; "https://www.example.com/abc123.html"
"DEF456"; "Black and white television"; "234.56"; "http://www.example.com/def456.jpg"; "https://www.example.com/def456.html"
...
<?xml version="1.0" encoding="UTF-8"?>
<products>
<product>
<p_id>ABC123</p_id>
<name>Color TV</name>
<pr>1234.56</pr>
<img>https://www.example.com/abc123.jpg</img>
<url>https://www.example.com/abc123.html</url>
</product>
<product>
<p_id>DEF456</p_id>
<name>Black and white TV</name>
<pr>234.56</pr>
<img>https://www.example.com/def456.jpg</img>
<url>https://www.example.com/def456.html</url>
</product>
...
</products>