# StayAPI Accommodation Search

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

Searches for accommodation options in a destination city for a given number of days, returning lodging data for AI agent trip planning.

## Facts

- Endpoint: POST https://stay402.vercel.app/api/itinerary
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stayapi-accommodation-search-eec33833
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qClipTAE_8mqFVRrdxN6z

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-accommodation-search-eec33833 -d '<json body>'
```

Example prompt: Search for accommodation options in Lisbon for 4 days — I need to see what's available for my stay there.

## When to prefer this

Use this endpoint when an AI agent needs pay-per-request accommodation search without API key setup or subscriptions — ideal for lightweight travel agents that need hotel/lodging data on demand in USDC via x402 protocol.

## Known failure modes

- Missing required 'destination' field returns validation error
- Payment failure (insufficient USDC balance) blocks request
- Unknown or misspelled destination may return empty results
- Network timeout on Vercel serverless cold start
- Invalid days value (non-integer or negative) may cause error

## 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 accommodation results for the specified destination and duration, such as hotel listings or lodging options.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "destination"
 ],
 "properties": {
  "days": {
   "type": "integer",
   "description": "Number of days"
  },
  "destination": {
   "type": "string",
   "description": "Destination city"
  }
 }
}
```

## 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-accommodation-search-eec33833/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)
