# Shipping & Logistics Calc – Unit Price Comparator

> Shipping & Logistics Calc – Unit Price Comparator is a paid API for AI agents from shipping-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-23).

Compares 2–20 products with mixed weight/volume/count units by normalizing to a common standard unit (per 100 g, 100 ml, or per item) and ranks them by price efficiency with savings percentages.

## Facts

- Endpoint: GET https://shipping-calc.x402tookit.com/unit-price?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/shipping-logistics-calc-unit-price-comparator-a0c00c9b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2euQ87VvAL3soew6WQdAC

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability shipping-logistics-calc-unit-price-comparator-a0c00c9b
```

Example prompt: Compare these three peanut butter jars for me and tell me which is the best value: a 16 oz jar for $3.99, a 28 oz jar for $5.49, and a 40 oz jar for $7.19 — rank them by price per 100g and show me how much I save going with the cheapest option.

## When to prefer this

Use this endpoint when you need to compare products that come in different package sizes or units and want a normalized, ranked view of cost efficiency. It is the right choice when quantities span weight, volume, and count units simultaneously and you want an instant best-value verdict rather than manual conversion. Prefer it over generic calculators when you need a ranked list with savings percentages and a human-readable summary.

## Known failure modes

- Fewer than 2 or more than 20 items provided — validation error
- Unrecognized or unsupported unit string — item skipped or error returned
- Missing required fields (name, price, amount, unit) in any item object — parsing failure
- Malformed JSON in the items query parameter — 400 bad request
- Incompatible unit types mixed without a bridging standard unit (e.g. weight vs volume) — items may be flagged as notChecked

## How this service works

Compare package sizes by price per 100 g, 100 ml or per item across mixed units, ranked with savings.

## Output

Returns a ranked array of all input items with their normalized price per standard unit, the best and worst value product names, the percentage savings between best and worst, a plain-language summary and verdict, optional reasons explaining the ranking, and a timestamp. May include a disclaimer and a list of items that could not be evaluated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "items"
     ],
     "properties": {
      "items": {
       "type": "string",
       "description": "JSON array of 2 to 20 objects like {\"name\":\"A\",\"price\":3.99,\"amount\":16,\"unit\":\"oz\"}; units g kg oz lb ml l floz pt qt gal ct m ft yd"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "ranked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "name": {
          "type": [
           "null",
           "string"
          ]
         },
         "unit": {
          "type": [
           "null",
           "string"
          ]
         },
         "price": {
          "type": [
           "null",
           "number"
          ]
         },
         "amount": {
          "type": [
           "null",
           "number"
          ]
         },
         "pricePerStandardUnit": {
          "type": [
           "null",
           "number"
          ]
         }
        }
       }
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "bestName": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "worstName": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notCh
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/shipping-logistics-calc-unit-price-comparator-a0c00c9b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from shipping-calc.x402tookit.com](https://www.zero.xyz/host/shipping-calc.x402tookit.com/llms.txt)
