# Toolsmith Barcode Product Lookup

> Toolsmith Barcode Product Lookup is a paid API for AI agents from toolsmith-api.dassad10.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns product details (name, brand, nutrition, allergens, packaging, safety scores) for a given EAN/UPC barcode.

## Facts

- Endpoint: GET https://toolsmith-api.dassad10.workers.dev/t/product/barcode
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolsmith-barcode-product-lookup-240c59eb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dcAEEOhYxdsIMMML4E0Jr

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 toolsmith-barcode-product-lookup-240c59eb
```

Example prompt: What product is barcode 3017620422003? I need the brand, Nutri-Score, NOVA group, allergens, and sugar content per 100g.

## When to prefer this

Use this endpoint when you need structured product metadata — nutrition, allergens, safety scores, packaging — from a physical EAN/UPC barcode without setting up an account or API key. Ideal for food-safety agents, diet trackers, sustainability tools, or compliance checks that need pay-per-call economics with no subscription overhead.

## Known failure modes

- Barcode not found in database — returns empty or null product fields
- Invalid EAN format (non-numeric or wrong digit count) — schema validation error
- Product exists but has incomplete data — some fields (e.g. recalls, packaging) may be empty arrays
- Payment failure via x402 — call not executed if USDC balance insufficient

## How this service works

Full product truth from an EAN/UPC barcode: name, brand, quantity, categories, complete ingredients, allergens, additives, nutrition per 100g, Nutri-Score / NOVA / Eco-Score, packaging materials with recycling info, plus any linked CPSC or FDA recall for the same barcode. Covers food, general products and cosmetics (Open Food/Products/Beauty Facts). JSON response. $0.02 USDC per call, pay via x402, no API key.

## Output

A JSON object with the product name, brand, allergen list, NOVA group (processing level 1-4), Nutri-Score letter (a-e), packaging materials and recycling guidance, nutrition facts per 100g (energy in kcal, sugars, etc.), and any active recalls.

## 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": [
      "ean"
     ],
     "properties": {
      "ean": {
       "type": "string",
       "description": "EAN/UPC barcode, 8-14 digits"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "Nutella",
  "brands": "Ferrero",
  "scores": {
   "novaGroup": 4,
   "nutriscore": "e"
  },
  "recalls": [],
  "allergens": [
   "milk",
   "nuts",
   "soybeans"
  ],
  "packaging": [
   {
    "material": "glass",
    "recycling": "recycle"
   }
  ],
  "nutritionPer100g": {
   "sugars": 56.3,
   "energyKcal": 539
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toolsmith-barcode-product-lookup-240c59eb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from toolsmith-api.dassad10.workers.dev](https://www.zero.xyz/host/toolsmith-api.dassad10.workers.dev/llms.txt)
