{
  "openapi": "3.0.1",
  "info": {
    "title": "Roame Award Flights — Cached Offers & Full Itineraries",
    "description": "Export partial cached Roame award offers for exact airports, dates and cabins: miles, seats, full flight legs and source freshness. No login. Not live or exhaustive availability. $0.50 per 1,000 delivered fares; no start fee.",
    "version": "0.1",
    "x-build-id": "O56uUhyqd8I9eP614"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jpmarketdata~roame-award-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jpmarketdata-roame-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/jpmarketdata~roame-award-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-jpmarketdata-roame-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/jpmarketdata~roame-award-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-jpmarketdata-roame-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",
        "required": [
          "routes"
        ],
        "properties": {
          "routes": {
            "title": "Exact airport routes",
            "minItems": 1,
            "maxItems": 3,
            "type": "array",
            "description": "One to three origin/destination airport pairs. Nearby airports returned by the source are excluded. Routes multiplied by departure days cannot exceed 5 searches. $0.0005 is charged per saved fare.",
            "items": {
              "type": "object",
              "properties": {
                "origin": {
                  "type": "string",
                  "title": "Departure airport",
                  "description": "Exact uppercase three-letter origin airport IATA code, such as JFK."
                },
                "destination": {
                  "type": "string",
                  "title": "Arrival airport",
                  "description": "Exact uppercase three-letter destination airport IATA code, such as LHR."
                }
              },
              "required": [
                "origin",
                "destination"
              ],
              "additionalProperties": false
            },
            "default": [
              {
                "origin": "JFK",
                "destination": "LHR"
              }
            ]
          },
          "startDate": {
            "title": "First departure date",
            "type": "string",
            "description": "Optional YYYY-MM-DD date, today to 60 days ahead (UTC). Overrides Days from today. $0.0005 is charged per saved fare."
          },
          "daysFromToday": {
            "title": "Days from today",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Used when First departure date is omitted. Seven means one week from today (UTC). $0.0005 is charged per saved fare.",
            "default": 7
          },
          "days": {
            "title": "Departure days",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Number of consecutive dates, up to 5. More dates can produce more charged results. $0.0005 is charged per saved fare.",
            "default": 1
          },
          "cabin": {
            "title": "Cabin",
            "enum": [
              "economy",
              "premiumEconomy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Filter cabin before the bounded public source window and again on native rows. Public cache availability varies, especially for economy and premium economy; empty results do not establish no award inventory. $0.0005 per delivered fare.",
            "default": "business"
          },
          "minSeats": {
            "title": "Minimum reported seats",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Require this source-reported seat lower bound. Seat availability must be rechecked before booking. $0.0005 is charged per saved fare.",
            "default": 1
          },
          "includeMixedCabin": {
            "title": "Include mixed cabins",
            "type": "boolean",
            "description": "Allow itineraries whose legs use different cabins. The actual cabin on each leg remains in the result. $0.0005 is charged per saved fare.",
            "default": false
          },
          "maxAgeHours": {
            "title": "Maximum source age in hours",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "Exclude fares whose source update time is older than this many hours. This is not a booking guarantee. $0.0005 is charged per saved fare.",
            "default": 24
          },
          "programs": {
            "title": "Loyalty program codes",
            "type": "array",
            "description": "Optional native Roame program codes, for example AMERICAN or UNITED. Applied before the public source window and locally. Different loyalty programs are not ranked against one another. $0.0005 per delivered fare.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxItems": {
            "title": "Maximum fare rows",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum saved and charged award options across all routes and days. Each saved option is billed once at the Actor's listed fare price. Source responses can contain more options than this output limit. $0.0005 is charged per saved fare.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}