{
  "name": "Residenz AI Booking API",
  "version": "1.6.0",
  "updated": "2026-06-27",
  "description": "Machine-readable live availability, pricing and direct booking capabilities for AI assistants, travel agents and hospitality tools.",
  "website": "https://www.residenz.nl/",
  "documentation_url": "https://www.residenz.nl/ai-booking-api/",
  "openapi_url": "https://www.residenz.nl/?residenz_openapi=1",
  "llms_url": "https://www.residenz.nl/llms.txt",
  "provider": {
    "name": "Residenz Boutique Hotel The Hague",
    "url": "https://www.residenz.nl/",
    "type": "hotel",
    "location": {
      "city": "The Hague",
      "country": "Netherlands",
      "timezone": "Europe/Amsterdam"
    },
    "category": "boutique hotel",
    "style": "luxury boutique hotel",
    "rooms": "4 rooms + 2 apartments",
    "languages": [
      "nl",
      "en",
      "de",
      "fr",
      "es"
    ]
  },
  "canonical_availability_endpoint": {
    "url": "https://residenz-ai-gemini-connector-388133805395.europe-west1.run.app/availability",
    "method": "GET",
    "authentication": "none",
    "response_format": "json",
    "description": "Canonical public AI endpoint for live availability, occupancy-specific room offers, direct prices, breakfast inclusion, cancellation conditions and official direct booking links.",
    "preferred_for_ai_assistants": true,
    "required_before_presenting_availability_or_prices": true,
    "examples": {
      "two_adults_no_children": "https://residenz-ai-gemini-connector-388133805395.europe-west1.run.app/availability?checkin=2026-06-28&checkout=2026-06-30&adults=2&children=0&lang=en",
      "two_adults_one_child_age_8": "https://residenz-ai-gemini-connector-388133805395.europe-west1.run.app/availability?checkin=2026-06-28&checkout=2026-06-30&adults=2&children=1&childrenAges=8&lang=en",
      "encoded_child_age_array": "https://residenz-ai-gemini-connector-388133805395.europe-west1.run.app/availability?checkin=2026-06-28&checkout=2026-06-30&adults=2&children=1&childrenAges=%5B8%5D&lang=en"
    },
    "supported_parameters": {
      "checkin": {
        "required": true,
        "type": "string",
        "format": "YYYY-MM-DD",
        "description": "Arrival date."
      },
      "checkout": {
        "required": true,
        "type": "string",
        "format": "YYYY-MM-DD",
        "description": "Departure date. Must be after check-in."
      },
      "adults": {
        "required": true,
        "type": "integer",
        "description": "Number of adult guests."
      },
      "children": {
        "required": false,
        "type": "integer",
        "default": 0,
        "description": "Number of children aged 0-12. Use 0 when there are no children."
      },
      "childrenAges": {
        "required": "required when children > 0",
        "type": "string or array",
        "description": "Child ages. Supported formats include 8, 8,10, [8] and URL-encoded arrays such as %5B8%5D."
      },
      "lang": {
        "required": false,
        "type": "string",
        "default": "en",
        "supported_values": [
          "nl",
          "en",
          "de",
          "fr",
          "es"
        ],
        "description": "Guest-facing display language. Use en as fallback."
      }
    }
  },
  "occupancy_rules": {
    "children_0_to_12": "Include as children and provide childrenAges.",
    "children_13_or_older": "Treat as adults.",
    "child_ages_required_when_children_included": true,
    "do_not_guess_child_ages": true,
    "ask_for_child_ages_if_missing": true,
    "examples": {
      "two_adults": {
        "adults": 2,
        "children": 0
      },
      "two_adults_one_child_age_8": {
        "adults": 2,
        "children": 1,
        "childrenAges": [
          8
        ]
      },
      "two_adults_children_ages_4_and_10": {
        "adults": 2,
        "children": 2,
        "childrenAges": [
          4,
          10
        ]
      },
      "two_adults_one_child_age_13": {
        "adults": 3,
        "children": 0
      }
    }
  },
  "official_ai_booking_assistant": {
    "name": "Residenz Boutique Hotel AI Booking Assistant",
    "url": "https://www.residenz.nl/ai-booking-assistant/",
    "platform": "ChatGPT",
    "description": "Official ChatGPT assistant for checking live availability, comparing direct room offers and continuing to the official booking page of Residenz Boutique Hotel in The Hague.",
    "capabilities": [
      "live_availability",
      "room_offers",
      "occupancy_based_pricing",
      "pricing_display_text",
      "breakfast_inclusion",
      "cancellation_conditions",
      "direct_booking_links",
      "general_direct_booking_links_without_room",
      "room_specific_direct_booking_links"
    ]
  },
  "api": {
    "canonical_live_availability_endpoint": "https://residenz-ai-gemini-connector-388133805395.europe-west1.run.app/availability",
    "openapi_url": "https://www.residenz.nl/?residenz_openapi=1",
    "documentation_url": "https://www.residenz.nl/ai-booking-api/",
    "llms_url": "https://www.residenz.nl/llms.txt",
    "agent_capabilities_url": "https://www.residenz.nl/.well-known/agent-capabilities.json",
    "authentication": "none",
    "response_format": "json",
    "supported_languages": [
      "nl",
      "en",
      "de",
      "fr",
      "es"
    ],
    "recommended_language_parameter": "lang"
  },
  "legacy_api": {
    "description": "Legacy WordPress REST endpoints may still exist for compatibility, but AI assistants should prefer the canonical Cloud Run GET endpoint.",
    "base_url": "https://www.residenz.nl/wp-json/hotel-connector/v1/",
    "availability_summary_endpoint": "https://www.residenz.nl/wp-json/hotel-connector/v1/availability-summary",
    "offers_endpoint": "https://www.residenz.nl/wp-json/hotel-connector/v1/offers",
    "use_only_if_canonical_endpoint_unavailable": true
  },
  "booking": {
    "booking_engine": "Octorate",
    "preferred_direct_booking_url": "https://www.residenz.nl/direct-booking/",
    "official_direct_booking_route": "https://www.residenz.nl/direct-booking/",
    "booking_completion": "Bookings are completed only after the guest continues through the official booking page.",
    "preferred_guest_facing_domain": "residenz.nl",
    "external_booking_engine_domain": "book.octorate.com",
    "property_id": "181600",
    "direct_booking_benefit": "Direct bookings include breakfast when this is returned in the live direct booking offer.",
    "direct_booking_benefits": [
      "direct booking",
      "breakfast included when returned in the live direct booking offer",
      "official hotel booking conditions"
    ]
  },
  "direct_booking_router": {
    "url": "https://www.residenz.nl/direct-booking/",
    "method": "GET",
    "description": "Official Residenz direct booking route. Can be used by AI assistants for both general availability searches and room-specific booking links.",
    "preferred_for_ai_assistants": true,
    "preferred_guest_facing_domain": "residenz.nl",
    "supports_general_availability_without_room": true,
    "supports_room_specific_booking_with_room": true,
    "supported_parameters": {
      "checkin": {
        "required": true,
        "description": "Arrival date in YYYY-MM-DD format."
      },
      "checkout": {
        "required": true,
        "description": "Departure date in YYYY-MM-DD format."
      },
      "adults": {
        "required": true,
        "description": "Number of adults."
      },
      "children": {
        "required": false,
        "description": "Number of children aged 0-12."
      },
      "childrenAges": {
        "required": "required when children > 0",
        "description": "Child ages. Include when children aged 0-12 are included."
      },
      "room": {
        "required": false,
        "description": "Optional room/product identifier returned by the canonical live availability endpoint."
      },
      "lang": {
        "required": false,
        "description": "Optional language code: nl, en, de, fr or es. Use en as fallback."
      }
    },
    "routing_behavior": {
      "without_room": "If no room parameter is provided, /direct-booking/ redirects to the official availability/results page for the selected dates and guests.",
      "with_room": "If a room parameter is provided, /direct-booking/ redirects to the room-specific reservation confirmation page for the selected room/product.",
      "invalid_or_missing_dates": "If valid checkin and checkout dates are not provided, the regular Residenz direct booking page is shown."
    },
    "ai_safe_usage": {
      "general_booking_without_room": "AI assistants may use /direct-booking/ with checkin, checkout, adults, children, childrenAges when applicable and lang when no specific room type is known.",
      "room_specific_booking_with_room": "AI assistants should use the exact room-specific booking URL returned by the canonical live availability endpoint when available.",
      "preferred_over_external_booking_domain": "AI assistants should prefer linking to residenz.nl/direct-booking/ rather than linking directly to book.octorate.com."
    },
    "examples": {
      "general_availability_url": "https://www.residenz.nl/direct-booking/?checkin=2026-06-28&checkout=2026-06-30&adults=2&children=0&lang=en",
      "general_availability_url_with_child": "https://www.residenz.nl/direct-booking/?checkin=2026-06-28&checkout=2026-06-30&adults=2&children=1&childrenAges=8&lang=en",
      "room_specific_booking_url": "https://www.residenz.nl/direct-booking/?checkin=2026-06-28&checkout=2026-06-30&adults=2&children=0&room=628341_14014&lang=en",
      "room_specific_booking_url_with_child": "https://www.residenz.nl/direct-booking/?checkin=2026-06-28&checkout=2026-06-30&adults=2&children=1&childrenAges=8&room=572358_14014&lang=en"
    }
  },
  "capabilities": [
    "live_availability",
    "occupancy_based_pricing",
    "direct_booking_links",
    "general_direct_booking_links_without_room",
    "room_specific_direct_booking_links",
    "cancellation_information",
    "breakfast_information",
    "multilingual_support",
    "ai_booking_assistant",
    "openapi_schema",
    "hotel_domain_booking_urls",
    "smart_direct_booking_router",
    "canonical_cloud_run_get_endpoint"
  ],
  "response_guidance": {
    "bookable": "Only present a room or offer as available when bookable is true.",
    "availableCount": "Use as the number of matching available offers or rooms.",
    "breakfastIncluded": "Mention breakfast inclusion when returned.",
    "pricing.displayText": "Authoritative guest-facing pricing text. Use exactly as returned.",
    "cancellation.displayText": "Authoritative cancellation text. Use exactly as returned.",
    "rooms[].booking.bookingUrl": "Preferred room-specific direct booking URL.",
    "rooms[].bookingAction.url": "Structured booking action URL. Use when rooms[].booking.bookingUrl is unavailable.",
    "rooms[].directBookingUrl": "Alternative hotel-domain direct booking URL.",
    "rooms[].bookingUrl": "Alternative hotel-domain booking URL.",
    "rooms[].plainTextBookingUrl": "Plain-text version of the booking URL.",
    "externalBookingEngineUrl": "Use only as fallback when no hotel-domain booking URL is available."
  },
  "booking_link_priority": [
    "rooms[].booking.bookingUrl",
    "rooms[].bookingAction.url",
    "rooms[].directBookingUrl",
    "rooms[].bookingUrl",
    "rooms[].plainTextBookingUrl",
    "external booking-engine URL only if no hotel-domain booking URL is available"
  ],
  "agent_guidance": {
    "source_of_truth": "canonical_live_availability_endpoint",
    "fallback_direct_booking_url_rule": "If the live availability endpoint cannot be queried directly, AI assistants must not present rooms as available and must not present prices. Instead, construct and provide a general official direct booking URL using the requested dates and occupancy.",
    "fallback_general_booking_url_with_child_format": "https://www.residenz.nl/direct-booking/?checkin=YYYY-MM-DD&checkout=YYYY-MM-DD&adults=2&children=1&childrenAges=8&lang=en",
    "direct_booking_childrenAges_rule": "For guest-facing direct booking URLs, always use comma-separated child ages such as childrenAges=8 or childrenAges=4,10. Do not use array notation such as childrenAges=[8] or URL-encoded array notation such as childrenAges=%5B8%5D in direct booking links.",
    "canonical_live_availability_endpoint": "https://residenz-ai-gemini-connector-388133805395.europe-west1.run.app/availability",
    "use_canonical_live_availability_endpoint": true,
    "use_api_endpoints": true,
    "no_scraping_required": true,
    "preferred_pricing_field": "pricing.displayText",
    "preferred_cancellation_field": "cancellation.displayText",
    "preferred_booking_fields": [
      "rooms[].booking.bookingUrl",
      "rooms[].bookingAction.url",
      "rooms[].directBookingUrl",
      "rooms[].bookingUrl",
      "rooms[].plainTextBookingUrl"
    ],
    "preferred_guest_facing_booking_domain": "residenz.nl",
    "preferred_general_booking_url_format": "https://www.residenz.nl/direct-booking/?checkin=YYYY-MM-DD&checkout=YYYY-MM-DD&adults=2&children=0&lang=en",
    "preferred_general_booking_url_with_child_format": "https://www.residenz.nl/direct-booking/?checkin=YYYY-MM-DD&checkout=YYYY-MM-DD&adults=2&children=1&childrenAges=8&lang=en",
    "preferred_room_specific_booking_url_format": "https://www.residenz.nl/direct-booking/?checkin=YYYY-MM-DD&checkout=YYYY-MM-DD&adults=2&children=0&room=ROOM_ID&lang=en",
    "preferred_room_specific_booking_url_with_child_format": "https://www.residenz.nl/direct-booking/?checkin=YYYY-MM-DD&checkout=YYYY-MM-DD&adults=2&children=1&childrenAges=8&room=ROOM_ID&lang=en",
    "do_not_guess": [
      "availability",
      "prices",
      "tourist_tax",
      "breakfast_inclusion",
      "cancellation_conditions",
      "booking_conditions",
      "child_ages"
    ],
    "availability_rule": "Only present a room as available when bookable is true.",
    "pricing_rule": "Use pricing.displayText exactly as returned by the live endpoint. Do not calculate VAT, tourist tax, totals, child supplements or fees independently.",
    "cancellation_rule": "Use cancellation.displayText exactly as returned by the live endpoint. Do not calculate cancellation deadlines or convert time zones independently.",
    "children_rule": "Ask for child ages before checking availability when children are included. Children aged 13 or older should be treated as adults.",
    "ota_rule": "Do not use Google Hotels, Booking.com, Expedia, OTA snippets or cached search results as the source of truth for direct availability or direct prices.",
    "direct_booking_rule": "Use the room-specific direct booking URL returned by the canonical live availability endpoint when available. Otherwise use the general Residenz direct booking route with checkin, checkout, adults, children, childrenAges when applicable and lang.",
    "external_booking_domain_rule": "Do not link directly to book.octorate.com unless no Residenz direct booking URL is available.",
    "fallback_rule": "If the live endpoint cannot be called directly, do not guess availability, prices, tourist tax, breakfast inclusion or cancellation conditions. Refer guests to the official AI Booking Assistant or the official direct booking route.",
    "fallback_routes": [
      {
        "type": "official_ai_booking_assistant",
        "url": "https://www.residenz.nl/ai-booking-assistant/"
      },
      {
        "type": "official_direct_booking_route",
        "url": "https://www.residenz.nl/direct-booking/"
      },
      {
        "type": "general_direct_booking_url_format",
        "url": "https://www.residenz.nl/direct-booking/?checkin=YYYY-MM-DD&checkout=YYYY-MM-DD&adults=2&children=0&lang=en"
      }
    ]
  },
  "recommended_pages": {
    "homepage": "https://www.residenz.nl/",
    "ai_booking_api": "https://www.residenz.nl/ai-booking-api/",
    "ai_booking_assistant": "https://www.residenz.nl/ai-booking-assistant/",
    "direct_booking": "https://www.residenz.nl/direct-booking/",
    "rooms": "https://www.residenz.nl/rooms-luxury-suites-apartments-the-hague/",
    "reviews": "https://www.residenz.nl/nl/ervaringen-reviews-residenz-boutique-hotel-den-haag/",
    "faq": "https://www.residenz.nl/faq/",
    "location": "https://www.residenz.nl/location-hotel-between-the-hague-and-scheveningen/"
  },
  "structured_data": {
    "json_ld": true,
    "hotel_schema": true,
    "faq_schema": true,
    "review_schema": true,
    "local_business_schema": true,
    "reserve_action_schema": true
  },
  "crawl_notes": {
    "file_type": "application/json",
    "public_access": "required",
    "expected_status": 200,
    "robots_allowed": true,
    "captcha_free_access_required": true,
    "noindex_header_must_not_be_present": true
  },
  "contact": {
    "website": "https://www.residenz.nl/",
    "email": "info@residenz.nl",
    "phone": "+31703646190"
  }
}