# StayAPI Nearby Accommodations

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

Finds nearby accommodations and points of interest for a given hotel ID, optionally filtered by type

## Facts

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

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

Example prompt: Find me accommodations nearby hotel ID 'htl_abc123', and filter the results to show only 'resort' type properties.

## When to prefer this

Use this endpoint when you need no-auth, pay-per-request accommodation search near a known hotel ID without committing to a subscription. Ideal for AI agents that need lightweight, on-demand hotel discovery with USDC micropayments via x402.

## Known failure modes

- Missing required hotel ID returns validation error
- Invalid or unknown hotel ID returns empty or error response
- Payment failure via x402 prevents request from completing
- Unsupported type filter value may return empty results
- Network timeout on Vercel serverless cold start

## 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 boolean and a data object containing nearby accommodation results matching the provided hotel ID and optional type filter.

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