{
  "openapi": "3.0.1",
  "info": {
    "title": "Award Seat Finder & Alerts - Miles, Taxes & Seats",
    "description": "Find award flight space across 28 airline loyalty programs: miles, taxes and seats for economy, premium, business and first per route and date. Search airports or whole regions, compare programs, add flight numbers and booking links, or get alerts when seats open.",
    "version": "0.1",
    "x-build-id": "iLHaEhu0o4PoDQOHq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~award-seat-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-award-seat-finder",
        "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/neverempty~award-seat-finder/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-award-seat-finder",
        "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/neverempty~award-seat-finder/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-award-seat-finder",
        "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": [
          "programs"
        ],
        "properties": {
          "programs": {
            "title": "Loyalty programs",
            "type": "array",
            "description": "The miles or points programs to search, for example United MileagePlus, Air Canada Aeroplan or Flying Blue. Each program is one search, so picking several compares them in one run.",
            "items": {
              "type": "string",
              "enum": [
                "UA",
                "AA",
                "DL",
                "AC",
                "AS",
                "B6",
                "NK",
                "AF/KL",
                "BA",
                "IB",
                "AY",
                "QR",
                "VS",
                "LH",
                "SK",
                "TP",
                "TK",
                "EK",
                "EY",
                "SQ",
                "CX",
                "QF",
                "VA",
                "AM",
                "AV",
                "CM",
                "AD",
                "G3"
              ],
              "enumTitles": [
                "United MileagePlus",
                "American AAdvantage",
                "Delta SkyMiles",
                "Air Canada Aeroplan",
                "Alaska Atmos Rewards",
                "JetBlue TrueBlue",
                "Spirit Free Spirit",
                "Air France/KLM Flying Blue",
                "British Airways Executive Club (Avios)",
                "Iberia Club (Avios)",
                "Finnair Plus (Avios)",
                "Qatar Privilege Club (Avios)",
                "Virgin Atlantic Flying Club",
                "Lufthansa Miles & More",
                "SAS EuroBonus",
                "TAP Miles&Go",
                "Turkish Miles&Smiles",
                "Emirates Skywards",
                "Etihad Guest",
                "Singapore KrisFlyer",
                "Cathay Asia Miles",
                "Qantas Frequent Flyer",
                "Virgin Australia Velocity",
                "Aeromexico Rewards",
                "Avianca LifeMiles",
                "Copa ConnectMiles",
                "Azul TudoAzul",
                "GOL Smiles"
              ]
            }
          },
          "origins": {
            "title": "From (airports or region)",
            "type": "array",
            "description": "3-letter airport codes such as SFO, JFK, EWR, or a region: North America, South America, Europe, Africa, Asia, Oceania. Airports are searched together; each region is its own search. Empty means anywhere.",
            "items": {
              "type": "string"
            }
          },
          "destinations": {
            "title": "To (airports or region)",
            "type": "array",
            "description": "3-letter airport codes such as NRT, HND, LHR, or a region (Europe, Asia ...). Empty means anywhere.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Departure from",
            "type": "string",
            "description": "First departure date, YYYY-MM-DD or a relative value such as \"7 days\" (from today). Empty means today. Award space is published about 60 days ahead."
          },
          "dateTo": {
            "title": "Departure to",
            "type": "string",
            "description": "Last departure date, YYYY-MM-DD or a relative value such as \"30 days\". Empty means the end of the published window (about 60 days)."
          },
          "cabins": {
            "title": "Cabins",
            "type": "array",
            "description": "Only return days where one of these cabins has award space. Empty means any cabin.",
            "items": {
              "type": "string",
              "enum": [
                "economy",
                "premiumEconomy",
                "business",
                "first"
              ],
              "enumTitles": [
                "Economy",
                "Premium economy",
                "Business",
                "First"
              ]
            }
          },
          "maxMiles": {
            "title": "Maximum miles per person",
            "minimum": 0,
            "type": "integer",
            "description": "Keep a cabin only when it costs this many miles or points or fewer, one way. 0 means no limit."
          },
          "maxTaxesUsd": {
            "title": "Maximum taxes and fees (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep a cabin only when the cash part (taxes, fees and carrier surcharges) is at most this many US dollars. Cabins whose taxes are not shown are left out when this is set. 0 means no limit."
          },
          "minSeats": {
            "title": "Minimum seats",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Keep a cabin only when at least this many award seats are shown, for example 2 for a couple.",
            "default": 1
          },
          "nonstopOnly": {
            "title": "Nonstop only",
            "type": "boolean",
            "description": "Keep a cabin only when its cheapest award is a nonstop flight.",
            "default": false
          },
          "maxDataAgeDays": {
            "title": "Only data seen in the last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Each day shows when its award space was last seen. Set 3 to keep only space seen in the last 3 days. 0 means any age."
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "date",
              "lowest-miles"
            ],
            "type": "string",
            "description": "Date order, or the lowest matching miles first (reads every page of the search before sorting).",
            "default": "date"
          },
          "includeItineraries": {
            "title": "Add flight details",
            "type": "boolean",
            "description": "For each award day, add the flights behind it: flight numbers, connections, times, aircraft, miles and seats per cabin, a booking link, and what other programs charge for the same flight. Up to 200 award days per run.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum award days to return",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "One result is one program, route and departure date with miles, taxes and seats for every cabin."
          },
          "monitoringMode": {
            "title": "Monitoring mode (alerts only)",
            "type": "boolean",
            "description": "Schedule the same input. The first run remembers the award space found now and charges nothing. Later runs return only cabins that opened or got cheaper since the last run, with a list of changes. Runs with nothing new return one free status row and a small route-check fee per program and route.",
            "default": false
          },
          "alertWhenCheaper": {
            "title": "Also alert when miles drop",
            "type": "boolean",
            "description": "In monitoring mode, also alert when a cabin that was already open now costs fewer miles. Off means alerts only for newly opened space.",
            "default": true
          },
          "resetMonitoringState": {
            "title": "Reset monitoring memory",
            "type": "boolean",
            "description": "Forget what monitoring mode remembered for this input. With monitoring on, this run becomes a new free first run.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}