# Product object

{% hint style="warning" %}
These Shopify REST-backed Liquid objects are legacy. The product and variant Liquid objects no longer work, and Shopify is phasing out the REST Admin API that these objects depend on. Use [GraphQL](/core/actions/shopify.md#graphql) for new work; see the [Shopify REST Admin API notice](/platform/liquid/objects/shopify.md) and [migration guides](/resources/converting-tasks-from-shopify-rest-to-graphql.md).
{% endhint %}

## How to access it

* Use `{{ product }}` in tasks responding to shopify/products events
* Look up specific products by their ID, using `{{ shop.products[1234567890] }}`
* List published products using `{{ shop.products.published }}`
* List unpublished products using `{{ shop.products.unpublished }}`

## What it contains

* [Every property from the Product resource in the Shopify REST Admin AP](https://shopify.dev/docs/admin-api/rest/reference/products/product#properties)I **(warning: Shopify delivers product.tags as a comma-delimited string,** ***not*** **an array of strings!)**
* An array of related [variant objects](/platform/liquid/objects/shopify/variant.md): `{{ product.variants }}`
* An array of related [collection objects](/platform/liquid/objects/shopify/collection.md): `{{ product.collections }}`
* An array of related [product image objects](/platform/liquid/objects/shopify/product-image.md): `{{ product.images }}`
* The related [metafields object](/platform/liquid/objects/shopify/metafields/metafield-collection.md): `{{ product.metafields }}`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.mechanic.dev/platform/liquid/objects/shopify/product.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
