---
title: "List variants of a Shopify product"
description: "List a Shopify product's variants, read from Shopify, with what Filemonk delivers to a buyer of each: delivers_from is variant (the variant's own digital product), product (the one for every variant of the product), vari"
url: https://docs.filemonk.io/v2/api-reference/products/list-variants-of-a-shopify-product/
api: "API v2 reference"
method: GET
path: "/products/{shopify_product_id}/variants"
---

# List variants of a Shopify product

`GET https://app.filemonk.io/api/v2/external/products/{shopify_product_id}/variants`

List a Shopify product's variants, read from Shopify, with what Filemonk delivers to a buyer of each: delivers_from is variant (the variant's own digital product), product (the one for every variant of the product), variant_and_product (both: the buyer gets both sets of files) or none. files_count is how many files that buyer gets. Up to per_page variants (default 50, max 200) by title; pass next_cursor back as cursor for the rest.

**Note:** Read-only; asks Shopify. shopify_product_id is a Shopify Product gid or numeric id, from [`GET /digital_products`](https://docs.filemonk.io/v2/api-reference/digital-products/list-digital-products/) or [`GET /digital_products/shopify_products_without_files`](https://docs.filemonk.io/v2/api-reference/digital-products/list-shopify-products-without-files/). digital_products on a row names each digital product that applies, with its id for [`GET /digital_products/:id`](https://docs.filemonk.io/v2/api-reference/digital-products/get-a-digital-product/). 404 when Shopify has no such product; 502 when Shopify did not answer.

## Path parameters

- `shopify_product_id` (string, required)

## Query parameters

- `cursor` (string)
- `per_page` (integer): Rows per page, max 200.

## Returns

- `shopify_product_id` (string, nullable, required): e.g. `gid://shopify/Product/9642107044135`
- `product_title` (string, nullable, required): e.g. `Watercolour Course`
- `data` (array of objects, required)
  - `shopify_variant_id` (string, nullable, required): e.g. `gid://shopify/ProductVariant/49231577301031`
  - `title` (string, nullable, required): e.g. `Beginner`
  - `name` (string, nullable, required): e.g. `Watercolour Course — Beginner`
  - `sku` (string, nullable, required): e.g. `WC-BEG`
  - `delivers_from` (string, nullable, required): e.g. `variant_and_product`
  - `files_count` (integer, nullable, required): e.g. `3`
  - `digital_products` (array of objects, required)
    - `id` (string, nullable, required): e.g. `3f1c2a9e-7b4d-4c1e-9a8f-2d6b5e4c3a21`
    - `scope` (string, nullable, required): e.g. `variant`
    - `files_count` (integer, nullable, required): e.g. `1`
- `total_count` (integer, nullable, required): e.g. `2`
- `next_cursor` (any, required)
- `has_next_page` (boolean, nullable, required): e.g. `false`

Rate limit: this call costs 1 point ([rate limits](https://docs.filemonk.io/v2/errors-and-rate-limits/)).

## Example request

```sh
curl "https://app.filemonk.io/api/v2/external/products/{shopify_product_id}/variants" \
  -H "X-Auth-Token: $FILEMONK_API_KEY"
```

## 200

Success: the requested resource.

```json
{
  "shopify_product_id": "gid://shopify/Product/9642107044135",
  "product_title": "Watercolour Course",
  "data": [
    {
      "shopify_variant_id": "gid://shopify/ProductVariant/49231577301031",
      "title": "Beginner",
      "name": "Watercolour Course — Beginner",
      "sku": "WC-BEG",
      "delivers_from": "variant_and_product",
      "files_count": 3,
      "digital_products": [
        {
          "id": "3f1c2a9e-7b4d-4c1e-9a8f-2d6b5e4c3a21",
          "scope": "variant",
          "files_count": 1
        },
        {
          "id": "8a2b4c6d-1e3f-4a5b-8c7d-9e0f1a2b3c4d",
          "scope": "product",
          "files_count": 2
        }
      ]
    },
    {
      "shopify_variant_id": "gid://shopify/ProductVariant/49231577333799",
      "title": "Advanced",
      "name": "Watercolour Course — Advanced",
      "sku": null,
      "delivers_from": "product",
      "files_count": 2,
      "digital_products": [
        {
          "id": "8a2b4c6d-1e3f-4a5b-8c7d-9e0f1a2b3c4d",
          "scope": "product",
          "files_count": 2
        }
      ]
    }
  ],
  "total_count": 2,
  "next_cursor": null,
  "has_next_page": false
}
```

## 401

Missing or invalid API key.

```json
{
  "errors": [
    "Invalid API key"
  ]
}
```

## 404

The resource does not exist for this shop, or the action path is not registered.

```json
{
  "errors": [
    "Order not found: c3d4e5f6-7a8b-4c9d-8e0f-1a2b3c4d5e6f"
  ]
}
```

## 422

The request failed validation, or sent a key the action does not take (`code: &quot;unknown_parameters&quot;` with `unknown` and `accepted`). Nothing was saved.

```json
{
  "errors": [
    "access.download_limit_count must be an integer of at least 0"
  ],
  "field_errors": {
    "access.download_limit_count": [
      "must be an integer of at least 0"
    ]
  }
}
```

## 429

Rate limited. Cost-weighted per API key, shared with API v1: a read costs 1 point, a write 2, 40 points per fixed 60-second window. Every response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset` (Unix time the window ends); a 429 adds `Retry-After` (seconds), `retry_after`, `retryable: true` and a `next_step` in the body. A 429 did nothing: wait `retry_after` seconds, then send the same request again. The budget is per key, so every tool or script using the key shares it; prefer one list call with `per_page` over many single reads.

```json
{
  "errors": [
    "You have exceeded the rate limit of 40 points per 60 seconds. Read requests cost 1 point(s) and write requests cost 2 point(s). Please retry after 12 second(s)."
  ],
  "code": "rate_limited",
  "retry_after": 12,
  "error": "Rate limit exceeded",
  "message": "You have exceeded the rate limit of 40 points per 60 seconds. Read requests cost 1 point(s) and write requests cost 2 point(s). Please retry after 12 second(s)."
}
```

## 502

Shopify (or the email service) did not complete the request. Nothing was changed; try again shortly.

```json
{
  "errors": [
    "Shopify did not complete the request. Nothing was changed; try again shortly."
  ],
  "code": "shopify_error"
}
```

