{"uid":"cap_ZlikOX_TO7QIMFpepAI9N","slug":"rafid-travel-trip-cost-estimator-662d5637","name":"Rafid Travel Trip Cost Estimator","description":"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.","url":"https://api.rafidsystem.com/api/v1/x402/travel/trip-cost-estimate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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}$"}}},"responseSchema":{"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"}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_78WPiY6u__0YCxR5lEN3z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Estimates the total cost of a trip including flights and hotel for a given origin, destination, and travel dates","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Family vacation budget planning","prompt":"I need a ballpark cost for a family trip — 2 adults and 2 kids aged 8 and 11 — flying economy from New York to Orlando, departing December 20 and returning December 27, with 1 hotel room. Sort by price and use the cheapest strategy."},{"title":"Business travel cost approval","prompt":"Estimate the total cost for a business class round trip from Muscat to London for 1 adult, departing March 10 and returning March 14, including hotel accommodation — I need this for an expense pre-approval."},{"title":"Backpacker budget comparison","prompt":"What's the cheapest I could do a round trip from Cairo to Bangkok for 1 adult, economy, departing February 1 and coming back February 8, maximum 1 stop, with a hotel room included? Sort by price."}],"resultDescription":"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.","failureModes":["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)"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:31:22.048Z","isFirstParty":false,"canonicalSlug":"rafid-travel-trip-cost-estimator-662d5637"}