# Morning departures under a budget

**Use case:** 

Depart between 06:00 and 11:00, price cap, sorted by price.

## Input

```json
{
  "origin": "CGK",
  "destination": "DPS",
  "departureDate": "2027-03-20",
  "adults": 1,
  "children": 0,
  "infantsInSeat": 0,
  "infantsOnLap": 0,
  "cabinClass": "economy",
  "maxStops": "any",
  "currency": "USD",
  "maxResults": 20,
  "sortBy": "price",
  "calendarDays": 0,
  "resolveBookingOptions": false,
  "resolveReturnFlights": false,
  "exploreAnywhere": false,
  "routes": [],
  "multiCityLegs": [],
  "maxPrice": 100,
  "departureTimeFrom": "06:00",
  "departureTimeTo": "11:00",
  "language": "en",
  "calendarOnly": false,
  "includePriceInsights": true,
  "includeSearchSummary": true,
  "maxDestinations": 60,
  "maxBookingResolutions": 10,
  "maxReturnResolutions": 10,
  "maxReturnOptions": 20,
  "maxMultiCityResolutions": 5,
  "dataSource": "auto",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

## Output

```json
{
  "type": {
    "label": "Record type",
    "format": "string"
  },
  "rank": {
    "label": "Rank",
    "format": "number"
  },
  "origin": {
    "label": "Origin",
    "format": "string"
  },
  "destination": {
    "label": "Destination",
    "format": "string"
  },
  "departureDate": {
    "label": "Departure date",
    "format": "string"
  },
  "airline": {
    "label": "Airline",
    "format": "string"
  },
  "flightNumbers": {
    "label": "Flight numbers",
    "format": "array"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "currency": {
    "label": "Currency",
    "format": "string"
  },
  "cheapestReturnFlight": {
    "label": "Cheapest return",
    "format": "string"
  },
  "totalPrice": {
    "label": "Total price",
    "format": "number"
  },
  "priceLevel": {
    "label": "Price level",
    "format": "string"
  },
  "bestBookingSeller": {
    "label": "Cheapest seller",
    "format": "string"
  },
  "bestBookingPrice": {
    "label": "Cheapest seller price",
    "format": "number"
  },
  "stops": {
    "label": "Stops",
    "format": "number"
  },
  "departAt": {
    "label": "Departure time",
    "format": "string"
  },
  "arriveAt": {
    "label": "Arrival time",
    "format": "string"
  },
  "duration": {
    "label": "Duration",
    "format": "string"
  },
  "emissionsKg": {
    "label": "CO₂ (kg)",
    "format": "number"
  },
  "isBestFlight": {
    "label": "Best flight",
    "format": "boolean"
  },
  "googleFlightsUrl": {
    "label": "Google Flights URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Flight Price Tracker — fares, price level & history](https://apify.com/lergassy/flight-price-tracker.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/lergassy/flight-price-tracker.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/lergassy/flight-price-tracker.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
