Guide, for developers

Turn your Google Merchant feed into a search API

If your store sells on Google Shopping, it already publishes a product feed: one file with every product, its price and its stock. That file is enough to give a chatbot or an AI agent a product search. This guide checks the feed, shows which fields become what, and ends with a REST endpoint and an MCP server on your own products.

1. Check that the feed is public

Storag downloads the feed from the public internet, the way Google does. Check it from a terminal that is not on your office network:

curl -sI "https://your-store.com/feed.xml"          # expect HTTP 200
curl -s "https://your-store.com/feed.xml" | head -c 400

The first lines should be one of:

  • Google Merchant RSS or Atom, with xmlns:g="http://base.google.com/ns/1.0"
  • Google Merchant CSV or TSV, with a header row that includes id and title

Limits: 200 MB per feed and 120 seconds to download it. The feed must be public: no login, VPN or private network address.

2. What Storag reads from each item

A typical item, from our demo feed:

<item>
  <g:id>DEMO-0001</g:id>
  <title>Copperleaf Leather Men's Hiking Boots, Olive</title>
  <link>https://storag.ai/demo#DEMO-0001</link>
  <g:image_link>https://storag.ai/api/v1/storag/demo/img/hiking-boots.svg</g:image_link>
  <g:price>139.90 EUR</g:price>
  <g:availability>in stock</g:availability>
  <g:brand>Copperleaf</g:brand>
  <g:product_type>Outdoor &gt; Footwear &gt; Hiking Boots</g:product_type>
  <g:color>olive</g:color>
  <g:size>41</g:size>
</item>
Google Merchant attribute and the API field it becomes
Feed attributeAPI fieldNote
g:ididRequired. Items without an id are skipped.
titletitleRequired. Searched with every word, typo-tolerant.
descriptiondescriptionSearched.
linklinkYour product page, for the agent to link to.
g:image_linkimage_link
g:pricepriceWrite the currency: 139.90 EUR becomes { amount: 139.9, currency: "EUR" }.
g:sale_pricesale_pricenull unless the item is on sale.
g:availabilityavailability"in stock" is what the in-stock filter keeps.
g:brandbrandSearched, and matched by list_products.
g:product_typecategoryA > B > C path.
g:item_group_idgroup_idVariants of one product share it.
g:color, g:size, g:materialcolor, size, materialOnly when the feed has them.

3. Try the API on our demo feed

Before you sign up, see what the API does with a feed like yours. Our demo store is a fictional 2,000-product outdoor catalogue imported from the same Merchant format. No key:

curl "https://storag.ai/api/v1/storag/demo/search?q=waterproof+hiking+boots+under+150+in+stock&page_size=2"

Response, shortened:

{
  "query": "waterproof hiking boots under 150 in stock",
  "results": [
    { "rank": 1,
      "product": { "id": "DEMO-1937",
        "title": "Larchline Waterproof Men's Hiking Boots, Black",
        "brand": "Larchline", "category": "Outdoor > Footwear > Hiking Boots",
        "price": { "amount": 108.49, "currency": "EUR" }, "sale_price": null,
        "availability": "in stock", "color": "black", "size": "38" } },
    { "rank": 2,
      "product": { "id": "DEMO-1921",
        "title": "Saltmarsh Waterproof Men's Hiking Boots, Navy",
        "brand": "Saltmarsh", "category": "Outdoor > Footwear > Hiking Boots",
        "price": { "amount": 84.49, "currency": "EUR" }, "sale_price": null,
        "availability": "in stock", "color": "navy", "size": "39" } }
  ],
  "total": 15, "page": 1, "pageSize": 2,
  "meta": { "judged": true, "complete": false, "alternatives": false, "fallback": null }
}

"under 150" became a price filter and "in stock" an availability filter: all 15 results are in-stock boots under 150 EUR. Misspelt words still match. If no product has every word, you get the closest ones and meta.fallback says so, instead of an empty page.

Ask the demo store in the browser

4. Import your feed

  1. Sign up and create a project.
  2. Paste your feed URL in the dashboard and click Import feed.
  3. Wait until the import card says Searchable. Storag then keeps the catalogue in sync with the feed.

Check the count with your project key:

curl -s "https://storag.ai/api/v1/storag/products?page_size=1" \
  -H "Authorization: Bearer $STORAG_API_KEY" | jq .total

Free 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

The same request as the demo, on your own products:

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. It has four read-only tools, and the MCP server page has the config for Claude Code, Claude Desktop and Cursor.

What it does not do yet

  • Hosted only, no self-hosted version.
  • Storag reads your feed. It does not edit it or send anything back to Google.