AgentAPIGate
Guides/API Catalog (300+ Endpoints)/Multi-Rail Travel & Relocation Agent Trace

Airbnb & Hotel Live Pricing MCP API for AI Travel Agents

Autonomous travel, corporate relocation, and itinerary-planning agents fail when they query hotels or short-term rentals in isolation. A 2-night business stay often favors central hotels once fixed cleaning fees are added, while a 7-night team offsite flips in favor of multi-bedroom rentals. Here is how to fan out across travel.hotels.search and travel.airbnb.search in a single parallel turn — normalizing all-in stay totals in under 40 lines of TypeScript or Python.

Live Travel & Hospitality Endpoints

4 Composable Endpoints Behind One Unified USD Balance

travel.hotels.search$0.0030/call · p50 890 ms

Live OTA hotel inventory, star ratings, review scores, and nightly room rates for identical check-in/check-out windows.

MCP: travel_hotels_searchSchema & Live Fixture →
travel.airbnb.search$0.0025/call · p50 1,180 ms

Short-term rental stays with regulated all-in stay totals, bedrooms/beds, Superhost status, and WGS84 coordinates.

MCP: travel_airbnb_searchSchema & Live Fixture →
travel.airbnb.listing_detail$0.0025/call · p50 720 ms

Property capacity, bedroom/bath configuration, host tenure, verified location, and full amenity checklist.

MCP: travel_airbnb_listing_detailSchema & Live Fixture →
travel.airbnb.calendar$0.0025/call · p50 1,190 ms

Forward 12-month bookable date grid, 30-day calendar-blocked rate, and minimum-night stay constraints.

MCP: travel_airbnb_calendarSchema & Live Fixture →
End-to-End Agent Execution Trace

Parallel MCP Tool Trace: Hotel Inventory + Short-Term Rental + 30-Day Calendar Check

Total wholesale tool spend for a complete cross-rail stay comparison plus calendar verification: $0.0080 USD (3 calls, ~1,540 total compact tokens vs 24,000+ raw HTML/GraphQL tokens).

Streamable HTTP MCP · https://mcp.agentapigate.ai/mcp-93% Context Tokens · $0 on Empty/Error
// 1. Agent discovers both travel rails in 1 zero-cost MCP lookup ($0.0000)
-> tools/call: search_endpoints({ "query": "airbnb" })
<- matches: ["travel.airbnb.search", "travel.airbnb.listing_detail", "travel.airbnb.calendar"]

// 2. Parallel tool fan-out for Lisbon, Portugal (2026-12-15 -> 2026-12-18, 3 nights, 2 adults)
-> tools/call: call_endpoint({
     "endpoint_id": "travel.hotels.search",
     "params": { "destination": "Lisbon", "checkin_date": "2026-12-15", "checkout_date": "2026-12-18", "adults": 2 },
     "format": "compact"
   })
-> tools/call: call_endpoint({
     "endpoint_id": "travel.airbnb.search",
     "params": { "location": "Lisbon, Portugal", "checkin_date": "2026-12-15", "checkout_date": "2026-12-18", "adults": 2 },
     "format": "compact"
   })

// 3. Deterministic receipt headers & -93% LLM context compression
// Hotel call:  X-AAG-Cost-USD: 0.0030 | 1,022 ms | 580 compact tokens
// Airbnb call: X-AAG-Cost-USD: 0.0025 | 1,180 ms | 704 compact tokens (vs 9,766 raw tokens)
// Follow-up calendar check on top shortlist candidate:
-> tools/call: call_endpoint({
     "endpoint_id": "travel.airbnb.calendar",
     "params": { "listing_id": "29928338", "months": 3 },
     "format": "compact"
   })
<- { "listing_id": "29928338", "next_30d_available_days": 16, "next_30d_blocked_rate_pct": 46.7, "min_nights_min": 2 }
Fee-Normalized All-In Price Ranking (<40 Lines)

Normalize Hotel Occupancy/Resort Taxes vs Short-Term Rental Cleaning Fees

Drop either snippet directly into your LangGraph, Vercel AI SDK, Mastra, or Python agent toolset to rank hotels and short-term rentals on an apples-to-apples allInUsd basis.

TypeScript (Node 20+ / Edge)30 lines
const API = 'https://api.agentapigate.ai';
const headers = { Authorization: `Bearer ${process.env.AAG_API_KEY}` };

