{
  "openapi": "3.0.1",
  "info": {
    "title": "Flight Price Tracker: Fare Drop Alerts (Memory)",
    "description": "Flight price tracker with memory: watch routes by airport code and get a fare drop alert when the price falls, hits a new low or goes under your target. One decision per route and date, a ready-to-send alert line, 0.005 USD per check.",
    "version": "0.1",
    "x-build-id": "O6cI31lOQvAQ8G5eZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sillage-data~flight-price-watch/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sillage-data-flight-price-watch",
        "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/sillage-data~flight-price-watch/runs": {
      "post": {
        "operationId": "runs-sync-sillage-data-flight-price-watch",
        "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/sillage-data~flight-price-watch/run-sync": {
      "post": {
        "operationId": "run-sync-sillage-data-flight-price-watch",
        "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": [
          "routes"
        ],
        "properties": {
          "routes": {
            "title": "Routes to watch",
            "maxItems": 20,
            "type": "array",
            "description": "One route per line, as two 3-letter airport codes: BRU-LIS, JFK-LAX, LHR-BCN. Up to 20 routes.",
            "default": [
              "BRU-LIS"
            ],
            "items": {
              "type": "string"
            }
          },
          "departure": {
            "title": "Departure date",
            "type": "string",
            "description": "A date like 2026-12-10, or a relative value like +45d (45 days from the day the run starts). Use a fixed date for trip alerts; +45d gives a rolling watch.",
            "default": "+45d"
          },
          "windowDays": {
            "title": "Days to check from the departure date",
            "minimum": 1,
            "maximum": 14,
            "type": "integer",
            "description": "1 checks only the departure date. 7 checks it and the 6 following days (one check per day, each charged).",
            "default": 1
          },
          "returnAfterNights": {
            "title": "Return after N nights (0 = one way)",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "0 for a one-way fare. 7 for a round trip that comes back 7 nights later.",
            "default": 0
          },
          "targetPrice": {
            "title": "Target price",
            "minimum": 1,
            "type": "integer",
            "description": "Optional. Alert when the cheapest fare goes at or under this amount (in the currency below)."
          },
          "dropPercent": {
            "title": "Drop alert threshold (%)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Alert when the price falls at least this many percent since the last check.",
            "default": 5
          },
          "alertOn": {
            "title": "Alert types",
            "type": "array",
            "description": "Which decisions create an alert (and the alert charge). BELOW_TARGET, DROP, NEW_LOW, VERDICT_LOW.",
            "items": {
              "type": "string",
              "enum": [
                "BELOW_TARGET",
                "DROP",
                "NEW_LOW",
                "VERDICT_LOW"
              ],
              "enumTitles": [
                "Under my target price",
                "Price dropped by the threshold",
                "Lowest price seen by this watch",
                "Google rates prices as low"
              ]
            },
            "default": [
              "BELOW_TARGET",
              "DROP",
              "NEW_LOW",
              "VERDICT_LOW"
            ]
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Number of adult passengers (1 to 9).",
            "default": 1
          },
          "cabin": {
            "title": "Cabin",
            "enum": [
              "economy",
              "premium_economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Cabin class.",
            "default": "economy"
          },
          "nonstopOnly": {
            "title": "Nonstop flights only",
            "type": "boolean",
            "description": "Only consider direct flights.",
            "default": false
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "3-letter currency code, for example EUR, USD, GBP.",
            "default": "EUR"
          },
          "country": {
            "title": "Point of sale country",
            "type": "string",
            "description": "2-letter country code of the market used for prices (US, BE, GB...). Keep it the same between runs so prices stay comparable.",
            "default": "US"
          },
          "language": {
            "title": "Language",
            "type": "string",
            "description": "Language of the search page, for example en-US.",
            "default": "en-US"
          },
          "watchName": {
            "title": "Watch name (memory)",
            "type": "string",
            "description": "The memory used to compare with past runs. Use a different name for each separate watch list. Same name = same memory.",
            "default": "default"
          },
          "resetMemory": {
            "title": "Reset memory",
            "type": "boolean",
            "description": "Forget past prices for this watch name and start again with a baseline.",
            "default": false
          },
          "maxChecks": {
            "title": "Max checks per run",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Cost guard: the run never does more checks than this (routes x days).",
            "default": 30
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy is the default and was reliable in tests. Residential works too but adds about 0.002 USD of traffic per check.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}