path inputRequestShopifyProductByURLInput!requiredcanonicalDomainString!productIdID!productId is the unique identifier for the requested product, which can be used in subsequent queries to fetch product information, e.g. with productByID.variantIdID!variantId is the unique identifier for the requested product's variant. Unless specified in the product's URL, Rye returns the first variant of the product by default.12345678910mutation RequestShopifyProductByURL { requestShopifyProductByURL( input: { url: "https://kyliecosmetics.com/products/lip-butter-precision-pout-lip-liner-duo" } ) { canonicalDomain productId } }
1234567891011{ "errors": [ { "message": "The provided `url` input (\"www.google.com\") is not a valid Shopify product URL.", "path": [ "requestProductByURL" ] } ], "data": null }
PRODUCT_NOT_FOUND_ERROR is returned. This can happen for a variety of reasons:1234567891011121314151617181920{ "errors": [ { "message": "Product data not found - if the URL is valid, then the store may not be supported. See docs for more details", "locations": [ { "line": 2, "column": 3 } ], "path": [ "requestShopifyProductByURL" ], "extensions": { "code": "PRODUCT_NOT_FOUND_ERROR" } } ], "data": null }