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.), passcatalog.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
Theproduct object follows the UCP get_product spec:
| Field | Notes |
|---|---|
options | Selectable dimensions with a per-value exists flag (present on get_product, not search) |
selected | Effective selections after relaxation — diff against your request to detect relaxation |
variants | Per-merchant listings (Channel3 global extension) |
product.id reflects the resolved product.
Which tool should I use?
| You have… | Use |
|---|---|
| A search phrase | search_catalog |
| A list of ids or URLs | lookup_catalog |
| One product id | get_product |
What’s next
Extension reference
Extra fields and filters