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

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