# AgentShare Commerce Quote — Product & Offer Search

> AgentShare Commerce Quote — Product & Offer Search is a paid API for AI agents from agentshare.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Searches for product and offer listings matching a query, returning priced results with optional budget filtering and best-offer mode.

## Facts

- Endpoint: GET https://agentshare.dev/api/v1/agent/commerce/quote
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshare-commerce-quote-product-offer-search-4a9f5852
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5r1CUZh9P89vHY8B8Xfrt

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 agentshare-commerce-quote-product-offer-search-4a9f5852
```

Example prompt: Search AgentShare for the best offer on a Solana hardware wallet under $80 — use best_offer mode and show me all matching listings.

## When to prefer this

Use this endpoint when you need to search for product offers or pricing within the AgentShare marketplace, especially when operating in a Solana or x402 payment context. Prefer this over generic search APIs when you need structured commerce listings with price metadata and want to leverage the best_offer mode for single-result price optimization or budget-cap filtering via max_price_usd.

## Known failure modes

- Empty listings array returned when no offers match the query
- Missing required 'q' parameter causes 400 Bad Request
- Invalid mode enum value rejected by schema validation
- max_price_usd filter excludes all results, returning empty listings
- Service unavailable or payment not processed results in 402 or 503 error

## How this service works

AgentShare — agent-paid API access for autonomous agents. Dual-auth (API key or x402 USDC), machine-readable discovery, MCP. Commerce and Solana/Meteora DeFi tools are secondary modules.

## Output

Returns a JSON object containing a list of product/offer listings matching the query and a schema_version field (agentshare.price.v1). Each listing includes offer details and pricing. The listings array may be empty if no results match.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "minLength": 1,
       "description": "Product / offer query."
      },
      "mode": {
       "enum": [
        "search",
        "best_offer"
       ],
       "type": "string",
       "description": "Quote mode."
      },
      "query": {
       "type": "string",
       "minLength": 1,
       "description": "Alias for q."
      },
      "max_price_usd": {
       "type": "number",
       "description": "Optional budget cap (USD)."
      }
     },
     "additionalProperties": true
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "listings": [],
     "schema_version": "agentshare.price.v1"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "listings": [],
  "schema_version": "agentshare.price.v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshare-commerce-quote-product-offer-search-4a9f5852/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshare.dev](https://www.zero.xyz/host/agentshare.dev/llms.txt)
