{
  "openapi": "3.0.1",
  "info": {
    "title": "Award Flight Scraper — Miles, Taxes & 35 Programs",
    "description": "Search 35 loyalty programs, including Asia Miles, British Airways, Iberia, Smiles, Azul, EVA, JAL, Frontier, Spirit, and Livelo. Miles, taxes, cabins, flight numbers, aircraft, and distance. Avios also matches British Airways and Iberia.",
    "version": "0.1",
    "x-build-id": "ggXaiTpMPmhclKxjT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~award-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-award-flights-scraper",
        "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/memo23~award-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-award-flights-scraper",
        "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/memo23~award-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-award-flights-scraper",
        "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",
        "properties": {
          "origins": {
            "title": "Origins (IATA, leave empty for any)",
            "type": "array",
            "description": "Origin airport or city IATA codes (NYC, LON, …). Leave empty to search from major hubs worldwide. At least one origin or destination is required.",
            "items": {
              "type": "string"
            }
          },
          "destinations": {
            "title": "Destinations (IATA, leave empty for any)",
            "type": "array",
            "description": "Destination airport or city IATA codes (NYC, LON, …). Leave empty to search to major hubs worldwide. At least one origin or destination is required.",
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "title": "Start date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "First departure date (YYYY-MM-DD), within the next 60 days. Leave empty to default ~30 days out."
          },
          "endDate": {
            "title": "End date",
            "pattern": "^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$",
            "type": "string",
            "description": "Last departure date (YYYY-MM-DD), within the next 60 days. Combined with Start date, the range is searched in 7-day blocks."
          },
          "cabin": {
            "title": "Cabin",
            "enum": [
              "",
              "economy",
              "premium",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Keep only itineraries with award space in this cabin. Empty = any.",
            "default": ""
          },
          "issuers": {
            "title": "Loyalty programs (leave empty for all)",
            "type": "array",
            "description": "Restrict results to these issuers. Leave empty to search all programs.",
            "items": {
              "type": "string",
              "enum": [
                "aeromexico",
                "aeroplan",
                "alaska",
                "american",
                "asiamiles",
                "azul",
                "british",
                "copa",
                "delta",
                "emirates",
                "ethiopian",
                "etihad",
                "eurobonus",
                "eva",
                "finnair",
                "flyingblue",
                "frontier",
                "iberia",
                "jal",
                "jetblue",
                "lifemiles",
                "livelo",
                "lufthansa",
                "qantas",
                "qatar",
                "saudia",
                "singapore",
                "smiles",
                "spirit",
                "turkish",
                "united",
                "velocity",
                "virginatlantic",
                "tap",
                "avios"
              ],
              "enumTitles": [
                "Aeromexico",
                "Air Canada Aeroplan",
                "Alaska Atmos Rewards",
                "American AAdvantage",
                "Cathay Pacific Asia Miles",
                "Azul Fidelidade",
                "British Airways Club",
                "Copa ConnectMiles",
                "Delta SkyMiles",
                "Emirates Skywards",
                "Ethiopian ShebaMiles",
                "Etihad Guest",
                "SAS EuroBonus",
                "EVA Air Infinity MileageLands",
                "Finnair Plus",
                "Air France/KLM Flying Blue",
                "Frontier Airlines",
                "Iberia Plus",
                "JAL Mileage Bank",
                "JetBlue TrueBlue",
                "Avianca LifeMiles",
                "Livelo",
                "Lufthansa Miles & More",
                "Qantas Frequent Flyer",
                "Qatar Airways Privilege Club",
                "Saudia AlFursan",
                "Singapore Airlines KrisFlyer",
                "GOL Smiles",
                "Spirit Airlines",
                "Turkish Miles&Smiles",
                "United MileagePlus",
                "Virgin Australia Velocity",
                "Virgin Atlantic",
                "TAP Miles&Go",
                "Avios (BA / Iberia / Aer Lingus)"
              ]
            }
          },
          "sortBy": {
            "title": "Sort by cabin",
            "enum": [
              "",
              "economy",
              "premium",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Put itineraries with this cabin first, cheapest miles first.",
            "default": ""
          },
          "origin": {
            "title": "Origin (legacy single IATA)",
            "type": "string",
            "description": "Single origin IATA. Prefer Origins above. Used when Origins is empty."
          },
          "destination": {
            "title": "Destination (legacy single IATA)",
            "type": "string",
            "description": "Single destination IATA. Prefer Destinations above. Used when Destinations is empty."
          },
          "departureDate": {
            "title": "Departure date (legacy)",
            "type": "string",
            "description": "Single departure date YYYY-MM-DD. Prefer Start / End date. Ignored when a date range is set."
          },
          "routes": {
            "title": "Bulk routes",
            "type": "array",
            "description": "Optional list of routes (overrides Origins / Destinations). Each item: { \"origin\": \"JFK\", \"destination\": \"LHR\", \"departureDate\": \"2026-10-01\" }. Origin or destination may be empty for from-anywhere / to-anywhere."
          },
          "urls": {
            "title": "Search links (optional)",
            "type": "array",
            "description": "Paste flightpoints.com search links (copy the address bar after a search). Each link is searched as its own route, added to any airports above: several origins or destinations in a link search every pair, and its date plus the ± days setting become that link's dates. A link without a date uses the dates above, or about 30 days out. Cabin, direct-only, minimum seats and max fees in the links fill those filters when you leave them empty. roame.travel links are read for their route.",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which award-search sources to query. Roame is accepted but skipped: since October 2026 it needs a sign-in check.",
            "items": {
              "type": "string",
              "enum": [
                "flightpoints",
                "roame"
              ]
            },
            "default": [
              "flightpoints"
            ]
          },
          "searchClass": {
            "title": "Roame search cabin",
            "enum": [
              "ECON",
              "PREM",
              "BUS",
              "FIRST"
            ],
            "type": "string",
            "description": "Only used by Roame, which is currently skipped. Flightpoints returns all cabins; use Cabin above to filter those rows.",
            "default": "ECON"
          },
          "daysAround": {
            "title": "± days window",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "Widen a single-date search by +/- this many days. Ignored when Start and End date already span multiple days.",
            "default": 0
          },
          "directOnly": {
            "title": "Direct flights only",
            "type": "boolean",
            "description": "Flightpoints: return non-stop itineraries only.",
            "default": false
          },
          "maxItems": {
            "title": "Max itineraries",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum award itineraries to scrape across all routes and sources.",
            "default": 100
          },
          "maxMiles": {
            "title": "Max award miles",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only itineraries with at least one matching cabin costing at most this many miles."
          },
          "maxCashTaxes": {
            "title": "Max cash taxes & fees (USD)",
            "minimum": 0,
            "type": "number",
            "description": "Keep only itineraries with at least one matching cabin whose cash taxes/fees are at most this amount (0 keeps zero-tax awards)."
          },
          "minSeats": {
            "title": "Minimum available seats",
            "minimum": 1,
            "type": "integer",
            "description": "Keep only itineraries with at least this many award seats available in a matching cabin."
          },
          "operatingAirlines": {
            "title": "Operating airlines (IATA codes or names)",
            "type": "array",
            "description": "Keep only itineraries operated by these airlines (e.g. BA, AF, Virgin Atlantic). Leave empty for any operating airline.",
            "items": {
              "type": "string"
            }
          },
          "additionalRoutes": {
            "title": "Additional routes",
            "type": "array",
            "description": "Extra routes appended to Origins / Destinations or Routes. Each item: { \"origin\": \"BOS\", \"destination\": \"CDG\", \"departureDate\": \"2026-10-01\" }."
          },
          "includeSegments": {
            "title": "Include flight segments",
            "type": "boolean",
            "description": "Include per-leg flight segment arrays (`segments` on each row and itinerary). Set to false for smaller payloads.",
            "default": true
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Drop redundant nested/duplicate fields (`date`, `cabinAvailability`, `itineraries`, `segments`, `coordinates`, null `roameScore`) for smaller LLM-friendly rows.",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields",
            "type": "boolean",
            "description": "Recursively remove null, undefined, empty strings, empty arrays, and empty objects from each output row while preserving 0 and false.",
            "default": false
          },
          "incrementalMode": {
            "title": "Incremental mode (for scheduled runs)",
            "type": "boolean",
            "description": "Return only itineraries that are new or changed since the last run of this same search. Each row gets a changeType of NEW or UPDATED (UPDATED rows list changedFields and previousCabins). Unchanged itineraries are skipped and not billed. The first run returns everything as NEW. Use it with a Schedule to catch award space as it opens.",
            "default": false
          },
          "stateKey": {
            "title": "State key (optional)",
            "type": "string",
            "description": "Names the saved state that incremental mode compares against. Leave empty and a key is derived from your airports and filters (dates are left out, so a schedule with rolling dates keeps one state). Set the same key on two tasks to share a state, or a new key to start fresh."
          },
          "emitUnchanged": {
            "title": "Also return unchanged itineraries",
            "type": "boolean",
            "description": "Incremental mode only. Returns UNCHANGED itineraries too (these are billed like any other row).",
            "default": false
          },
          "emitExpired": {
            "title": "Also return expired itineraries",
            "type": "boolean",
            "description": "Incremental mode only. Returns itineraries from the last run that are no longer available, as changeType EXPIRED with their previousCabins. Reported only after a run that completed every search, so a skipped or empty search never reads as seats disappearing. An expired itinerary that shows up again later comes back as REAPPEARED (whether or not this is on).",
            "default": false
          },
          "ignoreFieldsForChanges": {
            "title": "Ignore changes in these fields",
            "type": "array",
            "description": "Incremental mode only. Changes here never make an itinerary UPDATED; the new values still show in the row. Use a field for every cabin (seats, taxes, miles, stops), a cabin (first ignores that cabin opening, closing or changing), or one path (business.seats or cabins.business.seats). Example: [\"seats\"] reports only price changes and new or closed cabins.",
            "items": {
              "type": "string"
            }
          },
          "resumeFromRunId": {
            "title": "Resume from run (optional)",
            "type": "string",
            "description": "ID of an earlier run of this Actor with the same input that stopped early (timeout, Max itineraries, abort). This run skips the searches that run finished and the itineraries it already returned, so nothing is billed twice. Leave empty for a normal run."
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Parallel route × source searches.",
            "default": 4
          },
          "country": {
            "title": "Exit country (ISO-2)",
            "type": "string",
            "description": "Optional residential proxy exit country (e.g. 'us')."
          },
          "maxResults": {
            "title": "Max results (alias for Max itineraries)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for `maxItems`. Applies when `maxItems` is omitted or left at its default (100)."
          },
          "limit": {
            "title": "Limit (alias for Max itineraries)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for `maxItems`. Applies when `maxItems` and `maxResults` are omitted or default."
          },
          "searches": {
            "title": "Searches (alias for Bulk routes)",
            "type": "array",
            "description": "Alias for `routes` when `routes` is empty. Each item accepts origin/from, destination/to, and departureDate/date or startDate/endDate."
          },
          "deltaDays": {
            "title": "Delta days (alias for ± days window)",
            "minimum": 0,
            "maximum": 7,
            "type": "integer",
            "description": "Alias for `daysAround` (± N days on single-date searches, 0–7). Applies when `daysAround` is omitted or 0."
          },
          "cabinClass": {
            "title": "Cabin class (alias for Cabin)",
            "type": "string",
            "description": "Alias for `cabin` (e.g. economy, premium, business, first, or ECON/PREM/BUS/FIRST). Applies when `cabin` is empty."
          },
          "programs": {
            "title": "Programs (alias for Loyalty programs)",
            "type": "array",
            "description": "Alias for `issuers` when `issuers` is empty (e.g. flyingblue, american, asiamiles).",
            "items": {
              "type": "string"
            }
          },
          "nonstop": {
            "title": "Nonstop only (alias for Direct flights only)",
            "type": "boolean",
            "description": "Alias for `directOnly`. Applies when `directOnly` is omitted or false."
          },
          "onlyDirectFlights": {
            "title": "Only direct flights (alias for Direct flights only)",
            "type": "boolean",
            "description": "Alias for `directOnly`. Applies when `directOnly` is omitted or false."
          },
          "minimumSeats": {
            "title": "Minimum seats (alias for Min seats)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for `minSeats`."
          },
          "maxTaxesUsd": {
            "title": "Max taxes USD (alias for Max cash taxes)",
            "minimum": 0,
            "type": "number",
            "description": "Alias for `maxCashTaxes`."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}