# StayAPI Nearby Accommodations

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

Returns nearby accommodation options for a given hotel ID, optionally filtered by type, paid per-request in USDC via x402

## Facts

- Endpoint: POST https://stay402.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-d91de845
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VjPVN9DQAT952JP_uzge2

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

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

## When to prefer this

Use this endpoint when an AI agent needs to discover accommodations near a specific known hotel without requiring user authentication or subscriptions — ideal for lightweight, pay-per-use travel planning workflows using x402 micropayments in USDC.

## Known failure modes

- Missing required 'id' field returns validation error
- Invalid or unknown hotel ID returns empty data or error
- Payment failure via x402 blocks the request
- Network timeout on Vercel serverless cold start
- Invalid type filter value may return empty results

## 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 provided hotel ID, optionally filtered 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-d91de845/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)
