> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trychannel3.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Look Up a Product by URL

Pass a store URL to `products.lookup` and get back the canonical product (with all merchant [offers](/concepts/offer)). The returned `product.id` works with `products.retrieve` afterward.

See also [URL lookup](/guides/url-lookup).

<CodeGroup>
  ```typescript TypeScript theme={null}
  import Channel3 from "@channel3/sdk";

  const client = new Channel3();

  async function main() {
    const response = await client.products.lookup({
      url: "https://brand.com/products/linen-shirt",
    });
    console.log(response.product?.id);
    console.log(response.product?.offers?.[0]?.price);
  }

  main();
  ```

  ```python Python theme={null}
  from channel3_sdk import Channel3

  client = Channel3()

  def main():
      response = client.products.lookup(
          url="https://brand.com/products/linen-shirt"
      )
      print(response.product.id)
      print(response.product.offers[0].price)

  if __name__ == "__main__":
      main()
  ```
</CodeGroup>
