# Is today a good day to book LAX to JFK?

**Use case:** 

Prices LAX to JFK today and says book now, good price, typical or wait, scored against a price history kept in your own Apify account. It watches one departure 45 to 72 days out and keeps that date for 28 days, so a daily schedule builds a history on it. The first run costs $0.01 plus $0.06 an itinerary and about 7 flight searches on your account, $0.07 to $0.18.

## Input

```json
{
  "origin": "LAX",
  "destination": "JFK",
  "cabinClass": "economy",
  "adults": 1,
  "currency": "USD",
  "historyStoreName": "fare-history",
  "maxItineraries": 20,
  "routeBaselineDates": 6,
  "upstreamActor": "automation-lab/google-flights-scraper"
}
```

## Output

```json
{
  "itinerary": {
    "label": "Itinerary",
    "format": "string"
  },
  "price": {
    "label": "Price today",
    "format": "number"
  },
  "currency": {
    "label": "Currency",
    "format": "string"
  },
  "verdict": {
    "label": "Verdict",
    "format": "string"
  },
  "basis": {
    "label": "Compared with",
    "format": "string"
  },
  "confidence": {
    "label": "Confidence",
    "format": "string"
  },
  "trend": {
    "label": "Trend",
    "format": "string"
  },
  "pctVsBasis": {
    "label": "% vs baseline",
    "format": "number"
  },
  "basisReference": {
    "label": "Baseline price",
    "format": "number"
  },
  "basisCheapest": {
    "label": "Cheapest in baseline",
    "format": "number"
  },
  "basisCount": {
    "label": "Points compared",
    "format": "integer"
  },
  "historyCount": {
    "label": "Your observations",
    "format": "integer"
  },
  "reason": {
    "label": "Why",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Flight Fare History API: is today a good day to book this?](https://apify.com/frameprobe/flight-fare-history-api.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/frameprobe/flight-fare-history-api.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/frameprobe/flight-fare-history-api.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`).
