See all services → Shopify Plus Partner
Catalog Developer

Show Option Swatch Images in Catalog API Responses

The Catalog API get_product response can now return a swatch image URL for each product option value. Agent surfaces and app integrations can show a picture of each colour or finish instead of a text label.

Executive summary

What changed

In a get_product response, an option value can now include a swatch object. That object has one field, image_url, holding the URL of an image that represents the value. Not every option value carries swatch data, and when none exists the response simply omits the swatch key rather than returning an empty object or a null.

The field is scoped deliberately narrowly. Catalog search and lookup operations do not return swatches, and swatches are not present in the options array attached to a variant. They appear only when you request full product details. No agent profile change is required to receive them, and because the field is additive and optional, existing integrations keep working untouched.

Why it matters

Agentic and headless surfaces have been working with a thinner product representation than a Shopify storefront theme has access to. Colour, finish, and material are exactly the attributes where a text label performs worst: a buyer evaluating eleven shades of walnut veneer or six grades of brushed steel cannot act on names alone. Until now, surfacing those images meant a second call into a different API or a locally maintained mapping between option values and asset URLs, both of which drift.

The practical gain is a reduction in integration surface area rather than a new capability. One response now carries both the option structure and its visual representation, which matters most for merchants selling configurable or finish-heavy products. If your catalog falls into that category, our guidance on simplifying the buying journey for complex products covers how option presentation affects completion rates.

Role-specific impact

Use-case example

Real-world scenario

A furniture manufacturer sells sixty upholstered frames, each offered in twenty-two fabric options. Its agent integration previously rendered those options as names such as Heather Flax and Heather Dune, which buyers could not distinguish. Reading swatch.image_url for each value and rendering a 48 pixel thumbnail beside the label took one afternoon of work. Across the following month, option selection abandonment on agent-sourced sessions dropped from 41 percent to 24 percent, and support messages asking for fabric photographs fell by roughly two-thirds.

Implementation checklist

  1. Confirm your integration calls get_product rather than relying only on catalog search or lookup operations.
  2. Read product.options[].values[].swatch.image_url and treat the swatch key as optional on every value.
  3. Render the image beside the option value or in its place, and keep the label visible or exposed to screen readers.
  4. Fall back to the label when a value has no swatch or when its image fails to load.
  5. Continue to set each option state from the availability and existence fields, never from whether a swatch is present.
  6. Audit your catalog for option values with no swatch assigned, and prioritise colour and material options for asset coverage.
  7. Verify thumbnail rendering at small sizes, since fabric and finish images lose their distinguishing detail quickly.

FAQ

Q: Do we need to update our agent profile or request new access to receive swatches?

A: No. The field is returned on full product detail responses without any profile change, and it is additive, so integrations that ignore it continue to behave exactly as before.

Q: Why is the swatch missing on some option values?

A: Swatch data is not defined for every option value, and the response omits the key when there is none. That is a catalog data gap rather than an API fault, so the fix is to assign the image in the admin and to render the label as a fallback in the meantime.

Resources

Option swatches in the Global Catalog extension reference

Need guidance? Talk to Makro.