# 2s GTIN/Barcode Product Lookup

> 2s GTIN/Barcode Product Lookup is a paid API for AI agents from 2s.io, paid per call via x402, $0.0036/call, status unknown (last checked 2026-09-14).

Decodes a barcode (UPC, EAN, ISBN, GTIN) and looks up live product identity data from the open federation

## Facts

- Endpoint: GET https://2s.io/api/product/gtin
- Price: $0.0036/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-gtin-barcode-product-lookup-851c738e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YBqJKYsZxCsDSuAQL2jT2

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 2s-gtin-barcode-product-lookup-851c738e
```

Example prompt: What product is barcode 012000161155? Look up its full identity from the open federation.

## When to prefer this

Use this endpoint when you need to identify a physical product from its barcode number (UPC, EAN, GTIN, or ISBN) without an API key or subscription — ideal for ad-hoc agent lookups, inventory checks, or product enrichment pipelines that pay per call via USDC.

## Known failure modes

- Invalid or malformed barcode digits returns an error
- Barcode not found in the open federation returns no identity data (decode-only result)
- Unsupported barcode format (e.g. QR code, non-numeric) returns a validation error
- Network or payment failure returns a 402 or 5xx error

## How this service works

Decode and validate a product barcode (GTIN / UPC-A / EAN-13 / EAN-8 / GTIN-14 / ISBN-13 / ISSN). Returns the GS1 mod-10 check-digit validation (valid flag + expected digit — an LLM can't reliably compute this), the symbology, the zero-padded GTIN-14 canonical form, and the GS1 prefix decoded to the issuing GS1 member organisation and its country (NOTE: that's the country of the org that issued the prefix, not necessarily where the item was made). Flags restricted-distribution (in-store/variable-measure) prefixes and Bookland (ISBN) / serial (ISSN) ranges. Also attempts a FRESH best-effort product-identity lookup (name, brand, category, image) across the open Open Food/Beauty/Products/Pet Food Facts federation (ODbL) — reliable for food, beverage, and beauty items, sparse for general retail (electronics/apparel), and may be null. Always live (no caching). Set identity=false to skip the lookup and decode only.

## Output

Returns decoded barcode metadata (barcode type, digits) plus live product identity data from the open federation — typically including product name, brand, and manufacturer details.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "required": [
      "gtin"
     ],
     "properties": {
      "gtin": {
       "type": "string",
       "description": "Barcode digits — UPC-A (12), EAN-13 (13), EAN-8 (8), GTIN-14 (14), or ISBN-13. Spaces/hyphens are stripped."
      },
      "identity": {
       "type": "boolean",
       "description": "Look up live product identity in the open federation (default true). false = decode only."
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-gtin-barcode-product-lookup-851c738e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
