Arguments

input
RequestProductByURLInput!
required

An object containing the product’s URL.

Returns

RequestProductResponse.productID
RequestProductResponse

The productID is the unique identifier for the requested product, which can be used in subsequent queries to fetch product information.

Usage

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

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

const result = await ryeClient.requestProductByUrl({
  input: {
    url: "https://www.amazon.com/dp/B00A2KD8NY",
    marketplace: Marketplace.Amazon,
  },
});