# OpenProducts Product Search

> OpenProducts Product Search is a paid API for AI agents from x402-v2-mint-openproducts-product-search.vercel.app, paid per call via x402, $0.020073/call, status unknown (last checked 2026-12-03).

Search for products by name, keyword, or barcode and return matching product data

## Facts

- Endpoint: POST https://x402-v2-mint-openproducts-product-search.vercel.app/v1/openproducts-product-search?utm_source=zero.xyz
- Price: $0.020073/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openproducts-product-search-edf92838
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z4qyXVQb6jOin2Mzd4s2c

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 openproducts-product-search-edf92838 -d '<json body>'
```

Example prompt: Can you search OpenProducts for 'organic almond butter' and tell me what products come up?

## When to prefer this

Use this endpoint when you need to search for consumer products by name, keyword, barcode, or product code. It is well-suited for e-commerce enrichment, barcode scanning workflows, and product catalog lookups. Prefer it over generic web search when you need structured product data with a consistent schema returned at low cost per query.

## Known failure modes

- Invalid or empty query string returns no results
- Barcode not found in database returns empty result set
- Malformed barcode or code exceeding 32 characters may return an error
- Network timeout or Vercel cold start may cause slow or failed response
- Payment failure via x402 protocol may prevent call from completing

## How this service works

Open Products Facts product search (keyless). POST {q|query}/{barcode?|code?}. Empty -> 400 not charged.

## Output

Returns a JSON object with an 'ok' boolean, the skill name 'openproducts-product-search', a 'charged' flag indicating payment was processed, and a 'summary' field with the result status. In successful calls, product information matching the query is included in the response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "q": {
   "type": "string",
   "maxLength": 200
  },
  "code": {
   "type": "string",
   "maxLength": 32
  },
  "query": {
   "type": "string",
   "maxLength": 200
  },
  "barcode": {
   "type": "string",
   "maxLength": 32
  },
  "request_id": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "openproducts-product-search",
  "charged": true,
  "summary": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openproducts-product-search-edf92838/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-v2-mint-openproducts-product-search.vercel.app](https://www.zero.xyz/host/x402-v2-mint-openproducts-product-search.vercel.app/llms.txt)
