Developer guide
Turn a Heureka or Shoptet XML feed into product search
Most Czech and Slovak stores already publish an XML feed for Heureka or Zboží.cz: one file with every product, its price and its parameters. Storag reads it and turns it into a REST API and an MCP server for product search. This guide shows which tags are read, which are not yet, and how to check the feed before you import it.
1. Find the feed URL
Shoptet generates a Heureka feed and a Google Shopping feed in its admin. Other platforms and tools such as Mergado have a similar export. Storag tells the format from the file's first bytes, you never pick one:
- XML with a
<SHOP>root and<SHOPITEM>items: the Heureka, Zboží.cz (in its namespace too) and SAIMON format - Google Merchant RSS, Atom, CSV or TSV
Does your Shoptet store also have the Google feed? Storag reads that one too. See the Google Merchant feed guide.
2. Check that the feed is public
Storag fetches the feed from the public internet. Check it from a terminal outside your company network:
curl -sI "https://your-store.cz/heureka.xml" # expect HTTP 200
curl -s "https://your-store.cz/heureka.xml" | head -c 400 The start of the file should show <SHOP> and the first <SHOPITEM>.
Limits: 200 MB per feed and 120 seconds to download it. The feed must be public: no login, VPN or private network address. Gzip via Content-Encoding works, a packed file (.gz, .zip) does not.
3. What Storag reads from each item
An invented item in the Heureka format:
<SHOP>
<SHOPITEM>
<ITEM_ID>H-2-CERVENY</ITEM_ID>
<PRODUCTNAME>Hrnek Tasso 350 ml červený</PRODUCTNAME>
<DESCRIPTION>Keramický hrnek.</DESCRIPTION>
<URL>https://your-store.cz/hrnek-tasso?barva=cervena</URL>
<IMGURL>https://your-store.cz/img/h2r.jpg</IMGURL>
<PRICE_VAT>149,90</PRICE_VAT>
<MANUFACTURER>Tasso</MANUFACTURER>
<CATEGORYTEXT>Heureka.cz | Dům a zahrada | Kuchyně | Hrnky a šálky</CATEGORYTEXT>
<ITEMGROUP_ID>H-2</ITEMGROUP_ID>
<PARAM>
<PARAM_NAME>Barva</PARAM_NAME>
<VAL>červená</VAL>
</PARAM>
<DELIVERY_DATE>0</DELIVERY_DATE>
</SHOPITEM>
</SHOP>| Feed tag | API field | Note |
|---|---|---|
ITEM_ID | id | Required. Items without it are skipped. |
PRODUCTNAME, PRODUCT | title | Required. PRODUCT wins when both are present. |
DESCRIPTION | description | A PEREX tag wins over it when present. |
URL | link | Your product page, for the agent to link to. |
IMGURL | image_link | The first image only. IMGURL_ALTERNATIVE is not read. |
PRICE_VAT | price.amount | A decimal comma is fine: 149,90 becomes 149.9. |
CURRENCY | price.currency | Optional. Without it a Zboží.cz feed is CZK, any other is CZK on a .cz host and EUR on a .sk host. |
PRICE_OLD | price, sale_price | When higher than PRICE_VAT, it is the price and PRICE_VAT the sale price. |
MANUFACTURER | brand | Searched. |
CATEGORYTEXT | category | "Heureka.cz | Kuchyně | Hrnky" becomes "Kuchyně > Hrnky". |
ITEMGROUP_ID | group_id | Variants of one product share it. |
PARAM | color, size, material | Every value is searched. Barva, Velikost and Materiál also fill color, size and material. |
AVAILABILITY, STOCK_COUNT | availability | in_stock or a count above 0. |
DELIVERY_DATE | availability | Read when neither tag above is there. 0 is in stock, days or a date is not in stock now. With none of the three, every item counts as in stock. |
What the API returns for the item above, shortened:
{ "id": "H-2-CERVENY",
"title": "Hrnek Tasso 350 ml červený",
"brand": "Tasso",
"category": "Dům a zahrada > Kuchyně > Hrnky a šálky",
"price": { "amount": 149.9, "currency": "CZK" },
"sale_price": null,
"availability": "in stock",
"group_id": "H-2",
"color": "červená" }4. Import the feed
- Sign up and create a project.
- Paste the feed URL into the dashboard and click Import feed.
- Wait until the import card shows Searchable. Later, Sync now on the Feed page imports it again.
Count your products with your project's key:
curl -s "https://storag.ai/api/v1/storag/products?page_size=1" \
-H "Authorization: Bearer $STORAG_API_KEY" | jq .totalFree up to 5,000 products and 5,000 queries a month, no credit card. If the feed has more products than your plan allows, the first ones in feed order are indexed.
5. Search it over REST or MCP
curl "https://storag.ai/api/v1/storag/search?q=waterproof+hiking+boots+under+150+in+stock" \
-H "Authorization: Bearer $STORAG_API_KEY" For an agent, add https://mcp.storag.ai/mcp with the same key as an MCP server. The MCP server page has the config for Claude Code, Claude Desktop and Cursor.
What it does not do yet
- Delivery (
DELIVERY) and extra images are not read. - Storag only reads your feed. It does not edit it or send anything back to Heureka or Shoptet.