# Overview

mock.shop is a public Shopify Storefront API that serves fictional stores. It
needs no store or app, so you or your AI coding agent can build a storefront
against realistic products, collections, and carts, then switch to a real
store when you're ready.

## How it works

Every mock.shop store is a separate catalog on its own host, and each host
serves the same Storefront API at `/api`:

1. **Read the store directory** at
   [https://mock.shop/llms.txt](https://mock.shop/llms.txt). It describes every
   store on one line: its name, a summary of what it sells, its product
   categories, and its API URL.
2. **Pick the store** with categories that match what you're building, from
   apparel to home decor to electronics. When nothing fits, use the default store at `https://mock.shop/api`: hoodies, t-shirts,
   sweatpants, and slides, organized into Tops, Bottoms, Shoes, and
   Accessories.
3. **Send Storefront API queries** as `POST` requests with a JSON body to
   `https://<store>.mock.shop/api` and `Content-Type: application/json`,
   adding `X-Shopify-Storefront-Access-Token: public` for metafields.
4. **Read `https://<store>.mock.shop/llms.txt`** for that store's product
   categories, collections, and product counts.

Two lines from the directory show what you're choosing from:

```llms
- [Elysian Thread](https://apparel.mock.shop/api): Curated timeless apparel featuring natural fabrics and clean tailoring for the modern woman's sophisticated wardrobe. Categories: Blouses, Loungewear Sets, Outfit Sets, Trousers, Cardigans, Blazers, Clothing Tops, Coats & Jackets.
- [Evergreen Echoes](https://3dpinecones.mock.shop/api): We craft exquisite, 3D-printed pinecones that capture the timeless beauty of nature for your home decor. Categories: Candle Holders, Garden Sculptures, Potpourri, Seasonal & Holiday Decorations, Window Valances & Cornices, Wreaths & Garlands, Artificial Flora, Artwork.
```

Once you've picked a store, query it the way you'd query any Storefront API.
mock.shop mirrors the Storefront API, so a query written against it runs
unchanged against a real store:

```sh
curl -X POST "https://mock.shop/api?utm_source=docs" \
  -H "Content-Type: application/json" \
  -d '{"query":"{ shop { name } products(first: 3) { nodes { title handle } } }"}'
```

```json
{
  "data": {
    "shop": {
      "name": "Mock.shop"
    },
    "products": {
      "nodes": [
        {
          "title": "Slides",
          "handle": "slides"
        },
        {
          "title": "Sweatpants",
          "handle": "sweatpants"
        },
        {
          "title": "Men's T-shirt",
          "handle": "men-t-shirt"
        }
      ]
    }
  },
  "extensions": {
    "cost": {
      "requestedQueryCost": 4
    }
  }
}
```

An agent can start from `https://mock.shop` itself. The root returns these
instructions as markdown, and every `/api` response carries a `Link` header
that points at the store's `llms.txt`, so an agent that starts from an API
call finds the directory too.

## Limitations

mock.shop is for building, not for selling:

- Its catalogs, prices, and inventory are fictional.
- Carts work, so you can build the full shopping flow, but checkout is a mock
  that takes no payment and places no order.
- Shop Pay and the Customer Account API aren't available.

## More guides

- [Get started](get-started.md): find a catalog, make a store from it with
  your agent, then save it.
- [Build with Hydrogen](build-with-hydrogen.md): a custom storefront in code.
- [Build with Canvas](build-with-canvas.md): a store on Shopify's base theme.
- [Store directory](shop-directory.md): browse, read, and search the published
  stores.
- [Agent commerce with mock.shop](ucp.md): how agents build carts against a
  mock.shop store.
- [Resources](resources/mock-shop-starter.md): the mock.shop starter, the
  Storefront API, and the Shopify AI Toolkit.
