{
  "openapi": "3.1.0",
  "info": {
    "title": "Shopify Store API",
    "version": "1.0.0",
    "description": "Any Shopify storefront read as structured JSON: store detection, store profile, the full product catalog with variants, prices and stock, collections, customer reviews from the store’s review app, and product images — through FetchLayer."
  },
  "servers": [
    {
      "url": "https://api.fetchlayer.dev/shopify-stores"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "description": "Every error, on every route. Branch on code and retryable rather than on the text; on a 5xx the text is generic. MCP tool errors carry the same fields in structuredContent, and as a JSON text block.",
        "properties": {
          "error": {
            "type": "string",
            "description": "What went wrong, in words. For a 400, what to change."
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status, repeated in the body."
          },
          "code": {
            "type": "string",
            "description": "The kind of error, stable: invalid_input, unauthorized, insufficient_credits, forbidden, not_found, expired, quota_exceeded, cancelled, time_limit, temporarily_unavailable, posts_unavailable, store_unreachable, upstream_error, internal_error, tool_error. A platform may add its own; more may be added. Treat a code you do not recognise by its retryable flag."
          },
          "retryable": {
            "type": "boolean",
            "description": "Whether asking again can succeed."
          },
          "requestId": {
            "type": "string",
            "description": "This request’s id, also sent as the X-Request-Id header. Quote it when reporting a problem."
          },
          "missing": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "With invalid_input when the request's parameters are refused before anything is fetched: the parameters that were missing. Always present on those errors, empty when nothing was missing."
          }
        },
        "required": [
          "error",
          "code",
          "retryable",
          "requestId"
        ]
      }
    },
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API Key",
        "description": "Send your FetchLayer key as Authorization: Bearer ss-your-key."
      }
    }
  },
  "paths": {
    "/detect-store": {
      "post": {
        "operationId": "detect-store",
        "tags": [
          "Stores"
        ],
        "summary": "Check whether a domain is Shopify",
        "description": "Report whether a domain is a Shopify store, with the evidence behind the answer: which signals fired, how confident the verdict is, the store name and currency, the permanent myshopify domain behind a custom one, the theme in use, and which of products, collections and store metadata that store actually publishes. A domain that is not Shopify comes back as a normal 200 with isShopify false, so this is safe to run across a list of domains before spending requests on any of them. It works on stores that do not look like Shopify: every classic storefront answers the same endpoints regardless of theme, and a headless store is read at the myshopify domain its own markup reveals.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "store": {
                    "type": "string",
                    "description": "Store domain, or any URL on the store — for example example.com, https://example.com/products/foo, or a myshopify.com domain."
                  },
                  "format": {
                    "type": "string",
                    "description": "json or markdown, in any case; any other value is a 400. Over MCP, markdown returns the result rendered as text; the REST API accepts it and returns JSON.",
                    "example": "json"
                  },
                  "timeoutMs": {
                    "type": "integer",
                    "description": "Per-request time limit in milliseconds (max 120000)."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "store"
                ]
              },
              "examples": {
                "default": {
                  "value": {
                    "store": "allbirds.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "requestedUrl": {
                      "type": "string",
                      "description": "The store URL this result corresponds to."
                    },
                    "scrapedAt": {
                      "type": "string",
                      "description": "When the store was read, as an ISO timestamp."
                    },
                    "transport": {
                      "type": "string",
                      "description": "The data source: always the platform id, \"shopify-stores\"."
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Caveats about this specific result: a truncated walk, an upstream limit, or a field this store does not publish. Read it before treating a result as complete."
                    },
                    "resultType": {
                      "type": "string",
                      "description": "Always store-detection."
                    },
                    "domain": {
                      "type": "string",
                      "description": "The domain that was checked."
                    },
                    "storeUrl": {
                      "type": "string",
                      "description": "The canonical store URL the other endpoints should be pointed at."
                    },
                    "isShopify": {
                      "type": "boolean",
                      "description": "Whether this domain is a Shopify store."
                    },
                    "confidence": {
                      "type": "string",
                      "description": "confirmed when a decisive signal matched, likely when only indirect evidence did, no when nothing did."
                    },
                    "signals": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      },
                      "description": "Each check that ran and what it found: platform-header, storefront-cookie, cdn-assets, storefront-runtime, product-catalog, store-metadata."
                    },
                    "endpoints": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      },
                      "description": "Whether the store publishes products, collections and store-metadata, with the status code each returned. A store can switch any of them off."
                    },
                    "storeName": {
                      "type": "string",
                      "description": "The store's name, when its storefront publishes one."
                    },
                    "currency": {
                      "type": "string",
                      "description": "The currency the storefront prices in."
                    },
                    "permanentDomain": {
                      "type": "string",
                      "description": "The store's myshopify.com address, when the storefront reveals it. This is how a headless store is read."
                    },
                    "theme": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The storefront theme: name, id, role, and the theme store id for an off-the-shelf theme (null for a custom one)."
                    }
                  },
                  "additionalProperties": false
                },
                "examples": {
                  "default": {
                    "value": {
                      "resultType": "store-detection",
                      "domain": "allbirds.com",
                      "storeUrl": "https://allbirds.com",
                      "isShopify": true,
                      "confidence": "confirmed",
                      "storeName": "Allbirds",
                      "currency": "USD",
                      "permanentDomain": "allbirds.myshopify.com",
                      "signals": [
                        {
                          "name": "platform-header",
                          "detected": true,
                          "detail": "Storefront served the Shopify platform header."
                        }
                      ],
                      "endpoints": [
                        {
                          "endpoint": "products",
                          "available": true,
                          "status": 200
                        }
                      ],
                      "notes": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_input: the request needs fixing; error names the field.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: the API key is missing or not valid.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "insufficient_credits: no credits, trial or monthly allowance left.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "forbidden: this key or account is not allowed this request.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "quota_exceeded: a request-rate limit was reached.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "temporarily_unavailable, time_limit or (on a store route) store_unreachable: ask again (with time_limit, allow more time). Retryable.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/store-profile": {
      "post": {
        "operationId": "store-profile",
        "tags": [
          "Stores"
        ],
        "summary": "Get a store's profile",
        "description": "Read what a store publishes about itself: name, description, permanent myshopify domain, store id, currency and money format, locale, country, city and province, the countries it ships to, the payment card brands it accepts and whether it offers installments, its product and collection totals, its theme, its logo and every social profile it links to.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "store": {
                    "type": "string",
                    "description": "Store domain, or any URL on the store — for example example.com, https://example.com/products/foo, or a myshopify.com domain."
                  },
                  "format": {
                    "type": "string",
                    "description": "json or markdown, in any case; any other value is a 400. Over MCP, markdown returns the result rendered as text; the REST API accepts it and returns JSON.",
                    "example": "json"
                  },
                  "timeoutMs": {
                    "type": "integer",
                    "description": "Per-request time limit in milliseconds (max 120000)."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "store"
                ]
              },
              "examples": {
                "default": {
                  "value": {
                    "store": "allbirds.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "requestedUrl": {
                      "type": "string",
                      "description": "The store URL this result corresponds to."
                    },
                    "scrapedAt": {
                      "type": "string",
                      "description": "When the store was read, as an ISO timestamp."
                    },
                    "transport": {
                      "type": "string",
                      "description": "The data source: always the platform id, \"shopify-stores\"."
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Caveats about this specific result: a truncated walk, an upstream limit, or a field this store does not publish. Read it before treating a result as complete."
                    },
                    "resultType": {
                      "type": "string",
                      "description": "Always store-profile."
                    },
                    "profile": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "description": "The store's name, with description alongside it."
                        },
                        "permanentDomain": {
                          "type": "string",
                          "description": "The store's myshopify.com address, when its storefront reveals it."
                        },
                        "storeId": {
                          "type": "string",
                          "description": "The store's own id."
                        },
                        "currency": {
                          "type": "string",
                          "description": "Selling currency, with moneyFormat, locale, country, city and province alongside it."
                        },
                        "shipsToCountries": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Countries the storefront offers shipping to."
                        },
                        "paymentCardBrands": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Card brands accepted at checkout, with offersInstallments alongside it."
                        },
                        "productCount": {
                          "type": "number",
                          "description": "The store's own product total, with collectionCount alongside it."
                        },
                        "theme": {
                          "type": "object",
                          "additionalProperties": true,
                          "description": "The storefront theme: name, id, role and theme store id."
                        },
                        "socialLinks": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "additionalProperties": true
                          },
                          "description": "Linked profiles on Instagram, Facebook, TikTok, X, YouTube, Pinterest, LinkedIn, Snapchat and Threads."
                        },
                        "logoUrl": {
                          "type": "string",
                          "description": "The store's logo, when its storefront publishes one."
                        }
                      },
                      "additionalProperties": false
                    },
                    "endpoints": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      },
                      "description": "Whether the store publishes products, collections and store-metadata."
                    }
                  },
                  "additionalProperties": false
                },
                "examples": {
                  "default": {
                    "value": {
                      "resultType": "store-profile",
                      "profile": {
                        "domain": "allbirds.com",
                        "name": "Allbirds",
                        "currency": "USD",
                        "locale": "en",
                        "country": "US",
                        "productCount": 412,
                        "collectionCount": 38,
                        "socialLinks": [
                          {
                            "platform": "instagram",
                            "url": "https://instagram.com/allbirds"
                          }
                        ]
                      },
                      "notes": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_input: the request needs fixing; error names the field.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: the API key is missing or not valid.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "insufficient_credits: no credits, trial or monthly allowance left.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "forbidden: this key or account is not allowed this request.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "quota_exceeded: a request-rate limit was reached.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "temporarily_unavailable, time_limit or (on a store route) store_unreachable: ask again (with time_limit, allow more time). Retryable.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/products": {
      "post": {
        "operationId": "products",
        "tags": [
          "Catalog"
        ],
        "summary": "List a store's products",
        "description": "Walk a store's catalog. Each product comes back with its title, handle, vendor, product type, tags, description as plain text and as HTML, publish and update timestamps, every image with its dimensions, the full option matrix, and every variant with price, compare-at price, SKU, barcode, option values, weight and availability — plus the product's price range, currency and whether anything on it is discounted. Collect several pages in one request with pages, or resume with a previous response's nextCursor. Per-unit stock is not published here; use /product-detail for that.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "store": {
                    "type": "string",
                    "description": "Store domain, or any URL on the store — for example example.com, https://example.com/products/foo, or a myshopify.com domain."
                  },
                  "limit": {
                    "type": "integer",
                    "description": "Maximum items returned (max 2000), or -1 for everything available.",
                    "example": "30"
                  },
                  "pages": {
                    "type": "integer",
                    "description": "Pages of results to collect in one request (max 40), or -1 for the maximum allowed. Each page counts as one request."
                  },
                  "cursor": {
                    "type": "string",
                    "description": "Resume from a previous response's nextCursor."
                  },
                  "format": {
                    "type": "string",
                    "description": "json or markdown, in any case; any other value is a 400. Over MCP, markdown returns the result rendered as text; the REST API accepts it and returns JSON.",
                    "example": "json"
                  },
                  "timeoutMs": {
                    "type": "integer",
                    "description": "Per-request time limit in milliseconds (max 120000)."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "store"
                ]
              },
              "examples": {
                "default": {
                  "value": {
                    "store": "allbirds.com",
                    "limit": 50,
                    "pages": 2
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "requestedUrl": {
                      "type": "string",
                      "description": "The store URL this result corresponds to."
                    },
                    "scrapedAt": {
                      "type": "string",
                      "description": "When the store was read, as an ISO timestamp."
                    },
                    "transport": {
                      "type": "string",
                      "description": "The data source: always the platform id, \"shopify-stores\"."
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Caveats about this specific result: a truncated walk, an upstream limit, or a field this store does not publish. Read it before treating a result as complete."
                    },
                    "pagesScraped": {
                      "type": "number",
                      "description": "Pages actually collected. Each page counts as one request against your plan."
                    },
                    "pagesRequested": {
                      "type": "number",
                      "description": "Pages the request asked for."
                    },
                    "nextCursor": {
                      "type": "string",
                      "description": "Pass back as cursor to continue, or null when the listing is exhausted."
                    },
                    "hasNextPage": {
                      "type": "boolean",
                      "description": "Whether more results are available beyond this response."
                    },
                    "resultType": {
                      "type": "string",
                      "description": "Always product-list."
                    },
                    "domain": {
                      "type": "string",
                      "description": "The store the products came from."
                    },
                    "products": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The product's id on the store."
                          },
                          "handle": {
                            "type": "string",
                            "description": "The product's identifier in its store URL — what product-detail takes."
                          },
                          "title": {
                            "type": "string",
                            "description": "Product title."
                          },
                          "productUrl": {
                            "type": "string",
                            "description": "Canonical product page URL on the store."
                          },
                          "vendor": {
                            "type": "string",
                            "description": "Vendor or brand the store attributes the product to."
                          },
                          "productType": {
                            "type": "string",
                            "description": "The store's own product type for this item."
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Merchandising tags, often the store's internal taxonomy."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description as plain text; descriptionHtml carries the original markup."
                          },
                          "publishedAt": {
                            "type": "string",
                            "description": "When the product was published, and createdAt / updatedAt alongside it."
                          },
                          "images": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "description": "Every image, each with url, downloadUrl, width, height, position, altText and the variants it belongs to."
                          },
                          "options": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "description": "The choices a buyer makes — for example Size and the sizes available."
                          },
                          "variants": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": true,
                              "properties": {
                                "inventoryQuantity": {
                                  "type": "number",
                                  "description": "Units on hand. Published only by product-detail, and only by stores that track inventory."
                                }
                              }
                            },
                            "description": "Every buyable version, with price, compareAtPrice, sku, barcode, optionValues, grams, requiresShipping, taxable and available."
                          },
                          "variantsTruncated": {
                            "type": "boolean",
                            "description": "True when the product has more variants than the store publishes; the first 250 are returned."
                          },
                          "priceMin": {
                            "type": "string",
                            "description": "Lowest variant price, with priceMax and currency alongside it."
                          },
                          "available": {
                            "type": "boolean",
                            "description": "True when at least one variant can be bought."
                          },
                          "onSale": {
                            "type": "boolean",
                            "description": "True when at least one variant carries a compareAtPrice above its price."
                          }
                        }
                      },
                      "description": "The products, in the order the store publishes them."
                    },
                    "productCount": {
                      "type": "number",
                      "description": "Number of products in this response."
                    }
                  },
                  "additionalProperties": false
                },
                "examples": {
                  "default": {
                    "value": {
                      "resultType": "product-list",
                      "domain": "allbirds.com",
                      "productCount": 50,
                      "pagesScraped": 2,
                      "hasNextPage": true,
                      "nextCursor": "cGFnZT0z",
                      "products": [
                        {
                          "handle": "mens-tree-runner-nz-natural-white",
                          "title": "Men's Tree Runner NZ - Natural White (Natural White Sole)",
                          "vendor": "Allbirds",
                          "priceMin": "100.00",
                          "priceMax": "100.00",
                          "currency": "USD",
                          "onSale": false,
                          "variants": [
                            {
                              "sku": "A11914M080",
                              "title": "8",
                              "price": "100.00",
                              "compareAtPrice": null,
                              "available": false
                            }
                          ]
                        }
                      ],
                      "notes": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_input: the request needs fixing; error names the field.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: the API key is missing or not valid.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "insufficient_credits: no credits, trial or monthly allowance left.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "forbidden: this key or account is not allowed this request.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "quota_exceeded: a request-rate limit was reached.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "temporarily_unavailable, time_limit or (on a store route) store_unreachable: ask again (with time_limit, allow more time). Retryable.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/product-detail": {
      "post": {
        "operationId": "product-detail",
        "tags": [
          "Catalog"
        ],
        "summary": "Get one product in full",
        "description": "Read everything a store publishes about a single product, from its URL or from its handle plus the store: the complete description in both plain text and HTML, every image with dimensions and alt text, the option matrix, and every variant with price, compare-at price, SKU, barcode, weight, taxability and stock. This is the only endpoint that returns inventoryQuantity, and only for stores that track inventory.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "product": {
                    "type": "string",
                    "description": "Product URL, or the product's handle as it appears in the URL."
                  },
                  "store": {
                    "type": "string",
                    "description": "Required only when product is a handle rather than a full URL."
                  },
                  "format": {
                    "type": "string",
                    "description": "json or markdown, in any case; any other value is a 400. Over MCP, markdown returns the result rendered as text; the REST API accepts it and returns JSON.",
                    "example": "json"
                  },
                  "timeoutMs": {
                    "type": "integer",
                    "description": "Per-request time limit in milliseconds (max 120000)."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "product"
                ]
              },
              "examples": {
                "default": {
                  "value": {
                    "product": "https://allbirds.com/products/mens-tree-runner-nz-natural-white"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "requestedUrl": {
                      "type": "string",
                      "description": "The store URL this result corresponds to."
                    },
                    "scrapedAt": {
                      "type": "string",
                      "description": "When the store was read, as an ISO timestamp."
                    },
                    "transport": {
                      "type": "string",
                      "description": "The data source: always the platform id, \"shopify-stores\"."
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Caveats about this specific result: a truncated walk, an upstream limit, or a field this store does not publish. Read it before treating a result as complete."
                    },
                    "resultType": {
                      "type": "string",
                      "description": "Always product-detail."
                    },
                    "domain": {
                      "type": "string",
                      "description": "The store the product came from."
                    },
                    "handle": {
                      "type": "string",
                      "description": "The resolved product handle."
                    },
                    "product": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The full product record, or null when the store has no such product.",
                      "properties": {
                        "variants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "inventoryQuantity": {
                                "type": "number",
                                "description": "Units on hand, for stores that track and publish inventory. Null where they do not."
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "variantsTruncated": {
                          "type": "boolean",
                          "description": "True when the product carries more than the 250 variants the store publishes."
                        },
                        "images": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "downloadUrl": {
                                "type": "string",
                                "description": "Pass to GET /media to stream the image bytes through FetchLayer."
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "examples": {
                  "default": {
                    "value": {
                      "resultType": "product-detail",
                      "domain": "allbirds.com",
                      "handle": "mens-tree-runner-nz-natural-white",
                      "product": {
                        "title": "Men's Tree Runner NZ - Natural White (Natural White Sole)",
                        "priceMin": "100.00",
                        "currency": "USD",
                        "variantCount": 14,
                        "variants": [
                          {
                            "sku": "A11914M080",
                            "price": "100.00",
                            "available": false,
                            "inventoryQuantity": -14
                          }
                        ]
                      },
                      "notes": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_input: the request needs fixing; error names the field.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: the API key is missing or not valid.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "insufficient_credits: no credits, trial or monthly allowance left.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "forbidden: this key or account is not allowed this request.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "quota_exceeded: a request-rate limit was reached.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "temporarily_unavailable, time_limit or (on a store route) store_unreachable: ask again (with time_limit, allow more time). Retryable.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/collections": {
      "post": {
        "operationId": "collections",
        "tags": [
          "Catalog"
        ],
        "summary": "List collections, or one collection's products",
        "description": "See how a store organizes its catalog, or read one of those groups. Without collection, this returns the store's collections with their titles, handles, descriptions, images and product counts. With a collection URL or handle, it returns that collection's products in the same full shape /products returns. Both forms page with pages and cursor. A collection's reported productCount is the store's own number and can exceed what the collection actually returns.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "store": {
                    "type": "string",
                    "description": "Store domain, or any URL on the store — for example example.com, https://example.com/products/foo, or a myshopify.com domain."
                  },
                  "collection": {
                    "type": "string",
                    "description": "Collection URL or handle. Omit to list the store's collections; supply it to get that collection's products. A handle the store doesn't have returns 404; a collection the store has renamed returns the new one, with a note saying so. A real collection with no products returns 200 and no products."
                  },
                  "limit": {
                    "type": "integer",
                    "description": "Maximum items returned (max 2000), or -1 for everything available.",
                    "example": "30"
                  },
                  "pages": {
                    "type": "integer",
                    "description": "Pages of results to collect in one request (max 40), or -1 for the maximum allowed. Each page counts as one request."
                  },
                  "cursor": {
                    "type": "string",
                    "description": "Resume from a previous response's nextCursor."
                  },
                  "format": {
                    "type": "string",
                    "description": "json or markdown, in any case; any other value is a 400. Over MCP, markdown returns the result rendered as text; the REST API accepts it and returns JSON.",
                    "example": "json"
                  },
                  "timeoutMs": {
                    "type": "integer",
                    "description": "Per-request time limit in milliseconds (max 120000)."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "store"
                ]
              },
              "examples": {
                "default": {
                  "value": {
                    "store": "allbirds.com",
                    "collection": "mens",
                    "limit": 100
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "requestedUrl": {
                      "type": "string",
                      "description": "The store URL this result corresponds to."
                    },
                    "scrapedAt": {
                      "type": "string",
                      "description": "When the store was read, as an ISO timestamp."
                    },
                    "transport": {
                      "type": "string",
                      "description": "The data source: always the platform id, \"shopify-stores\"."
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Caveats about this specific result: a truncated walk, an upstream limit, or a field this store does not publish. Read it before treating a result as complete."
                    },
                    "pagesScraped": {
                      "type": "number",
                      "description": "Pages actually collected. Each page counts as one request against your plan."
                    },
                    "pagesRequested": {
                      "type": "number",
                      "description": "Pages the request asked for."
                    },
                    "nextCursor": {
                      "type": "string",
                      "description": "Pass back as cursor to continue, or null when the listing is exhausted."
                    },
                    "hasNextPage": {
                      "type": "boolean",
                      "description": "Whether more results are available beyond this response."
                    },
                    "resultType": {
                      "type": "string",
                      "description": "Always collection-list."
                    },
                    "domain": {
                      "type": "string",
                      "description": "The store the result came from."
                    },
                    "collections": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true
                      },
                      "description": "The store's collections, each with id, handle, title, collectionUrl, description, descriptionHtml, imageUrl, productCount and timestamps. Empty when one collection was requested."
                    },
                    "collectionCount": {
                      "type": "number",
                      "description": "Number of collections in this response."
                    },
                    "collection": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The collection the products below belong to, when one was requested. Null when listing collections."
                    },
                    "products": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The product's id on the store."
                          },
                          "handle": {
                            "type": "string",
                            "description": "The product's identifier in its store URL — what product-detail takes."
                          },
                          "title": {
                            "type": "string",
                            "description": "Product title."
                          },
                          "productUrl": {
                            "type": "string",
                            "description": "Canonical product page URL on the store."
                          },
                          "vendor": {
                            "type": "string",
                            "description": "Vendor or brand the store attributes the product to."
                          },
                          "productType": {
                            "type": "string",
                            "description": "The store's own product type for this item."
                          },
                          "tags": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "description": "Merchandising tags, often the store's internal taxonomy."
                          },
                          "description": {
                            "type": "string",
                            "description": "Description as plain text; descriptionHtml carries the original markup."
                          },
                          "publishedAt": {
                            "type": "string",
                            "description": "When the product was published, and createdAt / updatedAt alongside it."
                          },
                          "images": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "description": "Every image, each with url, downloadUrl, width, height, position, altText and the variants it belongs to."
                          },
                          "options": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "description": "The choices a buyer makes — for example Size and the sizes available."
                          },
                          "variants": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": true,
                              "properties": {
                                "inventoryQuantity": {
                                  "type": "number",
                                  "description": "Units on hand. Published only by product-detail, and only by stores that track inventory."
                                }
                              }
                            },
                            "description": "Every buyable version, with price, compareAtPrice, sku, barcode, optionValues, grams, requiresShipping, taxable and available."
                          },
                          "variantsTruncated": {
                            "type": "boolean",
                            "description": "True when the product has more variants than the store publishes; the first 250 are returned."
                          },
                          "priceMin": {
                            "type": "string",
                            "description": "Lowest variant price, with priceMax and currency alongside it."
                          },
                          "available": {
                            "type": "boolean",
                            "description": "True when at least one variant can be bought."
                          },
                          "onSale": {
                            "type": "boolean",
                            "description": "True when at least one variant carries a compareAtPrice above its price."
                          }
                        }
                      },
                      "description": "The products, in the order the store publishes them."
                    },
                    "productCount": {
                      "type": "number",
                      "description": "Number of products in this response. Zero when listing the store's collections."
                    }
                  },
                  "additionalProperties": false
                },
                "examples": {
                  "default": {
                    "value": {
                      "resultType": "collection-list",
                      "domain": "allbirds.com",
                      "collections": [],
                      "collectionCount": 0,
                      "collection": {
                        "handle": "mens",
                        "title": "Men's Shoes",
                        "productCount": 94
                      },
                      "productCount": 94,
                      "hasNextPage": false,
                      "nextCursor": null,
                      "notes": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_input: the request needs fixing; error names the field.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: the API key is missing or not valid.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "insufficient_credits: no credits, trial or monthly allowance left.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "forbidden: this key or account is not allowed this request.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "quota_exceeded: a request-rate limit was reached.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "temporarily_unavailable, time_limit or (on a store route) store_unreachable: ask again (with time_limit, allow more time). Retryable.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/review-providers": {
      "post": {
        "operationId": "review-providers",
        "tags": [
          "Reviews"
        ],
        "summary": "Find the review service a store uses",
        "description": "Shopify has no reviews of its own: a store adds them through an app. This finds which of the six supported services a store uses (Judge.me, Yotpo, Loox, Okendo, Stamped and REVIEWS.io), where each was detected, and whether it serves store-wide reviews, product reviews or both. Run it before /product-reviews or /store-reviews when you are not sure a store has reviews at all.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "store": {
                    "type": "string",
                    "description": "Store domain, or any URL on the store — for example example.com, https://example.com/products/foo, or a myshopify.com domain."
                  },
                  "format": {
                    "type": "string",
                    "description": "json or markdown, in any case; any other value is a 400. Over MCP, markdown returns the result rendered as text; the REST API accepts it and returns JSON.",
                    "example": "json"
                  },
                  "timeoutMs": {
                    "type": "integer",
                    "description": "Per-request time limit in milliseconds (max 120000)."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "store"
                ]
              },
              "examples": {
                "default": {
                  "value": {
                    "store": "beardbrand.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "store": {
                      "type": "string",
                      "description": "The store domain that was checked."
                    },
                    "providers": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "provider": {
                            "type": "string",
                            "description": "judgeme, yotpo, loox, okendo, stamped or reviewsio."
                          },
                          "detectedFrom": {
                            "type": "string",
                            "description": "Where on the store the service was found, for example product page."
                          },
                          "storeLevel": {
                            "type": "boolean",
                            "description": "Whether /store-reviews can read this service."
                          },
                          "productLevel": {
                            "type": "boolean",
                            "description": "Whether /product-reviews can read this service."
                          }
                        }
                      },
                      "description": "Each supported review service found on the store. Empty when it uses none of them."
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Caveats about this result."
                    }
                  },
                  "additionalProperties": false
                },
                "examples": {
                  "default": {
                    "value": {
                      "store": "www.beardbrand.com",
                      "providers": [
                        {
                          "provider": "judgeme",
                          "detectedFrom": "product page",
                          "storeLevel": true,
                          "productLevel": true
                        }
                      ],
                      "notes": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_input: the request needs fixing; error names the field.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: the API key is missing or not valid.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "insufficient_credits: no credits, trial or monthly allowance left.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "forbidden: this key or account is not allowed this request.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "quota_exceeded: a request-rate limit was reached.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "temporarily_unavailable, time_limit or (on a store route) store_unreachable: ask again (with time_limit, allow more time). Retryable.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/product-reviews": {
      "post": {
        "operationId": "product-reviews",
        "tags": [
          "Reviews"
        ],
        "summary": "Get a product's reviews",
        "description": "Read one product's customer reviews from the store's review service: the average rating, review count and star distribution, then each review with its rating, title, text, author, verified-buyer flag, country, date, photos and videos, the merchant's reply and helpful votes. Filter to one star rating, sort, and page with a cursor. The services publish different fields, and anything a service leaves out comes back null: Loox has no titles, votes, countries or reply dates, Judge.me has no reply dates, and Okendo has no reviewer country. A missing product is a 404, and so is a product no supported service has reviews for.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "store": {
                    "type": "string",
                    "description": "Store domain, or any URL on the store — for example example.com, https://example.com/products/foo, or a myshopify.com domain."
                  },
                  "product": {
                    "type": "string",
                    "description": "The product's handle, its URL, or its numeric id."
                  },
                  "provider": {
                    "type": "string",
                    "description": "judgeme, yotpo, loox, okendo, stamped or reviewsio. Omit to use whichever service the store has. Naming one the store does not use is a 404; naming one it uses that has no reviews is a 200 with an empty list and a note."
                  },
                  "limit": {
                    "type": "integer",
                    "description": "Maximum reviews returned (max 500).",
                    "example": "20"
                  },
                  "cursor": {
                    "type": "string",
                    "description": "Resume from a previous response's nextCursor. Send the same other parameters with it: a cursor replayed with different ones is a 400."
                  },
                  "sort": {
                    "type": "string",
                    "description": "newest, highest, lowest or helpful.",
                    "example": "newest"
                  },
                  "rating": {
                    "type": "integer",
                    "description": "Only reviews with this star rating, 1 to 5."
                  },
                  "format": {
                    "type": "string",
                    "description": "json or markdown, in any case; any other value is a 400. Over MCP, markdown returns the result rendered as text; the REST API accepts it and returns JSON.",
                    "example": "json"
                  },
                  "timeoutMs": {
                    "type": "integer",
                    "description": "Per-request time limit in milliseconds (max 120000)."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "store",
                  "product"
                ]
              },
              "examples": {
                "default": {
                  "value": {
                    "store": "beardbrand.com",
                    "product": "fox-hunt-mens-cologne",
                    "limit": 20
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "product": {
                      "type": "object",
                      "additionalProperties": true,
                      "description": "The product the reviews belong to: id, handle, title and url."
                    },
                    "store": {
                      "type": "string",
                      "description": "The store domain the reviews were read for."
                    },
                    "provider": {
                      "type": "string",
                      "description": "The review service that answered: judgeme, yotpo, loox, okendo, stamped or reviewsio."
                    },
                    "summary": {
                      "type": "object",
                      "properties": {
                        "averageRating": {
                          "type": "number",
                          "description": "Average star rating, or null when the service does not publish one."
                        },
                        "reviewCount": {
                          "type": "number",
                          "description": "Total reviews the service reports, not just the ones in this response."
                        },
                        "ratingDistribution": {
                          "type": "object",
                          "additionalProperties": true,
                          "description": "Review count per star, keyed \"1\" to \"5\", or null when the service does not publish it."
                        }
                      },
                      "additionalProperties": false
                    },
                    "reviews": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The review's id on its service."
                          },
                          "rating": {
                            "type": "number",
                            "description": "Star rating, 1 to 5."
                          },
                          "title": {
                            "type": "string",
                            "description": "Review headline, or null. Loox reviews have none."
                          },
                          "body": {
                            "type": "string",
                            "description": "Review text."
                          },
                          "author": {
                            "type": "object",
                            "additionalProperties": true,
                            "description": "name, verified (a confirmed buyer) and country, each null when the service does not say. Loox and Okendo publish no country."
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "When the review was written, as an ISO timestamp, or null."
                          },
                          "product": {
                            "type": "object",
                            "additionalProperties": true,
                            "description": "The product the review was left on (id, handle, title), or null when unknown."
                          },
                          "media": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "description": "Customer photos and videos, each with type and url."
                          },
                          "reply": {
                            "type": "object",
                            "additionalProperties": true,
                            "description": "The merchant's public reply (body, createdAt), or null. Loox and Judge.me publish no reply date."
                          },
                          "helpful": {
                            "type": "object",
                            "additionalProperties": true,
                            "description": "Helpful votes as up and down, or null when the service has no votes (Loox)."
                          },
                          "sourceUrl": {
                            "type": "string",
                            "description": "The page the review appears on, or null."
                          }
                        }
                      },
                      "description": "The reviews, in the requested sort order."
                    },
                    "nextCursor": {
                      "type": "string",
                      "description": "Pass back as cursor to continue, or null when there are no more reviews."
                    },
                    "pagesScraped": {
                      "type": "number",
                      "description": "Pages of reviews returned: the review count divided by the page size the service uses, rounded up, minimum 1. Rating-breakdown lookups, detection probes and retries are not counted. Each page counts as one request against your plan."
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Caveats about this result, such as a named service that has no reviews. Read it before treating a result as complete."
                    }
                  },
                  "additionalProperties": false
                },
                "examples": {
                  "default": {
                    "value": {
                      "store": "www.beardbrand.com",
                      "product": {
                        "id": "15133252583794",
                        "handle": "fox-hunt-mens-cologne",
                        "title": "Fox Hunt Men's Cologne",
                        "url": "https://www.beardbrand.com/products/fox-hunt-mens-cologne"
                      },
                      "provider": "judgeme",
                      "summary": {
                        "averageRating": 4.9,
                        "reviewCount": 20,
                        "ratingDistribution": {
                          "1": 0,
                          "2": 0,
                          "3": 1,
                          "4": 0,
                          "5": 19
                        }
                      },
                      "reviews": [
                        {
                          "id": "f4335734-1c15-4ba4-b3d7-b5edf6ca2a5a",
                          "provider": "judgeme",
                          "rating": 5,
                          "title": "The thrill of the hunt",
                          "body": "Fox Hunt is my new favorite from BeardBrand, hands down.",
                          "author": {
                            "name": "Jon B.",
                            "verified": true,
                            "country": "US"
                          },
                          "createdAt": "2026-09-11T16:19:08.000Z",
                          "product": {
                            "id": "15133252583794",
                            "handle": "fox-hunt-mens-cologne",
                            "title": "Fox Hunt Men's Cologne"
                          },
                          "media": [],
                          "reply": null,
                          "helpful": {
                            "up": 0,
                            "down": 0
                          },
                          "sourceUrl": "https://www.beardbrand.com/products/fox-hunt-mens-cologne"
                        }
                      ],
                      "nextCursor": null,
                      "pagesScraped": 1,
                      "notes": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_input: the request needs fixing; error names the field.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: the API key is missing or not valid.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "insufficient_credits: no credits, trial or monthly allowance left.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "forbidden: this key or account is not allowed this request.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "quota_exceeded: a request-rate limit was reached.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "temporarily_unavailable, time_limit or (on a store route) store_unreachable: ask again (with time_limit, allow more time). Retryable.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/store-reviews": {
      "post": {
        "operationId": "store-reviews",
        "tags": [
          "Reviews"
        ],
        "summary": "Get a store's reviews",
        "description": "Read a store's reviews across every product from its review service, newest first by default: a store-wide average rating, review count and star distribution, then each review in the same shape /product-reviews returns, carrying the product it was left on when the service says. REVIEWS.io's store feed covers product reviews only. A store using none of the supported services is a 404, and so is one whose services have no reviews.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "store": {
                    "type": "string",
                    "description": "Store domain, or any URL on the store — for example example.com, https://example.com/products/foo, or a myshopify.com domain."
                  },
                  "provider": {
                    "type": "string",
                    "description": "judgeme, yotpo, loox, okendo, stamped or reviewsio. Omit to use whichever service the store has. Naming one the store does not use is a 404; naming one it uses that has no reviews is a 200 with an empty list and a note."
                  },
                  "limit": {
                    "type": "integer",
                    "description": "Maximum reviews returned (max 500).",
                    "example": "20"
                  },
                  "cursor": {
                    "type": "string",
                    "description": "Resume from a previous response's nextCursor. Send the same other parameters with it: a cursor replayed with different ones is a 400."
                  },
                  "sort": {
                    "type": "string",
                    "description": "newest, highest, lowest or helpful.",
                    "example": "newest"
                  },
                  "format": {
                    "type": "string",
                    "description": "json or markdown, in any case; any other value is a 400. Over MCP, markdown returns the result rendered as text; the REST API accepts it and returns JSON.",
                    "example": "json"
                  },
                  "timeoutMs": {
                    "type": "integer",
                    "description": "Per-request time limit in milliseconds (max 120000)."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "store"
                ]
              },
              "examples": {
                "default": {
                  "value": {
                    "store": "tatcha.com",
                    "limit": 20
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "store": {
                      "type": "string",
                      "description": "The store domain the reviews were read for."
                    },
                    "provider": {
                      "type": "string",
                      "description": "The review service that answered: judgeme, yotpo, loox, okendo, stamped or reviewsio."
                    },
                    "summary": {
                      "type": "object",
                      "properties": {
                        "averageRating": {
                          "type": "number",
                          "description": "Average star rating, or null when the service does not publish one."
                        },
                        "reviewCount": {
                          "type": "number",
                          "description": "Total reviews the service reports, not just the ones in this response."
                        },
                        "ratingDistribution": {
                          "type": "object",
                          "additionalProperties": true,
                          "description": "Review count per star, keyed \"1\" to \"5\", or null when the service does not publish it."
                        }
                      },
                      "additionalProperties": false
                    },
                    "reviews": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "additionalProperties": true,
                        "properties": {
                          "id": {
                            "type": "string",
                            "description": "The review's id on its service."
                          },
                          "rating": {
                            "type": "number",
                            "description": "Star rating, 1 to 5."
                          },
                          "title": {
                            "type": "string",
                            "description": "Review headline, or null. Loox reviews have none."
                          },
                          "body": {
                            "type": "string",
                            "description": "Review text."
                          },
                          "author": {
                            "type": "object",
                            "additionalProperties": true,
                            "description": "name, verified (a confirmed buyer) and country, each null when the service does not say. Loox and Okendo publish no country."
                          },
                          "createdAt": {
                            "type": "string",
                            "description": "When the review was written, as an ISO timestamp, or null."
                          },
                          "product": {
                            "type": "object",
                            "additionalProperties": true,
                            "description": "The product the review was left on (id, handle, title), or null when unknown."
                          },
                          "media": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "additionalProperties": true
                            },
                            "description": "Customer photos and videos, each with type and url."
                          },
                          "reply": {
                            "type": "object",
                            "additionalProperties": true,
                            "description": "The merchant's public reply (body, createdAt), or null. Loox and Judge.me publish no reply date."
                          },
                          "helpful": {
                            "type": "object",
                            "additionalProperties": true,
                            "description": "Helpful votes as up and down, or null when the service has no votes (Loox)."
                          },
                          "sourceUrl": {
                            "type": "string",
                            "description": "The page the review appears on, or null."
                          }
                        }
                      },
                      "description": "The reviews, in the requested sort order."
                    },
                    "nextCursor": {
                      "type": "string",
                      "description": "Pass back as cursor to continue, or null when there are no more reviews."
                    },
                    "pagesScraped": {
                      "type": "number",
                      "description": "Pages of reviews returned: the review count divided by the page size the service uses, rounded up, minimum 1. Rating-breakdown lookups, detection probes and retries are not counted. Each page counts as one request against your plan."
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      },
                      "description": "Caveats about this result, such as a named service that has no reviews. Read it before treating a result as complete."
                    }
                  },
                  "additionalProperties": false
                },
                "examples": {
                  "default": {
                    "value": {
                      "store": "tatcha.com",
                      "provider": "yotpo",
                      "summary": {
                        "averageRating": 4.67,
                        "reviewCount": 71054,
                        "ratingDistribution": {
                          "1": 1353,
                          "2": 1340,
                          "3": 2981,
                          "4": 7914,
                          "5": 57466
                        }
                      },
                      "reviews": [
                        {
                          "id": "890453394",
                          "provider": "yotpo",
                          "rating": 5,
                          "title": "Love it!",
                          "body": "It feels so nice on skin, it actually feels like a splash of refreshing water.",
                          "author": {
                            "name": "Jenna",
                            "verified": false,
                            "country": null
                          },
                          "createdAt": "2026-09-13T17:02:41.000Z",
                          "product": {
                            "id": "10225157570869",
                            "handle": null,
                            "title": "The Water Cream"
                          },
                          "media": [],
                          "reply": null,
                          "helpful": {
                            "up": 0,
                            "down": 0
                          },
                          "sourceUrl": null
                        }
                      ],
                      "nextCursor": "eyJ2IjoxLCJwIjoieW90cG8i",
                      "pagesScraped": 1,
                      "notes": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_input: the request needs fixing; error names the field.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: the API key is missing or not valid.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "insufficient_credits: no credits, trial or monthly allowance left.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "forbidden: this key or account is not allowed this request.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "quota_exceeded: a request-rate limit was reached.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "temporarily_unavailable, time_limit or (on a store route) store_unreachable: ask again (with time_limit, allow more time). Retryable.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/media": {
      "get": {
        "operationId": "media",
        "tags": [
          "Media"
        ],
        "summary": "Download a product image",
        "description": "Stream a product image file, using a url taken from an image returned by /products or /product-detail. Only store image hosts are accepted. HTTP Range requests are supported, so a partial fetch works. This is a GET with query parameters, not a JSON POST, and it bills as one request.",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "Product image URL, as returned on a product image. Passed as a query parameter.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filename",
            "in": "query",
            "required": false,
            "description": "Content-Disposition filename to serve the file as (max 200 characters).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "required": false,
            "description": "Standard HTTP Range request header, for example bytes=0-65535. Sent as a header, not a query parameter.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "description": "invalid_input: the request needs fixing; error names the field.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: the API key is missing or not valid.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "insufficient_credits: no credits, trial or monthly allowance left.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "forbidden: this key or account is not allowed this request.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "quota_exceeded: a request-rate limit was reached.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "temporarily_unavailable, time_limit or (on a store route) store_unreachable: ask again (with time_limit, allow more time). Retryable.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    },
    "/resolve-url": {
      "post": {
        "operationId": "resolve-url",
        "tags": [
          "Utility"
        ],
        "summary": "Parse a store URL",
        "description": "Turn any store URL into the fields the other endpoints take: whether it points at a product, a collection or the store itself, plus the domain, the canonical store URL, the handle, the selected variant id and the permanent myshopify domain. It makes no request to the store, so it is the cheap way to find out what a pasted URL is before spending a request on it. Parsing a URL does not consume a credit.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "Any store URL, to be parsed into structured fields."
                  },
                  "format": {
                    "type": "string",
                    "description": "json or markdown, in any case; any other value is a 400. Over MCP, markdown returns the result rendered as text; the REST API accepts it and returns JSON.",
                    "example": "json"
                  },
                  "timeoutMs": {
                    "type": "integer",
                    "description": "Per-request time limit in milliseconds (max 120000)."
                  }
                },
                "additionalProperties": false,
                "required": [
                  "url"
                ]
              },
              "examples": {
                "default": {
                  "value": {
                    "url": "https://allbirds.com/products/mens-tree-runner-nz-natural-white?variant=41206418636880"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "description": "What the URL points at: product, collection, store, or unknown."
                    },
                    "url": {
                      "type": "string",
                      "description": "The URL that was parsed."
                    },
                    "domain": {
                      "type": "string",
                      "description": "The store domain carried in the URL."
                    },
                    "storeUrl": {
                      "type": "string",
                      "description": "The canonical store URL to pass as store elsewhere."
                    },
                    "targetUrl": {
                      "type": "string",
                      "description": "The canonical URL of the product or collection the URL points at."
                    },
                    "handle": {
                      "type": "string",
                      "description": "The product or collection handle, when the URL carries one."
                    },
                    "variantId": {
                      "type": "string",
                      "description": "The variant selected in the URL query string, when there is one."
                    },
                    "permanentDomain": {
                      "type": "string",
                      "description": "The myshopify.com domain, when the URL is one."
                    }
                  },
                  "additionalProperties": false
                },
                "examples": {
                  "default": {
                    "value": {
                      "kind": "product",
                      "domain": "allbirds.com",
                      "storeUrl": "https://allbirds.com",
                      "handle": "mens-tree-runner-nz-natural-white",
                      "variantId": "41206418636880",
                      "permanentDomain": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_input: the request needs fixing; error names the field.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: the API key is missing or not valid.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "insufficient_credits: no credits, trial or monthly allowance left.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "forbidden: this key or account is not allowed this request.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "quota_exceeded: a request-rate limit was reached.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "temporarily_unavailable, time_limit or (on a store route) store_unreachable: ask again (with time_limit, allow more time). Retryable.",
            "headers": {
              "X-Request-Id": {
                "description": "The request id, equal to requestId in the body.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "security": [
          {
            "BearerAuth": []
          }
        ]
      }
    }
  }
}