# agentsvc.io Product Lookup by Barcode

> agentsvc.io Product Lookup by Barcode is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

Looks up product details (name, brand, nutrition, allergens, labels) from a barcode (EAN-13, EAN-8, or UPC) via Open Food Facts

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/product-lookup?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentsvc-io-product-lookup-by-barcode-775ddbfd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_anyoLFFzI43IIxmRv9J8M

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 agentsvc-io-product-lookup-by-barcode-775ddbfd -d '<json body>'
```

Example prompt: Can you look up the product with barcode 3017624010701 and tell me its name, brand, nutriscore, and whether it contains any allergens?

## When to prefer this

Use this endpoint when you need to identify a food or consumer product by its barcode and retrieve structured nutritional, allergen, or labeling data. It is particularly useful for food-tech applications, grocery shopping assistants, nutrition trackers, and compliance checks. Prefer this over manual web scraping since it returns normalized, structured JSON including nutriscore, ecoscore, and per-100g nutrition, all sourced from the well-maintained Open Food Facts database.

## Known failure modes

- Barcode not found in Open Food Facts — returns found: false
- Invalid barcode format — may return an error or empty result
- Product exists but has incomplete data — some fields may be null (e.g. nova_group, fiber_g)
- Network timeout or upstream Open Food Facts unavailability
- Payment failure via x402 — call not executed

## How this service works

86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.

## Output

Returns a JSON object with product name, brand, barcode, quantity, ingredients, allergens, labels, categories, nutriscore, ecoscore, nova group, nutrition per 100g (fat, sugar, protein, carbs, energy, fiber, salt, saturated fat), product image URL, Open Food Facts URL, and data source/license.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "barcode": {
   "type": "string",
   "description": "EAN-13, EAN-8 or UPC"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "url": "https://world.openfoodfacts.org/product/3017624010701",
   "name": "Nutella",
   "brand": "Ferrero",
   "found": true,
   "labels": [
    "no-gluten"
   ],
   "source": "Open Food Facts",
   "barcode": "3017624010701",
   "license": "ODbL (Open Food Facts contributors)",
   "ecoscore": "d",
   "quantity": "400.0 g",
   "allergens": [
    "nuts"
   ],
   "image_url": "https://images.openfoodfacts.org/images/products/301/762/401/0701/front_en.100.400.jpg",
   "categories": [
    "Cocoa and hazelnuts spreads",
    "de:Other"
   ],
   "nova_group": null,
   "nutriscore": "e",
   "ingredients": "sugar, palm oil, hazelnuts, skimmed milk powder, fat reduced cocoa, emulsifier, vanillin",
   "nutrition_per_100g": {
    "fat_g": 30.9,
    "salt_g": 0.1075,
    "fiber_g": null,
    "sugars_g": 56.3,
    "proteins_g": 6.3,
    "energy_kcal": 539,
    "carbohydrates_g": 57.5,
    "saturated_fat_g": 10.6
   }
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentsvc-io-product-lookup-by-barcode-775ddbfd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentsvc.io](https://www.zero.xyz/host/agentsvc.io/llms.txt)
