# StayAPI Compare Endpoint

> StayAPI Compare Endpoint is a paid API for AI agents from stay402.vercel.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Retrieves and compares accommodation details for a specific property by ID, paid per-request in USDC via x402.

## Facts

- Endpoint: POST https://stay402.vercel.app/api/compare
- 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/stayapi-compare-endpoint-f8d40dea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gmWqywi12IXaUv_s1c6uw

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 stayapi-compare-endpoint-f8d40dea -d '<json body>'
```

Example prompt: Can you pull up the details and comparison info for property ID 'prop_abc123' on StayAPI so I can see what it offers?

## When to prefer this

Use this endpoint when you need no-auth, pay-per-use accommodation comparison data for a specific known property ID, especially in agentic workflows where subscriptions are impractical and USDC micropayments via x402 are supported.

## Known failure modes

- Missing or invalid property ID returns an error response
- Unknown property ID results in empty or failed data object
- Payment failure via x402 causes request to be rejected before processing
- Network timeout on the Vercel deployment returns a 5xx error
- Malformed request body missing the required 'id' field returns a validation error

## How this service works

Accommodation search for AI agents. No auth, no subscriptions. Pay per request in USDC via x402.

## Output

Returns a success boolean and a data object containing property comparison details such as amenities, pricing, and other accommodation attributes for the requested property ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "id"
 ],
 "properties": {
  "id": {
   "type": "string",
   "description": "Property ID"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success",
  "data"
 ],
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stayapi-compare-endpoint-f8d40dea/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stay402.vercel.app](https://www.zero.xyz/host/stay402.vercel.app/llms.txt)
