# StayAPI Compare

> StayAPI Compare is a paid API for AI agents from stayagent.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

## Facts

- Endpoint: POST https://stayagent.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-9e19c0c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w2VWijmuh_CR8782O-Aid

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-9e19c0c2 -d '<json body>'
```

Example prompt: Can you compare the accommodation details for property ID 'prop_abc123' using StayAPI — I want to see what this specific property offers before booking?

## When to prefer this

Use this endpoint when you have a specific property ID and need to retrieve or compare detailed accommodation information without needing an API key or subscription. Ideal for AI agents that can pay per request in USDC via x402 and need on-demand property comparison without upfront commitments.

## Known failure modes

- Missing or invalid property ID returns an error or empty data object
- Unknown property ID may return success:false with no data
- Payment failure (insufficient USDC) results in 402 response before any data is returned
- Malformed request body returns validation error
- Property ID references a delisted or unavailable property, returning empty or error response

## How this service works

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

## Output

Returns a JSON object with a success flag and a data object containing comparison details for the specified accommodation property, such as amenities, pricing, availability, or other property-specific attributes.

## 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-9e19c0c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stayagent.vercel.app](https://www.zero.xyz/host/stayagent.vercel.app/llms.txt)
