# Scout Packs — Pack Size Parser

> Scout Packs — Pack Size Parser is a paid API for AI agents from scout-packs-production.up.railway.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-11).

Parses a product title string to extract pack count, unit size, unit price, and total normalized quantity

## Facts

- Endpoint: GET https://scout-packs-production.up.railway.app/packsize?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scout-packs-pack-size-parser-1c132c71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9stcLRdiE_dDBWkngCzMq

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 scout-packs-pack-size-parser-1c132c71
```

Example prompt: Parse this product title for me — 'Coca-Cola 12-pack 12oz cans' — and figure out how many units it contains, the unit size, and the price per unit if the pack costs $8.99.

## When to prefer this

Choose this endpoint when you need to programmatically parse pack sizes and unit economics from raw product title strings — particularly for retail, grocery, or CPG product catalogs where titles follow common naming conventions. It is especially useful for price-per-unit comparisons and product normalization pipelines. Prefer this over manual regex or LLM parsing when a structured, confidence-scored JSON response is required.

## Known failure modes

- Ambiguous or malformed product title may yield low confidence score or incorrect unit parsing
- Missing required 'title' query parameter returns an error
- Non-standard packaging descriptions (e.g. 'value bundle', 'family size') may produce low-confidence results
- Price parameter provided in wrong format (non-numeric string) may cause unit_price calculation to fail

## How this service works

Verified B2B lead packs and per-lead enrichment lookups for agents. $0.01 per lookup or pack (demand probe). USDC on Base via x402. No account, API key, or subscription.

## Output

Returns a JSON object with receipt status, parsed pack_count (number of units), unit_size (e.g. '12oz'), unit_price (price per unit if package price was provided), total_normalized (e.g. '144oz'), and a confidence rating (high/medium/low) indicating how reliably the title was parsed.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "title"
     ],
     "properties": {
      "price": {
       "type": "string",
       "description": "Optional package price (e.g. '8.99') to compute price per normalized unit."
      },
      "title": {
       "type": "string",
       "description": "Product title to parse (e.g. 'Coca-Cola 12-pack 12oz cans')."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "receipt": {
       "type": "string"
      },
      "unit_size": {
       "type": "string"
      },
      "confidence": {
       "type": "string"
      },
      "pack_count": {
       "type": "number"
      },
      "unit_price": {
       "type": "string"
      },
      "total_normalized": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "receipt": "ok",
  "unit_size": "12oz",
  "confidence": "high",
  "pack_count": 12,
  "unit_price": "0.75",
  "total_normalized": "144oz"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scout-packs-pack-size-parser-1c132c71/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scout-packs-production.up.railway.app](https://www.zero.xyz/host/scout-packs-production.up.railway.app/llms.txt)
