{
  "openapi": "3.0.1",
  "info": {
    "title": "Flight Award Availability Scraper — Miles, Taxes & Cabins",
    "description": "Scrape airline award availability — miles, taxes, and cabin seats — from Flightpoints and Roame for any origin/destination and loyalty program. HTTP-only, cookieless, MCP-ready for travel agents and miles planners.",
    "version": "0.1",
    "x-build-id": "L5xX5FOeMZvw2s431"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~flight-award-availability-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-flight-award-availability-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/khadinakbar~flight-award-availability-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-flight-award-availability-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/khadinakbar~flight-award-availability-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-flight-award-availability-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": "Origin airports",
            "type": "array",
            "description": "IATA origin codes (e.g. JFK). When empty and destinations are set, expands across major hubs. Pair with destinations or use routes[].",
            "items": {
              "type": "string",
              "minLength": 3,
              "maxLength": 3
            }
          },
          "destinations": {
            "title": "Destination airports",
            "type": "array",
            "description": "IATA destination codes (e.g. LHR). When empty and origins are set, expands across major hubs.",
            "items": {
              "type": "string",
              "minLength": 3,
              "maxLength": 3
            }
          },
          "startDate": {
            "title": "Start date",
            "type": "string",
            "description": "First departure date (YYYY-MM-DD). Defaults to ~30 days from today when empty. Max 60 days forward from today."
          },
          "endDate": {
            "title": "End date",
            "type": "string",
            "description": "Last departure date (YYYY-MM-DD). Defaults to startDate when empty. Window capped at 60 days from today."
          },
          "departureDate": {
            "title": "Single departure date",
            "type": "string",
            "description": "Shortcut for a single-day search (YYYY-MM-DD). Overrides startDate/endDate when set."
          },
          "routes": {
            "title": "Explicit routes",
            "type": "array",
            "description": "Optional list of {origin, destination, departureDate} routes. When set, these are searched in addition to origins×destinations.",
            "items": {
              "type": "object",
              "properties": {
                "origin": {
                  "type": "string",
                  "title": "Origin",
                  "description": "IATA origin airport code (e.g. JFK).",
                  "minLength": 3,
                  "maxLength": 3
                },
                "destination": {
                  "type": "string",
                  "title": "Destination",
                  "description": "IATA destination airport code (e.g. LHR).",
                  "minLength": 3,
                  "maxLength": 3
                },
                "departureDate": {
                  "type": "string",
                  "title": "Departure date",
                  "description": "Departure date YYYY-MM-DD for this route. Falls back to the run date window when empty.",
                  "example": "2026-10-19"
                }
              }
            }
          },
          "cabin": {
            "title": "Cabin filter",
            "enum": [
              "",
              "economy",
              "premium",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Keep only awards with availability in this cabin. Empty = all cabins.",
            "default": ""
          },
          "issuers": {
            "title": "Loyalty programs / issuers",
            "type": "array",
            "description": "Filter by program slug (american, united, flyingblue, aeroplan) or code (AA, UA, AF/KL). Empty = all live programs.",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "title": "Data sources",
            "type": "array",
            "description": "Which providers to query: flightpoints (primary explore calendar) and/or roame (live GraphQL). Default both. Unknown values are ignored.",
            "items": {
              "type": "string"
            },
            "default": [
              "flightpoints",
              "roame"
            ]
          },
          "searchClass": {
            "title": "Roame search class",
            "enum": [
              "",
              "ECON",
              "PREM",
              "ANY"
            ],
            "type": "string",
            "description": "Roame GraphQL searchClass override. Mapped from cabin when empty: economy→ECON, premium→PREM, business/first→ANY.",
            "default": ""
          },
          "daysAround": {
            "title": "Roame days around",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Roame daysAround flexibility (0 = exact date). Usually leave at 0; Flightpoints filters dates client-side.",
            "default": 0
          },
          "directOnly": {
            "title": "Direct flights only",
            "type": "boolean",
            "description": "When true, keep only Flightpoints rows where cabin stops === 0. Roame filters numStops === 0.",
            "default": false
          },
          "maxItems": {
            "title": "Max award rows",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Hard cap on billed dataset rows. Quality prefill uses 20.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel route/source searches. Keep low to respect Roame rate limits.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify Proxy. Direct HTTPS usually works for Flightpoints and Roame.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}