# StayAPI Accommodation Search

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

Searches for accommodation options by location, dates, and budget, returning results suitable for AI agent workflows with pay-per-request USDC pricing.

## Facts

- Endpoint: POST https://stayagent.vercel.app/api/search?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Success rate: 0% of calls made through Zero
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stayapi-accommodation-search-c4b501b9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g50YrjE10C_XZpw59FFps

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

Example prompt: Search for accommodation in Lisbon from July 14 to July 18 with a budget of around $120 per night.

## When to prefer this

Choose this endpoint when an AI agent needs to search for accommodation without managing API keys or subscriptions — particularly useful in autonomous agent workflows where pay-per-use USDC micropayments via x402 are preferred over recurring auth-based API access.

## Known failure modes

- Missing required 'location' field returns a validation error
- Invalid or unparseable date formats for check-in/checkout may yield no results or an error
- Payment failure via x402 (insufficient USDC balance) prevents the request from completing
- Unsupported or ambiguous location strings may return empty results
- Server-side or upstream data source errors may cause non-200 responses

## 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 accommodation search results for the specified location, dates, and budget — typically including property listings, names, pricing, and availability details.

## 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-c4b501b9/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)
