82trust / 100

Product Compare

by fetchwerk Web Extraction in Search & web

x402 APIPassing, checked 2 h ago

Compare two to four product pages by verified identity, listed price, availability, shipping cost and rating without converting currencies.

POST https://fetch.halowerk.com/product/compare

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
197 ms typical, 197 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://fetch.halowerk.com/product/compare" \
  -H "content-type: application/json" \
  -d '{"currency_hint":"GBP","urls":["https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html","https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html"],"want_variants":false}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ffetch.halowerk.com%2Fproduct%2Fcompare
const res = await pay("https://fetch.halowerk.com/product/compare", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"currency_hint":"GBP","urls":["https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html","https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html"],"want_variants":false}),
});
console.log(await res.json());

Example input

{
  "currency_hint": "GBP",
  "urls": [
    "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html",
    "https://books.toscrape.com/catalogue/tipping-the-velvet_999/index.html"
  ],
  "want_variants": false
}

Example output

{
  "compared": 2,
  "comparison": {
    "currencies": [
      "EUR"
    ],
    "identity_matches": [
      {
        "product_indices": [
          0,
          1
        ],
        "type": "gtin",
        "value": "4006381333931"
      }
    ],
    "lowest_listed_price_by_currency": [
      {
        "compared_offers": 2,
        "currency": "EUR",
        "lowest_value": 19.9,
        "product_indices": [
          0
        ]
      }
    ],
    "same_product_proven": true,
    "warnings": []
  },
  "failed": 0,
  "fetched_at": "2026-08-30T10:00:00Z",
  "methodology": {
    "price": "Only stated prices are ranked; currencies are never converted."
  },
  "products": [
    {
      "index": 0,
      "input_url": "https://shop-a.example/item",
      "price": {
        "currency": "EUR",
        "value": 19.9
      },
      "product": {
        "gtin": "4006381333931",
        "name": "Example widget"
      }
    },
    {
      "index": 1,
      "input_url": "https://shop-b.example/item",
      "price": {
        "currency": "EUR",
        "value": 21.5
      },
      "product": {
        "gtin": "4006381333931",
        "name": "Example widget"
      }
    }
  ],
  "requested": 2
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402197 ms$0.01
5 h agoPassed402159 ms$0.01
10 h agoPassed402202 ms$0.01