YGO API
  1. Product Search (Classic)
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
  1. Product Search (Classic)

Get package price calendar

POST
/v1/getPackageCalendar
Retrieve a calendar of the cheapest package prices for a destination across multiple departure airports, durations, and dates. Returns a structured response organized by departure airport → nights → departure date, with each date showing the minimum price, arrival airport, offer details, and whether it's the absolute cheapest option. Defaults to all German airports if no departure airports specified. This endpoint provides data for building flexible date search interfaces and price comparison calendars.

Request

Authorization
or
Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
Successfully retrieved package calendar
Body

🟠400Bad Request
🟠401Unauthorized
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location --request POST 'https://api.ygo.ai/v1/v1/getPackageCalendar' \
--header 'Content-Type: application/json' \
--data-raw '{
    "DepartureDate": "2025-12-01",
    "ReturnDate": "2025-12-15",
    "Nights": 7,
    "Latitude": 41.3851,
    "Longitude": 2.1734,
    "Radius": 50000,
    "PersonAges": [
        30,
        28
    ],
    "Locale": "de"
}'
Response Response Example
200 - Calendar with multiple airports and durations
{
    "Data": {
        "DepartureAirports": {
            "FRA": {
                "5": {
                    "2025-12-01": {
                        "Price": {
                            "Amount": 650,
                            "Currency": "EUR"
                        },
                        "ArrivalAirport": "BCN",
                        "Nights": 5,
                        "IsCheapest": false,
                        "OfferHash": "jkl012mno345",
                        "ProductHash": "prod789ghi"
                    }
                },
                "7": {
                    "2025-12-01": {
                        "Price": {
                            "Amount": 850,
                            "Currency": "EUR"
                        },
                        "ArrivalAirport": "BCN",
                        "Nights": 7,
                        "IsCheapest": true,
                        "OfferHash": "abc123def456",
                        "ProductHash": "prod789xyz"
                    },
                    "2025-12-05": {
                        "Price": {
                            "Amount": 920,
                            "Currency": "EUR"
                        },
                        "ArrivalAirport": "BCN",
                        "Nights": 7,
                        "IsCheapest": false,
                        "OfferHash": "def456ghi789",
                        "ProductHash": "prod123abc"
                    },
                    "2025-12-08": {
                        "Price": {
                            "Amount": 875,
                            "Currency": "EUR"
                        },
                        "ArrivalAirport": "BCN",
                        "Nights": 7,
                        "IsCheapest": false,
                        "OfferHash": "ghi789jkl012",
                        "ProductHash": "prod456def"
                    }
                }
            },
            "MUC": {
                "7": {
                    "2025-12-01": {
                        "Price": {
                            "Amount": 890,
                            "Currency": "EUR"
                        },
                        "ArrivalAirport": "BCN",
                        "Nights": 7,
                        "IsCheapest": false,
                        "OfferHash": "mno345pqr678",
                        "ProductHash": "prod012jkl"
                    },
                    "2025-12-03": {
                        "Price": {
                            "Amount": 865,
                            "Currency": "EUR"
                        },
                        "ArrivalAirport": "BCN",
                        "Nights": 7,
                        "IsCheapest": false,
                        "OfferHash": "pqr678stu901",
                        "ProductHash": "prod345mno"
                    }
                }
            }
        },
        "Cached": false
    },
    "Error": null
}
Modified at 2025-10-16 14:06:51
Previous
Get transfers for booking
Next
Get or create open booking
Built with