{
  "openapi": "3.0.1",
  "info": {
    "title": "Award Flight Scraper — Miles, Taxes & 25+ Programs",
    "description": "Search award flights across 25+ loyalty programs (Flying Blue, AAdvantage, MileagePlus and more). From-anywhere or a named airport, date range, and issuer filter. Returns miles, taxes, cabins, seats and full itineraries from Flightpoints and Roame. One row per award option.",
    "version": "0.1",
    "x-build-id": "3gJIAa76EEYWd1aHa"
  },
  "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 this expands one search per day."
          },
          "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",
                "azul",
                "copa",
                "delta",
                "emirates",
                "ethiopian",
                "etihad",
                "eurobonus",
                "finnair",
                "flyingblue",
                "jetblue",
                "lufthansa",
                "qantas",
                "qatar",
                "saudia",
                "singapore",
                "smiles",
                "turkish",
                "united",
                "velocity",
                "virginatlantic",
                "avios",
                "lifemiles"
              ],
              "enumTitles": [
                "Aeromexico",
                "Air Canada Aeroplan",
                "Alaska Atmos Rewards",
                "American AAdvantage",
                "Azul Fidelidade",
                "Copa ConnectMiles",
                "Delta SkyMiles",
                "Emirates Skywards",
                "Ethiopian ShebaMiles",
                "Etihad Guest",
                "SAS EuroBonus",
                "Finnair Plus",
                "Air France/KLM Flying Blue",
                "JetBlue TrueBlue",
                "Lufthansa Miles & More",
                "Qantas Frequent Flyer",
                "Qatar Airways Privilege Club",
                "Saudia AlFursan",
                "Singapore Airlines KrisFlyer",
                "GOL Smiles",
                "Turkish Miles&Smiles",
                "United MileagePlus",
                "Virgin Australia Velocity",
                "Virgin Atlantic",
                "Avios (BA / Iberia)",
                "Avianca LifeMiles"
              ]
            }
          },
          "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."
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Which award-search sources to query. Default: both.",
            "items": {
              "type": "string",
              "enum": [
                "flightpoints",
                "roame"
              ]
            },
            "default": [
              "flightpoints",
              "roame"
            ]
          },
          "searchClass": {
            "title": "Roame search cabin",
            "enum": [
              "ECON",
              "PREM",
              "BUS",
              "FIRST"
            ],
            "type": "string",
            "description": "Cabin Roame searches. 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
          },
          "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')."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}