# Saylor Innovations Food Barcode

> Saylor Innovations Food Barcode is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-17).

Looks up packaged food product details by UPC or EAN barcode, returning name, brand, ingredients, allergens, Nutri-Score, Nova group, Ecoscore, and full nutrition facts per 100g

## Facts

- Endpoint: GET https://saylorinnovations.com/api/food/barcode/:upc?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-food-barcode-f09d014d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1C3zEKIfOLDuXj3ENPtK5

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 saylor-innovations-food-barcode-f09d014d
```

Example prompt: Can you look up the barcode 016000275782 and tell me the product name, brand, ingredients, allergens, and Nutri-Score?

## When to prefer this

Use this endpoint when you need to resolve a specific UPC or EAN barcode into packaged food metadata including nutritional information, allergens, Nutri-Score, Nova group, and Ecoscore. It is well-suited for grocery shopping assistants, diet-tracking agents, allergen-checking workflows, or any use case where a physical product barcode needs to be decoded into structured food data. Prefer this over scraping retailer pages when you need standardized nutrition fields in a machine-readable format.

## Known failure modes

- Barcode not found in database — returns {found: false} with null fields
- Malformed or non-numeric UPC/EAN string may result in error or not-found response
- Partial data — some fields (allergens, Ecoscore, Nova group) may be null if not in the source database
- Payment failure due to x402 protocol issues
- Rate limiting or upstream data source unavailability

## How this service works

Packaged food lookup by UPC or EAN barcode - name, brand, ingredients, allergens, Nutri-Score and nutrition facts

## Output

A JSON object with a `found` boolean indicating whether the barcode matched a record. If found, returns the product name, brand(s), quantity, image URL, ingredients text, allergen list, product categories, Nova processing group (1-4), Nutri-Score grade (a-e), Ecoscore grade, full nutrition facts per 100g (calories, fat, carbs, sugar, protein, salt, fiber, etc.), and the data source used.

## 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",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "upc"
     ],
     "properties": {
      "upc": {
       "type": "string",
       "description": "UPC/EAN barcode number (path)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "found"
     ],
     "properties": {
      "upc": {
       "type": [
        "string",
        "null"
       ]
      },
      "name": {
       "type": [
        "string",
        "null"
       ],
       "description": "Name"
      },
      "found": {
       "type": "boolean",
       "description": "True when the lookup matched a record"
      },
      "image": {
       "type": [
        "string",
        "null"
       ],
       "description": "Image URL"
      },
      "brands": {
       "type": [
        "string",
        "null"
       ],
       "description": "Brands"
      },
      "source": {
       "type": [
        "string",
        "null"
       ],
       "description": "Data source the values come from"
      },
      "quantity": {
       "type": [
        "string",
        "null"
       ],
       "description": "Quantity"
      },
      "allergens": {
       "type": [
        "array",
        "null"
       ]
      },
      "categories": {
       "type": [
        "array",
        "null"
       ],
       "description": "Categories"
      },
      "nova_group": {
       "type": [
        "number",
        "null"
       ],
       "description": "Nova group"
      },
      "ingredients": {
       "type": [
        "string",
        "null"
       ]
      },
      "ecoscore_grade": {
       "type": [
        "string",
        "null"
       ],
       "description": "Ecoscore grade"
      },
      "nutriscore_grade": {
       "type": [
        "string",
        "null"
       ],
       "description": "Nutriscore grade"
      },
      "nutrition_per_100g": {
       "type": "object",
       "description"
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-food-barcode-f09d014d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
