{
  "openapi": "3.0.1",
  "info": {
    "title": "Travel Budget Itinerary Builder",
    "description": "Plan a trip around a destination or budget. Compare current flights and stays, discover local places, read traveler reviews, and see linked meal and transport prices. Prices found on opened pages include source links; estimates and unverified results are labeled.",
    "version": "0.0",
    "x-build-id": "e9DVn4hA7fJuNcQZY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rustic_soybean~travel-budget-itinerary-builder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rustic_soybean-travel-budget-itinerary-builder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/rustic_soybean~travel-budget-itinerary-builder/runs": {
      "post": {
        "operationId": "runs-sync-rustic_soybean-travel-budget-itinerary-builder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/rustic_soybean~travel-budget-itinerary-builder/run-sync": {
      "post": {
        "operationId": "run-sync-rustic_soybean-travel-budget-itinerary-builder",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode",
          "travelStyle",
          "currency"
        ],
        "properties": {
          "mode": {
            "title": "How should we plan your trip?",
            "enum": [
              "cheapest_destinations",
              "specific_destination",
              "budget"
            ],
            "type": "string",
            "description": "Choose destinations with the lowest current airfare, plan a trip to a named destination, or keep a trip within your total budget.",
            "default": "specific_destination"
          },
          "departureCity": {
            "title": "Departure city",
            "maxLength": 100,
            "type": "string",
            "description": "Enter your departure city, such as Philadelphia. Known city names are converted to airport codes for dated flights. Unknown cities do not stop hotel and experience searches."
          },
          "origin": {
            "title": "Departure airport code (optional)",
            "maxLength": 10,
            "type": "string",
            "description": "Optional override for a specific airport, such as PHL. Common cities can be entered above instead."
          },
          "destination": {
            "title": "Destination city",
            "maxLength": 100,
            "type": "string",
            "description": "Enter the destination city in plain English, such as Paris. Used for hotel and local-place searches."
          },
          "destinationCode": {
            "title": "Destination airport or metro code (optional)",
            "maxLength": 10,
            "type": "string",
            "description": "Optional override, such as CDG or PAR. Common destination cities are resolved automatically. If a city is not recognized, other selected searches continue."
          },
          "country": {
            "title": "Optional destination country",
            "maxLength": 80,
            "type": "string",
            "description": "Optional country filter for broad flight-deal searches, for example Italy. For a named destination, enter its country here to localize local-cost web searches; if blank or unrecognized, those searches use US Google results."
          },
          "travelYear": {
            "title": "Travel year for flexible flight deals",
            "minimum": 2026,
            "maximum": 2100,
            "type": "integer",
            "description": "Optional for cheapest-destination and budget searches without fixed dates. The deal source often omits the year; enter a year to match its month/day and search lodging for those dates without guessing."
          },
          "departureDate": {
            "title": "Departure date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional. Leave both dates blank to search available flexible-date flight deals. For a specific-date flight or hotel search, enter both dates as YYYY-MM-DD."
          },
          "returnDate": {
            "title": "Return date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Optional. Leave both dates blank for flexible-date deals, or enter both departure and return dates in YYYY-MM-DD format."
          },
          "adults": {
            "title": "Number of adults",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of adults traveling. Enter a value from 1 to 8.",
            "default": 1
          },
          "children": {
            "title": "Number of children",
            "minimum": 0,
            "maximum": 6,
            "type": "integer",
            "description": "Number of children traveling. Enter 0 if no children are traveling.",
            "default": 0
          },
          "travelStyle": {
            "title": "What matters most?",
            "enum": [
              "cheapest",
              "best_value",
              "high_end"
            ],
            "type": "string",
            "description": "Cheapest sorts by known trip costs or airfare when a full subtotal is unavailable. Best value balances observed lodging ratings and known costs. High-end puts highly rated stays first. Ratings are not professional reviews.",
            "default": "best_value"
          },
          "budget": {
            "title": "Total trip budget",
            "minimum": 1,
            "maximum": 1000000,
            "type": "number",
            "description": "Total budget for everyone, in the selected currency. The Actor compares it with known costs; missing prices and fees may make the final trip cost higher."
          },
          "currency": {
            "title": "Currency",
            "pattern": "^[A-Z]{3}$",
            "type": "string",
            "description": "Three-letter currency code, such as USD, CAD, GBP, or EUR.",
            "default": "USD"
          },
          "include": {
            "title": "Include these trip costs",
            "type": "array",
            "description": "Turn off categories you want to leave out of the comparison. The Actor only searches categories you include.",
            "items": {
              "type": "string",
              "enum": [
                "airfare",
                "lodging",
                "meals",
                "ground_transport",
                "local_places"
              ],
              "enumTitles": [
                "Airfare",
                "Lodging",
                "Meals",
                "Ground transport",
                "Local places and traveler reviews"
              ]
            },
            "default": [
              "airfare",
              "lodging",
              "meals",
              "local_places"
            ]
          },
          "mealBudgetPerPersonPerDay": {
            "title": "Meal budget per person per day",
            "minimum": 0,
            "maximum": 10000,
            "type": "number",
            "description": "Optional planning estimate in your selected currency. This is your estimate, not a live restaurant quote. Leave blank to keep meals out of the subtotal; the Actor will still search for linked meal-price evidence when Meals is selected."
          },
          "groundTransportBudget": {
            "title": "Ground transport allowance for the whole trip",
            "minimum": 0,
            "maximum": 100000,
            "type": "number",
            "description": "Optional total estimate in your selected currency. This is your estimate, not a live transit or rental-car quote."
          },
          "tripDays": {
            "title": "Trip length in days",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Used for meal estimates and day-by-day place suggestions. Leave blank to calculate from fixed dates, or use five days for flexible deal searches."
          },
          "interests": {
            "title": "What do you like doing?",
            "maxItems": 4,
            "type": "array",
            "description": "Optional search terms such as museums, hiking, live music, food markets, or beaches. The Actor checks up to two interests (one when restaurant search is included) to keep costs low.",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 60
            },
            "default": []
          },
          "maxOptions": {
            "title": "Number of trip options to return",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Maximum number of itinerary options to include in the results.",
            "default": 5
          },
          "maxSourceSpendUsd": {
            "title": "Maximum spend on pay-per-event sources (USD)",
            "minimum": 0.05,
            "maximum": 2,
            "type": "number",
            "description": "Combined pay-per-event allowance for flight deals, flight and hotel searches, maps, reviews and local-cost sources. Eligible fixed-date stays up to 90 nights may use a Booking.com fallback. Compute, proxy and optional features can cost extra.",
            "default": 0.15
          },
          "enablePriceTrends": {
            "title": "Check flexible-date price trends (extra cost)",
            "type": "boolean",
            "description": "Optional extra price graph for fixed-date searches. Off by default; starts a browser in the source Actor and may cost more. Flexible searches compare a limited number of sample dates without this graph.",
            "default": false
          },
          "additionalDepartureCities": {
            "title": "Additional departure cities (optional)",
            "maxItems": 2,
            "type": "array",
            "description": "Choose up to two extra cities. Each city uses part of the main source event-charge allowance; compute or proxy usage may cost extra. Low limits may skip some cities. Nearby airports are not discovered automatically.",
            "items": {
              "type": "string",
              "minLength": 2,
              "maxLength": 100
            },
            "default": []
          },
          "enableExperiences": {
            "title": "Include tours, activities and local events",
            "type": "boolean",
            "description": "Turn on to discover tours, activities, performances and events in your destination automatically. Trip dates are used when supplied. Two extra source calls share the optional search event cap; compute and proxy usage may cost extra. Results depend on provider coverage.",
            "default": false
          },
          "experienceQuery": {
            "title": "Narrow the tour search (optional)",
            "maxLength": 150,
            "type": "string",
            "description": "Leave blank to discover activities in your destination automatically. Optionally add a special interest such as opera, hiking or wine tasting. Local events are still searched across the destination."
          },
          "enableIntercity": {
            "title": "Compare intercity buses and trains (optional)",
            "type": "boolean",
            "description": "Search FlixBus and available FlixTrain routes. Provide both route cities and a date below. This is an extra paid source run and coverage depends on the provider.",
            "default": false
          },
          "intercityFrom": {
            "title": "Bus or train departure city",
            "maxLength": 100,
            "type": "string",
            "description": "For example Paris. Used only for the optional intercity search."
          },
          "intercityTo": {
            "title": "Bus or train arrival city",
            "maxLength": 100,
            "type": "string",
            "description": "For example Lyon. Used only for the optional intercity search."
          },
          "intercityDate": {
            "title": "Bus or train travel date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Travel date for the optional one-way intercity search, in YYYY-MM-DD format."
          },
          "enableCruises": {
            "title": "Find ocean cruises (optional)",
            "type": "boolean",
            "description": "Search Carnival, Royal Caribbean and Celebrity sailings as separate trip ideas. This starts an additional paid source run; prices are per person for two adults sharing, subject to fees.",
            "default": false
          },
          "cruiseRegion": {
            "title": "Cruise region (optional)",
            "maxLength": 80,
            "type": "string",
            "description": "For example caribbean, bahamas, alaska, europe or mexico. Used only for the optional cruise search."
          },
          "cruisePort": {
            "title": "Cruise departure port (optional)",
            "maxLength": 100,
            "type": "string",
            "description": "For example Miami, Seattle, Galveston, or Barcelona. Used only for the optional cruise search."
          },
          "optionalSourceCapUsd": {
            "title": "Maximum event charge per optional search (USD)",
            "minimum": 0.05,
            "maximum": 2,
            "type": "number",
            "description": "Each enabled optional feature gets this separate pay-per-event allowance in addition to the main source allowance. Experiences split it between tours and events. Airbnb, car rental, directions, buses/trains and cruises each use a separate allowance. Other usage may cost extra.",
            "default": 0.1
          },
          "roomPreference": {
            "title": "Room preference",
            "enum": [
              "any",
              "private",
              "shared"
            ],
            "type": "string",
            "description": "Choose a private room, a shared dorm bed, or either. Results with unclear room types remain available in the lodging listings but are not presented as a confirmed match.",
            "default": "any"
          },
          "childrenAges": {
            "title": "Ages of children (for lodging)",
            "maxItems": 6,
            "type": "array",
            "description": "Optional list of ages, for example [7, 10]. Enter one age per child so the backup hotel search can price the party. Flight sources may use different age categories; confirm the fare.",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 17
            }
          },
          "enableAirbnb": {
            "title": "Compare Airbnb stays",
            "type": "boolean",
            "description": "Optional separate paid search for Airbnb stays on fixed dates, compared with hotel results. Uses the optional source event limit; source and platform costs may apply.",
            "default": false
          },
          "enableCarRental": {
            "title": "Find rental cars",
            "type": "boolean",
            "description": "Optional separate paid search in the destination for fixed dates. Pickup and dropoff use example times; confirm the full price and conditions with the provider.",
            "default": false
          },
          "carPickupLocation": {
            "title": "Car pickup location (optional)",
            "maxLength": 100,
            "type": "string",
            "description": "Defaults to the destination city; enter an airport or other pickup location if preferred."
          },
          "enableDirections": {
            "title": "Check travel times between suggested places",
            "type": "boolean",
            "description": "Optional extra paid source search. Up to 10 routes between suggested places with addresses. Returned travel times are estimates and may not match your travel day or time.",
            "default": false
          },
          "directionsMode": {
            "title": "Travel mode for route estimates",
            "enum": [
              "driving",
              "walking",
              "transit",
              "bicycling"
            ],
            "type": "string",
            "description": "Choose how you plan to travel between suggested places when route estimates are enabled.",
            "default": "driving"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}