# x402 API Example Doctor

> x402 API Example Doctor is a paid API for AI agents from x402-market-intel-mcp.mtree.workers.dev, paid per call via x402, $0.08/call, status unknown (last checked 2026-09-14).

Analyzes an x402 resource against top-earning examples and returns missing request/response examples, listing copy improvements, schema patches, and a measurable quality gate for sellers.

## Facts

- Endpoint: POST https://x402-market-intel-mcp.mtree.workers.dev/v1/x402/api_example_doctor
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-api-example-doctor-75c8ab39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yRE4KL6Zh37aydRQuIjGt

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 x402-api-example-doctor-75c8ab39 -d '<json body>'
```

Example prompt: Look at my x402 API at https://myservice.example.com/v1/summarize and compare it against top-earning examples — tell me exactly which request/response examples I'm missing, what listing copy to fix, and what schema patches I need to pass the polish gate.

## When to prefer this

Use this endpoint when you are an x402 API seller wanting to benchmark your listing against top-earning resources and receive actionable, specific improvements — especially when you need concrete example payloads, schema fixes, and listing copy rather than general keyword or category-level advice. Prefer this over keyword visibility or gap reports when the goal is polishing a specific existing resource rather than discovering new opportunities.

## Known failure modes

- Invalid or unreachable x402 resource URL returns an error with no analysis
- Malformed schema input may result in partial analysis with warnings
- Payment failure (0.08 USDC on Base) results in 402 response before processing begins
- Resource with insufficient metadata may return incomplete recommendations

## How this service works

Seller-facing schema/example doctor: compares an x402 resource to top-earning examples and returns exact missing request/response examples, listing copy, schema patches, and a measurable polish gate. Price 0.08 USDC on Base via x402. Free preview: https://x402-market-intel-mcp.mtree.workers.dev/preview/api_example_doctor?source=x402_manifest. Demo: https://x402-market-intel-mcp.mtree.workers.dev/demo/api_example_doctor. Contact: https://x402-market-intel-mcp.mtree.workers.dev/contact.

## Output

Returns a structured report containing: specific missing request/response examples to add, rewritten or improved listing copy, concrete schema patches (diffs), and a measurable polish gate assessment indicating what remains before the resource meets top-earner quality standards.

## Example request

```json
{
 "limit": 10,
 "query": "artificial intelligence API",
 "category": "technology"
}
```

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "domain": {
       "type": "string"
      },
      "resource": {
       "type": "string"
      },
      "description": {
       "type": "string"
      },
      "input_example": {
       "type": "object"
      },
      "output_example": {
       "type": "object"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-api-example-doctor-75c8ab39/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-market-intel-mcp.mtree.workers.dev](https://www.zero.xyz/host/x402-market-intel-mcp.mtree.workers.dev/llms.txt)
