Skip to main content
get_product loads a single product when you already have its id from search or lookup. Use it for full detail and interactive variant selection. See quickstart to install the UCP CLI.

Request

Variant selection

For products with configurable options (color, size, etc.), pass catalog.selected to narrow the variant. The response includes options (each value carries an exists flag) and selected (the effective selections after any server-side relaxation). Use a product that has variants — solo products return no options.
preferences controls relaxation order when no exact variant matches all selections. Options are dropped from the end of the list first — e.g. ["Color", "Size"] keeps Color and relaxes Size. This mirrors GET /v1/products/{id} query params option_<name>=<label> (e.g. option_color=Blue&option_size=10).

Response shape

The product object follows the UCP get_product spec: When a selection resolves to a different canonical product (e.g. switching color), product.id reflects the resolved product.

Which tool should I use?

What’s next

Extension reference

Extra fields and filters