# Rafid Travel Trip Cost Estimator

> Rafid Travel Trip Cost Estimator is a paid API for AI agents from api.rafidsystem.com, paid per call via x402, $0.25/call, status unknown (last checked 2026-10-30).

Estimates the total cost of a trip including flights and hotel for a given origin, destination, and travel dates

## Facts

- Endpoint: POST https://api.rafidsystem.com/api/v1/x402/travel/trip-cost-estimate?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/rafid-travel-trip-cost-estimator-662d5637
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZlikOX_TO7QIMFpepAI9N

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 rafid-travel-trip-cost-estimator-662d5637 -d '<json body>'
```

Example prompt: Can you estimate the total cost for a round trip from London to Dubai, economy class, departing November 24 and returning November 27, for 2 adults, including 1 hotel room — sort results by price?

## When to prefer this

Use this endpoint when an AI agent needs a structured, all-in-one travel cost estimate covering both flights and hotel in a single API call. Ideal for trip budgeting, pre-approval workflows, travel planning agents, and itinerary cost summarization. Prefer over separate flight-only or hotel-only APIs when the user wants a combined total. Best suited for agentic workflows where real-time live pricing with confidence scoring is needed rather than exact booking.

## Known failure modes

- No flight results found for the requested route/dates — returns NO_FLIGHT_RESULTS in unavailableComponents
- No hotel results found for the destination — returns NO_HOTEL_RESULTS in unavailableComponents
- Partial results where only flight or only hotel data is available — partial:true with null for missing component
- Invalid date format (not YYYY-MM-DD) causes validation error
- Origin or destination string fails pattern validation
- Child ages array length does not match children count
- Infant pricing not supported — infants must be 0
- Payment failure (insufficient USDC balance for $0.25 fee)

## How this service works

Rafid Agent API provides structured intelligence and paid APIs for AI agents across property, company and risk, supplier, finance, document, website, automotive, logistics, recruitment, trading, voice, video and business-planning workflows.

## Output

Returns a JSON object containing estimated total and subtotal costs broken down by flight and hotel components, the selected flight and hotel offers, route details (origin/destination), travel dates and number of nights, data freshness timestamps, a confidence indicator (e.g. 'partial_search_coverage'), any unavailable components with error codes, and the assumptions made during estimation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "sort": {
   "enum": [
    "price",
    "duration",
    "stops"
   ],
   "type": "string",
   "default": "price"
  },
  "hotel": {
   "type": "object",
   "default": {
    "rooms": 1,
    "enabled": true
   },
   "required": [
    "enabled",
    "rooms"
   ],
   "properties": {
    "rooms": {
     "type": "number",
     "const": 1,
     "default": 1
    },
    "enabled": {
     "type": "boolean",
     "default": true
    },
    "destination": {
     "type": "string",
     "pattern": "^[\\p{L}\\p{N} .,'()-]+$",
     "maxLength": 100,
     "minLength": 2
    }
   },
   "additionalProperties": false
  },
  "limit": {
   "type": "integer",
   "default": 20,
   "maximum": 50,
   "minimum": 1
  },
  "adults": {
   "type": "integer",
   "default": 1,
   "maximum": 9,
   "minimum": 1
  },
  "origin": {
   "type": "string",
   "pattern": "^[\\p{L}\\p{N} .,'()-]+$",
   "maxLength": 100,
   "minLength": 2
  },
  "infants": {
   "type": "number",
   "const": 0,
   "default": 0,
   "description": "Infant pricing is not supported by this adapter."
  },
  "children": {
   "type": "integer",
   "default": 0,
   "maximum": 8,
   "minimum": 0
  },
  "currency": {
   "type": "string",
   "default": "USD",
   "pattern": "^[A-Z]{3}$"
  },
  "maxStops": {
   "type": "integer",
   "maximum": 3,
   "minimum": 0
  },
  "strategy": {
   "enum": [
    "cheapest",
    "balanced",
    "comfort"
   ],
   "type": "string",
   "default": "balanced"
  },
  "childAges": {
   "type": "array",
   "items": {
    "type": "integer",
    "maximum": 17,
    "minimum": 0
   },
   "default": [],
   "maxItems": 8
  },
  "cabinClass": {
   "enum": [
    "economy",
    "premium_economy",
    "business",
    "first"
   ],
   "type": "string",
   "default": "economy"
  },
  "returnDate": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
  },
  "destination": {
   "type": "string",
   "pattern": "^[\\p{L}\\p{N} .,'()-]+$",
   "maxLength": 100,
   "minLength": 2
  },
  "nationality": {
   "type": "string",
   "pattern": "^[A-Z]{2}$"
  },
  "departureDate": {
   "type": "string",
   "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "cost": {
   "hotel": null,
   "flight": null,
   "currency": "USD",
   "estimatedTotal": null,
   "estimatedSubtotal": 0
  },
  "dates": {
   "nights": 3,
   "return": "2026-11-27",
   "departure": "2026-11-24"
  },
  "route": {
   "origin": "MCT",
   "destination": "DXB"
  },
  "partial": true,
  "dataMode": "live",
  "selected": {
   "hotel": null,
   "flight": null,
   "hotelOffer": null
  },
  "confidence": "partial_search_coverage",
  "searchedAt": "2026-10-04T00:00:00.000Z",
  "assumptions": [
   "No returned inventory in this illustrative schema example."
  ],
  "dataFreshness": {
   "hotel": "2026-10-04T00:00:00.000Z",
   "flight": "2026-10-04T00:00:00.000Z"
  },
  "unavailableComponents": [
   {
    "code": "NO_FLIGHT_RESULTS",
    "component": "flight"
   },
   {
    "code": "NO_HOTEL_RESULTS",
    "component": "hotel"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rafid-travel-trip-cost-estimator-662d5637/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.rafidsystem.com](https://www.zero.xyz/host/api.rafidsystem.com/llms.txt)
