# Shop 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 `{{ shop }}` in any task, at any time

## What it contains

* [Every property from the Shop resource in the Shopify REST Admin API](https://shopify.dev/api/admin/rest/reference/store-properties/shop)

### Associated resources

{% hint style="warning" %}
Use caution when loading large sets of resources through the shop object. Using code like `{% product in shop.products %}` will result in Mechanic downloading the complete REST representation of all products in the store, which may be more data than is necessary or useful. When working with large amounts of data, consider \[using GraphQL]\(../../../../core/shopify/read/graphql-in-liquid.md) instead.

For clarity: looking up a single resource by ID will only result in a single REST API call, as in `{% assign product = shop.products[1234567890] %}`

. If many of these requests are necessary, it may *still* be useful to look to GraphQL, but this kind of usage does not load more than the specific, single resource identified.
{% endhint %}

* The admin URL of the shop (e.g. <https://admin.shopify.com/store/mechanic-shop/>)
  * `{{ shop.admin_url }}`
* An index of [collection objects](/platform/liquid/objects/shopify/collection.md)
  * `{{ shop.collections[1234567890] }}`
  * `{% for collection in shop.collections %}`
* An index of [product objects](/platform/liquid/objects/shopify/product.md)
  * `{{ shop.products[1234567890] }}`
  * `{% for product in shop.products %}`
  * `{% for product in shop.products.published %}`
* An index of [variant objects](/platform/liquid/objects/shopify/variant.md)
  * `{{ shop.variants[1234567890] }}`
  * `{% for variant in shop.variants %}`
* An index of [order objects](/platform/liquid/objects/shopify/order.md)
  * `{{ shop.orders[1234567890] }}`
  * `{% for order in shop.orders %}`
  * `{% for order in shop.orders.paid %}`
* An index of [draft order objects](/platform/liquid/objects/shopify/draft-order.md)
  * `{{ shop.draft_orders[1234567890] }}`
  * `{% for draft_order in shop.draft_orders.invoice_sent %}`
* An index of [customer objects](/platform/liquid/objects/shopify/customer-object.md)
  * `{{ shop.customers[1234567890] }}`
  * `{{ shop.customers["jdoe@example.com"] }}`
  * `{% for customer in shop.customers %}`
* An index of [price rule objects](/platform/liquid/objects/shopify/price-rule.md)
  * `{{ shop.price_rules[1234567890] }}`
  * `{% for price_rule in shop.price_rules %}`
* A lookup of [discount code objects](/platform/liquid/objects/shopify/discount-code.md)
  * `{{ shop.discount_codes["SUMMERTIME"] }}`
* An index of [blog objects](/platform/liquid/objects/shopify/blog.md)
  * `{{ shop.blogs[1234567890] }}`
  * `{% for blog in shop.blogs %}`
* A set of [article tags](/platform/liquid/objects/shopify/article.md)
  * `{{ shop.articles.tags }}`
* A set of [article authors](/platform/liquid/objects/shopify/article.md)
  * `{{ shop.articles.authors }}`
* A set of [shipping zones](/platform/liquid/objects/shopify/shipping-zone.md)
  * `{% for shipping_zone in shop.shipping_zones %}`
* The related [metafields object](/platform/liquid/objects/shopify/metafields/metafield-collection.md)
  * `{{ shop.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/shop.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.
