# Food Barcode Facts – Allergen Check

> Food Barcode Facts – Allergen Check is a paid API for AI agents from food-barcode.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Returns allergens and traces declared for a product barcode, cross-checked against a user-supplied list of allergens to avoid, with a verdict and reasons — but never claims a product is safe.

## Facts

- Endpoint: GET https://food-barcode.x402tookit.com/food-allergens?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/food-barcode-facts-allergen-check-75612251
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qcFFw9BnS_BGqFoDzdjcd

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 food-barcode-facts-allergen-check-75612251
```

Example prompt: Look up barcode 3017620422003 and check whether it contains or has traces of milk, nuts, or gluten — I need to know the declared allergens and whether any of those three appear.

## When to prefer this

Use this endpoint when you need to cross-check a specific packaged food product's declared allergens and traces against a known list of allergens a user wants to avoid, given only a barcode. Prefer it over manual ingredient parsing when you have a UPC or EAN code and need a structured, labeled verdict with reasons and data quality metadata. Not a substitute for medical advice or regulatory compliance checks.

## Known failure modes

- Barcode not found in database — returns null name/ingredients with degraded flag
- Allergen data missing or incomplete — notChecked list populated, dataQuality.completeness low
- Malformed barcode string — query parameter validation error
- Network or upstream data source unavailable — degraded mode with partial results
- Allergen list contains unrecognized terms — may not match against declared allergens correctly

## How this service works

Allergens and traces declared for a barcode, checked against allergens you avoid; never claims a product is safe.

## Output

Returns a structured response including the product name, brand, full ingredients text, declared allergens, detected traces, a verdict string, a list of reasons explaining the verdict, which allergens from your list were found, which were not checked due to missing data, data quality indicators (completeness score, last modified date, whether ingredients are present), source attribution, and a mandatory disclaimer that the result never constitutes a safety guarantee.

## 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": [
      "barcode"
     ],
     "properties": {
      "avoid": {
       "type": "string",
       "description": "Comma-separated allergens to check, e.g. milk,nuts,gluten"
      },
      "barcode": {
       "type": "string",
       "description": "UPC or EAN barcode"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "name": {
       "type": [
        "null",
        "string"
       ]
      },
      "brands": {
       "type": [
        "null",
        "string"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "traces": {
       "type": [
        "array",
        "null"
       ]
      },
      "barcode": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "quantity": {
       "type": [
        "null",
        "string"
       ]
      },
      "sourceUrl": {
       "type": [
        "null",
        "string"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "attribution": {
       "type": [
        "null",
        "string"
       ]
      },
      "dataQuality": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "completeness"
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/food-barcode-facts-allergen-check-75612251/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from food-barcode.x402tookit.com](https://www.zero.xyz/host/food-barcode.x402tookit.com/llms.txt)
