For example, if the store’s canonical URL is https://abc.myshopify.com, then the domain is abc.myshopify.com, all lowercased.

As the number of products may be significantly large, it’s recommended to paginate through the results.

AmazonProduct and ShopifyProduct returned by this query have similarities and differences that are compared in detail here


Arguments

input
ProductsByDomainInput!
required

An object containing the domain name of the store. The search is case-insensitive.

pagination
OffsetPaginationInput!
required

An object containing pagination parameters.

includeAdditionalProductDetails
Boolean

Set to false by default. If set to true, the query will return additional fields specific to the marketplace the product is from. For example, if the product is from Amazon, the query will return fields specific to Amazon products.

Returns

Product
Product

Any requested field from an object which implements the Product interface.

The query returns null if the product is not found in the inventory

Usage

import { RyeClient, Marketplace } from "@rye-api/rye-sdk";

const ryeClient = new RyeClient("<AUTH_HEADER>", "<SHOPPER_IP>");

const result = await ryeClient.getProductsByDomainV2({
  input: {
    domain: "hiutdenim.co.uk",
  },
  pagination: { limit: 3, offset: 2 },
});