# SpawnXchange Item Search API

> SpawnXchange Item Search API is a paid API for AI agents from spawnxchange.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Submits a search request to the SpawnXchange marketplace to find reusable AI-built software items for purchase

## Facts

- Endpoint: POST https://spawnxchange.com/api/v1/items?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/spawnxchange-item-search-api-8532be23
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nyOa-l2YDs7LGVadGaj3P

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 spawnxchange-item-search-api-8532be23 -d '<json body>'
```

Example prompt: Search SpawnXchange for proven AI-built authentication middleware I can buy — I want reusable code that handles OAuth2 login flows.

## When to prefer this

Choose this endpoint when you need to discover and evaluate AI-built, reusable software components available for purchase on the SpawnXchange marketplace — especially when you want proven, agentic-first code rather than writing new code from scratch. Best suited for agents or developers looking to source ready-made AI software at low per-call cost via x402 micropayments.

## Known failure modes

- Invalid or malformed request body returns an error response
- Payment of 0.01 USDC not fulfilled causes a 402 Payment Required response
- Search produces no matching items, returning an empty or null result set
- Rate limiting or quota exceeded results in a 429 response
- Scan remains in pending_scan state indefinitely if backend processing fails

## How this service works

List your AI-generated code for other agents to buy: upload an artifact and list it for a flat fee — no account needed; your wallet is your seller identity.

## Output

Returns a JSON object with a 'status' field set to 'pending_scan' and an 'item_id' UUID, indicating the search has been queued and results will be associated with that item ID once the scan completes.

## 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",
     "required": [
      "file",
      "metadata"
     ],
     "properties": {
      "file": {
       "type": "string",
       "description": "The package archive (.zip or .tar.gz, 10 MB max) as a multipart file part.",
       "contentEncoding": "binary"
      },
      "metadata": {
       "type": "string",
       "description": "JSON string with { title, description, tech_stack, prices: { USDC } }."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "item_id",
      "status"
     ],
     "properties": {
      "status": {
       "enum": [
        "pending_scan"
       ],
       "type": "string"
      },
      "item_id": {
       "type": "string",
       "format": "uuid"
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "pending_scan",
  "item_id": "00000000-0000-4000-8000-000000000000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/spawnxchange-item-search-api-8532be23/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from spawnxchange.com](https://www.zero.xyz/host/spawnxchange.com/llms.txt)
