Get details for several products at once
compare_productsPrice the same product at several stores — up to 5 URLs in ONE call and ONE payment.
USE THIS WHENEVER YOU HAVE MORE THAN ONE URL. Comparing an item across stores, checking a short list, or refreshing a handful of tracked prices. It returns full details for each URL so YOU can compare them; it does not rank them or pick a winner. Through get_product_details that is one EIP-3009 signature, one settlement and one round trip PER URL; this is one of each for the whole set.
RETURNS one entry per URL in the order given, each with the same product and page objects get_product_details returns, plus ok/error so a single dead URL does not cost you the rest.
COST $0.15 flat for up to 5 URLs — cheaper per page than calling get_product_details 5 times.
BILLING, stated plainly: the price is flat, so a batch where only SOME URLs succeed is charged in full. A batch where NO url succeeds returns an error and is not charged. If you have one URL and are unsure it is live, get_product_details is the cheaper bet.
Duplicate URLs are removed and not billed twice.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | Up to 5 absolute https:// product page URLs. Duplicates are removed and not billed twice. | |
| payment | No | Base64-encoded x402 payment payload. Omit on the first call to receive payment requirements. | |
| allow_redirect | No | Applies to every URL. See get_product_details for what it does. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| failed | Yes | ||
| status | Yes | ||
| billing | Yes | The billing rule, restated on every response rather than only in the docs. | |
| results | Yes | ||
| requested | Yes | ||
| succeeded | Yes | ||
| settlement | Yes |