# StayAPI Nearby Accommodations

> StayAPI Nearby Accommodations is a paid API for AI agents from stayagent.vercel.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Returns nearby accommodation listings for a given hotel ID, optionally filtered by type, via pay-per-request USDC payment

## Facts

- Endpoint: POST https://stayagent.vercel.app/api/nearby
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stayapi-nearby-accommodations-d452e8d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UOgqG7L0H0RJ9B3I2rEkI

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-nearby-accommodations-d452e8d7 -d '<json body>'
```

Example prompt: Find me nearby accommodations for hotel ID 'hotel_abc123', and filter results to show only boutique hotels.

## When to prefer this

Choose this endpoint when an AI agent needs to discover accommodations near a known hotel property without requiring API keys or subscriptions — ideal for lightweight, pay-per-use travel research workflows that use USDC micropayments via x402.

## Known failure modes

- Missing required 'id' field returns validation error
- Invalid hotel ID returns empty or error data
- Payment failure via x402 results in 402 response and no data returned
- Unknown type filter may return empty results or be ignored
- Service unavailable on Vercel cold start may cause timeout

## How this service works

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

## Output

A JSON object with a success boolean and a data object containing nearby accommodation listings relevant to the given hotel ID, optionally narrowed by accommodation type.

## Request schema (JSON Schema)

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

## 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-nearby-accommodations-d452e8d7/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)
