# Ghost Agent OS — x402 API Provider Search

> Ghost Agent OS — x402 API Provider Search is a paid API for AI agents from ghost-identity.ghost-agent-os.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Searches for verified x402-capable API providers matching a natural language query, filtered by minimum payer count and price ceiling

## Facts

- Endpoint: POST https://ghost-identity.ghost-agent-os.workers.dev/v1/search
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ghost-agent-os-x402-api-provider-search-44c85b36
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iON69PF3Ok-v65FMJyHN7

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 ghost-agent-os-x402-api-provider-search-44c85b36 -d '<json body>'
```

Example prompt: Search Ghost's verified x402 provider directory for APIs that can scrape web pages — only show ones with at least 3 independent payers in the last 30 days and a price under $0.10 per call.

## When to prefer this

Use this endpoint when an AI agent needs to dynamically discover which x402-compatible API providers are available for a given task at runtime, especially when you want to verify provider trustworthiness via payer count and enforce a price ceiling. Prefer this over hardcoding a specific provider when the task category is known but the best provider is not.

## Known failure modes

- No providers found matching query and filters — returns empty result set
- Query too vague — may return loosely relevant providers
- min_payers too high — filters out all available providers
- max_price_usd too low — no providers under that ceiling
- Payment via x402 fails — 402 response if USDC payment not completed
- Query string exceeds 300 character limit — validation error

## How this service works

Paid per call via x402 (exact / eip155:8453 / USDC). Any x402-capable client pays automatically: agentcash, @x402/fetch, x402-fetch. Every paid operation carries x-payment-info; the same terms are served live as a 402.

## Output

A list of verified x402-capable API providers matching the query, including provider metadata, pricing details, payer counts, and network information — filtered by the specified minimum payer threshold and price ceiling.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "title": "Query",
   "maxLength": 300,
   "description": "What to search the web for."
  },
  "country": {
   "type": "string",
   "title": "Country",
   "default": "",
   "maxLength": 8,
   "description": "Country code for localisation, e.g. 'us', 'de'."
  },
  "results": {
   "type": "integer",
   "title": "Results",
   "default": 10,
   "maximum": 100,
   "minimum": 1,
   "description": "How many organic results to return."
  },
  "language": {
   "type": "string",
   "title": "Language",
   "default": "",
   "maxLength": 8,
   "description": "Interface language, e.g. 'en', 'es'."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ghost-agent-os-x402-api-provider-search-44c85b36/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ghost-identity.ghost-agent-os.workers.dev](https://www.zero.xyz/host/ghost-identity.ghost-agent-os.workers.dev/llms.txt)
