# StayAPI Accommodation Search

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

Searches for available accommodations by location, dates, and budget, returning matching lodging options for AI agents via pay-per-request USDC payments.

## Facts

- Endpoint: POST https://stay402.vercel.app/api/search
- Price: $0.05/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-4954b619
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dKHyB-VeUGvezmRNuC9RY

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

Example prompt: Find me available accommodations in Lisbon from July 14 to July 21 with a budget around $100 per night.

## When to prefer this

Use this endpoint when an AI agent needs to search for lodging options without setting up OAuth, subscriptions, or API keys — ideal for autonomous agents that can pay per-request in USDC via x402. Best suited for travel planning workflows requiring quick, frictionless accommodation discovery.

## Known failure modes

- Location not recognized or too vague — no results returned
- Payment of $0.05 USDC via x402 fails — request blocked with 402 status
- Missing required location field — request rejected with validation error
- No accommodations found matching the given criteria — empty results in data field
- Checkout date before check-in date — may return error or empty results

## 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 matching accommodation listings for the specified location, dates, and budget criteria.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "location"
 ],
 "properties": {
  "budget": {
   "type": "string",
   "description": "Budget range in USD"
  },
  "checkin": {
   "type": "string",
   "description": "Check-in date"
  },
  "checkout": {
   "type": "string",
   "description": "Check-out date"
  },
  "location": {
   "type": "string",
   "description": "City, region, or destination name"
  }
 }
}
```

## 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-4954b619/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)