export async function compareAllInStay(city: string, checkin: string, checkout: string, nights: number) {
  const qsHotel = new URLSearchParams({ destination: city, checkin_date: checkin, checkout_date: checkout, adults: '2', format: 'compact' });
  const qsStr = new URLSearchParams({ location: city, checkin_date: checkin, checkout_date: checkout, adults: '2', format: 'compact' });

  const [hotelRes, strRes] = await Promise.all([
    fetch(`${API}/v1/travel/hotels/search?${qsHotel}`, { headers }).then((r) => r.json()),
    fetch(`${API}/v1/travel/airbnb/search?${qsStr}`, { headers }).then((r) => r.json()),
  ]);

  // Normalize hotel nightly base + ~14% municipal occupancy/resort tax vs STR regulated all-in total
  const hotels = (hotelRes.data?.items ?? []).slice(0, 5).map((h: any) => {
    const baseStay = Number(h.price_total ?? (h.price_per_night ?? 0) * nights);
    const allInUsd = Math.round(baseStay * 1.14 * 100) / 100;
    return { rail: 'hotel', name: h.name, rating: h.review_score, allInUsd, effNightUsd: +(allInUsd / nights).toFixed(2) };
  });

  const rentals = (strRes.data?.items ?? []).slice(0, 5).map((s: any) => {
    const allInUsd = Number(s.price_total ?? (s.price_per_night ?? 0) * nights);
    return { rail: 'airbnb', name: s.name, rating: s.rating, allInUsd, effNightUsd: +(allInUsd / nights).toFixed(2) };
  });

  return [...hotels, ...rentals].sort((a, b) => a.allInUsd - b.allInUsd);
}
Python 3.11+ (httpx + asyncio)28 lines
import asyncio, httpx, os

API = "https://api.agentapigate.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['AAG_API_KEY']}"}

async def compare_all_in_stay(city: str, checkin: str, checkout: str, nights: int):
    async with httpx.AsyncClient(timeout=20) as client:
        h_req = client.get(f"{API}/v1/travel/hotels/search", params={
            "destination": city, "checkin_date": checkin, "checkout_date": checkout, "adults": 2, "format": "compact"
        }, headers=HEADERS)
        s_req = client.get(f"{API}/v1/travel/airbnb/search", params={
            "location": city, "checkin_date": checkin, "checkout_date": checkout, "adults": 2, "format": "compact"
        }, headers=HEADERS)
        h_res, s_res = await asyncio.gather(h_req, s_req)

    options = []
    for h in (h_res.json().get("data", {}).get("items") or [])[:5]:
        base = float(h.get("price_total") or (h.get("price_per_night") or 0) * nights)
        all_in = round(base * 1.14, 2)  # +14% occupancy & resort fee normalization
        options.append({"rail": "hotel", "name": h["name"], "all_in_usd": all_in, "per_night_usd": round(all_in / nights, 2)})

    for s in (s_res.json().get("data", {}).get("items") or [])[:5]:
        all_in = round(float(s.get("price_total") or (s.get("price_per_night") or 0) * nights), 2)
        options.append({"rail": "airbnb", "name": s["name"], "all_in_usd": all_in, "per_night_usd": round(all_in / nights, 2)})

    return sorted(options, key=lambda x: x["all_in_usd"])
Zero-Config MCP OAuth 2.1 · $0.25 Preloaded Sandbox Credit

Mount Live Hotel & Airbnb Tools in Claude Code or Cursor in 15 Seconds

claude mcp add --transport http agentapigate https://mcp.agentapigate.ai/mcp
$0.25 Instant Trial: Sign in via browser OAuth and run ~80–100 live travel & web calls immediately with no card required.
Multi-Rail Failover: Automatic 0 ms secondary upstream failover keeps itinerary agents online during peak travel spikes.
Scoped Sub-Keys: Lock production agents to read-only local pack endpoints with a strict daily USD cap in /dashboard/keys.

Engineering FAQ

Why do AI travel agents misquote stays when comparing raw hotel nightly rates against short-term rentals?

OTA hotel feeds typically quote base nightly room rates before municipal occupancy taxes and mandatory resort fees (often +12% to +18%), whereas short-term rental listings bundle fixed cleaning fees and platform service fees that heavily penalize 1-to-2-night stays but amortize cleanly across 5-to-14-night corporate relocations. Querying travel.hotels.search and travel.airbnb.search in parallel lets the agent rank options by true all-in stay cost.

How does travel.airbnb.search handle city name resolution and Base64 listing IDs automatically?

AgentAPIGate resolves shorthand city queries (such as "Lisbon" or "Tokyo") into canonical region display names backed by a 30-day Redis cache, and automatically decodes upstream Base64 DemandStayListing identifiers into clean numeric listing_id strings that work interchangeably across travel.airbnb.listing_detail and travel.airbnb.calendar.

How much LLM context window cost does format=compact or format=md save on hotel and Airbnb payloads?

Raw short-term rental GraphQL payloads average 9,400 to 9,800 tokens per response due to nested image carousels and UI layout directives. Passing format=compact or format=md strips layout noise down to ~255–704 tokens (-93% to -97% context reduction) while preserving exact pricing, ratings, bedroom counts, and coordinates.

Can I connect Claude Code, Cursor, or custom MCP agents without managing multiple travel API subscriptions?

Yes. Mount https://mcp.agentapigate.ai/mcp via 1-click OAuth 2.1 (preloaded with $0.25 spendable sandbox credits) or pass a single aag_live_* / scoped aag_agent_* Bearer key with a daily USD ceiling. Failed or empty upstream responses automatically charge $0.0000.