# StayAPI Availability Check

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

Checks room availability for a specific hotel by ID given check-in and check-out dates, returning availability data for AI-driven accommodation booking flows.

## Facts

- Endpoint: POST https://stay402.vercel.app/api/availability
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stayapi-availability-check-258ce38a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0SaFrH9Zh4uw4RODl21r9

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-availability-check-258ce38a -d '<json body>'
```

Example prompt: Check if hotel ID 'htl_manhattan_89' is available from June 14 to June 18 — I want to know if there are rooms open for those four nights.

## When to prefer this

Use this endpoint when you have a specific hotel ID and need to check its availability for given dates without requiring API keys or subscriptions — ideal for lightweight, pay-per-use agent workflows using x402 USDC micropayments.

## Known failure modes

- Invalid or unknown hotel ID returns error or empty data
- Malformed date strings cause request failure
- Missing required fields (id, checkin, checkout) result in validation error
- Payment failure via x402 protocol blocks the request
- Dates in the past or illogical date ranges may return no availability
- Service downtime on Vercel infrastructure causes 5xx errors

## 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 boolean 'success' field and a 'data' object containing availability details for the queried hotel and date range.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "id",
  "checkin",
  "checkout"
 ],
 "properties": {
  "id": {
   "type": "string",
   "description": "Hotel ID"
  },
  "checkin": {
   "type": "string",
   "description": "Check-in date"
  },
  "checkout": {
   "type": "string",
   "description": "Check-out date"
  }
 }
}
```

## 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-availability-check-258ce38a/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)
