# Purch Shop Search

> Purch Shop Search is a paid API for AI agents from api.purch.xyz, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Accepts a natural language product search query and optional context (price range, preferences) to return matching products from the Purch shop on Solana.

## Facts

- Endpoint: POST https://api.purch.xyz/x402/shop
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-purch-xyz-3a8847ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2b_ChmHiTJYsczJbQ37gg

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 api-purch-xyz-3a8847ef -d '<json body>'
```

Example prompt: Search the Purch shop for wireless noise-cancelling headphones under $150, and I prefer well-reviewed brands with good battery life.

## When to prefer this

Use this endpoint when you need to search for products on the Purch shop using a conversational, natural language query, especially when you want to filter by price range or personal preferences. Ideal for agents helping users discover and purchase goods on a Solana-based marketplace.

## Known failure modes

- Payment not received or insufficient USDC — 402 Payment Required
- Malformed query or missing message field — 400 Bad Request
- No products match the query — empty results array
- Solana network issues causing payment failure
- Price range min exceeds max — validation error

## How this service works

Pays to access the Purch shop endpoint on Solana using exact USDC payment.

## Output

A list of matching product results from the Purch shop that fit the natural language query, filtered by the optional price range and preferences provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "context": {
   "type": "object",
   "properties": {
    "priceRange": {
     "type": "object",
     "properties": {
      "max": {
       "type": "number"
      },
      "min": {
       "type": "number"
      }
     }
    },
    "preferences": {
     "type": "array",
     "items": {
      "type": "string"
     }
    }
   },
   "description": "Optional context with priceRange and preferences"
  },
  "message": {
   "type": "string",
   "description": "Natural language product search query"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-purch-xyz-3a8847ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.purch.xyz](https://www.zero.xyz/host/api.purch.xyz/llms.txt)
