> ## 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](/guides/offer.md)). The returned `product.id` works with `products.retrieve` afterward.

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

```typescript TypeScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
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={"theme":{"light":"github-light","dark":"github-dark"}}
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()
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.