XML Feed Setup

Google Merchant Feed

Import your products using Google Merchant Center (RSS 2.0) XML feed format.


Overview

SearchX supports importing products from Google Merchant Center XML feeds. This is the most common feed format used by e-commerce platforms and is widely supported by shopping platforms.


Feed Format

Your feed must follow the Google Merchant Center product data specification. Here's an example of the expected XML structure:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
  <channel>
    <title>My Store Products</title>
    <link>https://www.mystore.com</link>
    <description>Product feed for My Store</description>
    <item>
      <g:id>SKU-001</g:id>
      <title>Example Product</title>
      <description>A great product for your needs.</description>
      <link>https://www.mystore.com/products/example</link>
      <g:image_link>https://www.mystore.com/images/example.jpg</g:image_link>
      <g:additional_image_link>https://www.mystore.com/images/example-2.jpg</g:additional_image_link>
      <g:price>29.99 EUR</g:price>
      <g:sale_price>24.99 EUR</g:sale_price>
      <g:availability>in_stock</g:availability>
      <g:brand>Brand Name</g:brand>
      <g:product_type>Category > Subcategory</g:product_type>
      <g:google_product_category>Apparel &amp; Accessories</g:google_product_category>
      <g:condition>new</g:condition>
      <g:color>Blue</g:color>
      <g:size>M</g:size>
      <g:gender>male</g:gender>
      <g:age_group>adult</g:age_group>
      <g:item_group_id>VARIANT-GROUP-001</g:item_group_id>
    </item>
  </channel>
</rss>

Required Fields

FieldDescription
g:idUnique product identifier
titleProduct name
linkURL to the product page

g:id and product identification

The g:id value is exposed as unique_id in SDK events (e.g., SearchX:addToCart). If you use these events to interact with your own backend, make sure g:id matches the identifier your API expects — typically your database primary key. See Event Handling for details.


Optional Fields

FieldDescription
g:image_linkMain product image URL (optional to support edge-case catalogs)
g:priceProduct price with currency (optional to support free items)
g:availabilityStock status: in_stock, out_of_stock, preorder
descriptionProduct description
g:sale_priceDiscounted price
g:brandBrand name
g:product_typeCategory path
g:colorProduct color
g:sizeProduct size
g:additional_image_linkAdditional product images
g:conditionProduct condition: new, refurbished, used
g:genderTarget gender
g:age_groupTarget age group
g:shippingShipping details block
g:item_group_idVariant group ID for grouping product variants
g:google_product_categoryGoogle product taxonomy category

Setting Up

  1. Go to the SearchX Dashboard.
  2. Create a new application or edit an existing one.
  3. Paste your Google Merchant XML feed URL.
  4. Select Google Merchant as the feed type.
  5. Click Import Products.
Configuring a Google Merchant feed in the SearchX dashboard.

Feed Validation

SearchX is lenient when validating feeds — it only strictly enforces ID, Title, and Link. Other fields are imported when present but won't block your import if missing. Check the import log for detailed messages if anything looks off.


Troubleshooting

  • Feed not accessible — Ensure your feed URL is publicly accessible. SearchX needs to fetch the feed directly.
  • Missing products — Check that all required fields are present for each item.
  • Price format — Prices must include a currency code (e.g., 29.99 EUR).
Previous
Shopify (Coming Soon)