YGO API
    YGO API
    • Overview
    • Core Concepts
    • Authentication
    • Quickstart Guide
    • AI Search & Trip Planning
    • Booking Flow
    • Environments
    • General
      • Check API health status
        GET
      • Get current API key context
        GET
    • AI Search & Trip Planning
      • Send message to YGO AI
        POST
    • Product Search (Classic)
      • Search for hotel & package offers
        POST
      • Get transfers for booking
        POST
      • Get package price calendar
        POST
    • Bookings
      • Get or create open booking
        POST
      • Update open booking
        POST
      • Update booking status and trigger workflows
        POST
      • List bookings
        POST
      • Get booking
        POST
    • Schemas
      • Schemas
        • PackageSearchRequest
        • GetTransfersRequest
        • GetOpenBookingRequest
        • SaveOpenBookingRequest
        • SaveBookingStatusRequest
        • ListBookingsRequest
        • GetBookingRequest
        • GetPackageCalendarRequest
        • Product
        • TransferOptionsResponse
        • Booking
        • ProductTexts
        • TransferOption
        • BookingDetails
        • TripReference
        • PackageCalendarResponse
        • LocaleContent
        • Trip
        • BookingItemInput
        • PackageCalendarDate
        • ProductImage
        • TransferImage
        • BookingItem
        • ProductDetails
        • PickupInformation
        • Traveller
        • PackageOffer
        • PickupLocation
        • TourOperator
        • Pickup
        • Image
        • Accommodation
        • CheckPickup
        • Room
        • TransferRemark
        • Transport
        • CancellationPolicy
        • Flight
        • Airport
        • Price
        • PriceByPax
        • SuccessResponse
        • ErrorResponse
        • Hotel
        • HotelFeatures
        • FeatureState
        • RoomFeatures
        • RoomContent
        • Facility
      • Response
        • Unauthorized

    Quickstart Guide

    Get up and running with the YGO API in minutes. This guide walks you through making your first package search request.
    TIP
    Looking for AI-powered search? Check out AI Search & Planning to learn about YGO AI's natural language search, intelligent itinerary generation, and multi-source data augmentation capabilities.

    Prerequisites#

    Before you start, make sure you have:
    ✅ Your API token (check your email from the YGO team)
    ✅ Access to a terminal or API client (curl, Postman, Insomnia, etc.)
    ✅ Basic understanding of REST APIs and JSON
    TIP
    New to APIs? We recommend using Postman or Insomnia for a visual interface while you're learning.

    Your First Request: Search for Packages#

    Let's search for hotel + flight packages to Paris for a 4-night stay in December 2025.

    Request#

    Replace your_api_token_here with your actual API token.
    TIP
    Use your Sandbox API token for this first test. The API will automatically route your request to the test environment with safe, non-production data.

    Response#

    You'll receive a JSON response with available packages:
    {
      "searchId": "srch_abc123",
      "packages": [
        {
          "id": "pkg_xyz789",
          "totalPrice": {
            "amount": 1250.00,
            "currency": "USD"
          },
          "hotel": {
            "name": "Le Grand Hotel Paris",
            "rating": 4,
            "location": "8th Arrondissement",
            "roomType": "Deluxe Double Room"
          },
          "flight": {
            "outbound": {
              "departure": "2025-12-01T10:30:00Z",
              "arrival": "2025-12-01T22:45:00Z",
              "airline": "Air France",
              "flightNumber": "AF123"
            },
            "return": {
              "departure": "2025-12-05T14:15:00Z",
              "arrival": "2025-12-05T17:30:00Z",
              "airline": "Air France",
              "flightNumber": "AF456"
            }
          }
        }
      ],
      "meta": {
        "totalResults": 47,
        "page": 1,
        "pageSize": 10
      }
    }

    What Just Happened?#

    1.
    AI-Enhanced Search - The API used AI to find optimal hotel and flight combinations
    2.
    Multi-Supplier Results - Results came from Peakwork, Amadeus, and other connected suppliers
    3.
    Bundled Pricing - Each package shows the total price for hotel + flights together
    INFO
    Response Times: Search requests typically return in 2-5 seconds. The API aggregates results from multiple suppliers in real-time.

    Understanding the Search Request#

    Let's break down the request parameters:
    ParameterTypeRequiredDescription
    destinationstringYesCity or destination name
    originstringYesDeparture city for flights
    checkInstringYesCheck-in date (ISO 8601: YYYY-MM-DD)
    checkOutstringYesCheck-out date (ISO 8601: YYYY-MM-DD)
    guests.adultsintegerYesNumber of adult travelers (18+)
    guests.childrenarrayNoArray of child ages (e.g., [5, 12])
    budgetobjectNoPrice range filter (see Search API Reference)

    Next Steps#

    Now that you've made your first search, you can:
    1.
    Discover AI Search & Planning - Use natural language search, intelligent itineraries, and enhanced data
    2.
    Manage Bookings - Learn about the booking lifecycle and status transitions
    3.
    Explore API Reference - Browse all available endpoints and parameters
    4.
    Understand Environments - Learn about Sandbox vs Production

    Common Issues#

    "Invalid or missing authorization token"#

    Double-check that you included the Authorization: Bearer header
    Verify you included the "Bearer " prefix before your token
    Confirm you copied the full token (no extra spaces)
    Ensure your token hasn't been revoked or expired

    "Validation error: Invalid date format"#

    Dates must be in YYYY-MM-DD format
    Check-out date must be after check-in date
    Dates must be in the future

    No results returned#

    This is normal! Availability depends on:
    Your supplier credentials (Peakwork, Amadeus test accounts in Sandbox)
    Date range (some dates may have no availability)
    Destination (try major cities like "Paris", "London", "New York")
    Testing Tip: In Sandbox, use popular destinations and dates 2-4 months in the future for best test results.

    Get Help#

    Stuck? Here's how to get support:
    Documentation: Check the API Reference for detailed endpoint specs
    Email Support: integrations@ygo.ai
    Account Manager: Contact your YGO account manager directly
    Ready to dive deeper? Continue to the Search API Reference or the Search & Book Guide.
    Modified at 2025-10-18 07:05:52
    Previous
    Authentication
    Next
    AI Search & Trip Planning
    Built with