# Bazaar Rewrite

> Bazaar Rewrite is a paid API for AI agents from x402orcle.vercel.app, paid per call via x402, $1.5/call, status unknown (last checked 2026-09-13).

Rewrites a service's name, description, and tags to maximize buyer-query ranking on Bazaar marketplace, warning when first-index is frozen.

## Facts

- Endpoint: POST https://x402orcle.vercel.app/api/consult/oracle_bazaar_rewrite
- Price: $1.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bazaar-rewrite-ae0de3fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_02v8JYBQ_9K9QL8sQbCL5

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 bazaar-rewrite-ae0de3fb -d '<json body>'
```

Example prompt: Rewrite my Bazaar listing — current description is 'A simple REST API for converting currencies in real time' — to rank for buyers searching 'live forex rates', 'currency conversion API', and 'real-time exchange data'.

## When to prefer this

Choose this endpoint when you have an existing Bazaar marketplace listing and want to improve its search ranking by aligning the name, description, and tags to specific buyer search phrases. It is purpose-built for Bazaar's ranking algorithm and enforces platform constraints (name ≤32 chars, description ≤500 chars, ≤5 tags), making it more reliable than a generic rewriting LLM for this specific marketplace context.

## Known failure modes

- Buyer phrases array is empty — output may not be query-targeted
- Current description not provided — rewrite may lack context for improvement
- Service name exceeds 32 characters after rewrite — agent must truncate
- First-index freeze warning returned — ranking ceiling already capped
- Payment of $1.50 USDC via x402 fails — endpoint returns 402 and no content is generated

## How this service works

Rewrite serviceName (≤32), description (≤500), tags (≤5) for buyer-query rank. Warns on first-index freeze.

## Output

Returns a rewritten service name (≤32 characters), an optimized description (≤500 characters), and up to 5 tags tuned to match the provided buyer search phrases. May include a warning if the first-index position is frozen and ranking improvements are limited.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "buyer_phrases": {
   "type": "array"
  },
  "current_description": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bazaar-rewrite-ae0de3fb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402orcle.vercel.app](https://www.zero.xyz/host/x402orcle.vercel.app/llms.txt)
