{
  "openapi": "3.0.1",
  "info": {
    "title": "Norwegian Air Flights Scraper: Low-Fare Prices",
    "description": "Scrape Norwegian Air (norwegian.com) cheapest daily fares between two airports by IATA code over a date range. Get price, currency, cabin, stops, sold-out flags and booking deep links. Export to JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "QPf2QkqYuyFWGap0P"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapers_lat~norwegian-flights-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapers_lat-norwegian-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/scrapers_lat~norwegian-flights-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapers_lat-norwegian-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/scrapers_lat~norwegian-flights-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapers_lat-norwegian-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": [
          "origin",
          "destination"
        ],
        "properties": {
          "origin": {
            "title": "Origin airport",
            "type": "string",
            "description": "Departure airport IATA code, e.g. OSL. Use LON for all London airports."
          },
          "destination": {
            "title": "Destination airport",
            "type": "string",
            "description": "Arrival airport IATA code, e.g. LON. Use LON for all London airports."
          },
          "departureDateFrom": {
            "title": "Departure date from",
            "type": "string",
            "description": "Earliest outbound date (YYYY-MM-DD). Leave empty to search a near-future date automatically. Past dates are moved forward."
          },
          "departureDateTo": {
            "title": "Departure date to",
            "type": "string",
            "description": "Latest outbound date (YYYY-MM-DD). Leave empty to use the same day as Departure date from."
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "oneWay",
              "round"
            ],
            "type": "string",
            "description": "One-way or round trip. Round trip also scans the return leg.",
            "default": "oneWay"
          },
          "includeReturn": {
            "title": "Include return flights",
            "type": "boolean",
            "description": "Also scan the return leg (destination back to origin) over the return date range, tagged direction inbound.",
            "default": false
          },
          "returnDateFrom": {
            "title": "Return date from",
            "type": "string",
            "description": "Earliest inbound date (YYYY-MM-DD). Round trips only."
          },
          "returnDateTo": {
            "title": "Return date to",
            "type": "string",
            "description": "Latest inbound date (YYYY-MM-DD). Round trips only."
          },
          "collapseFares": {
            "title": "Collapse fares (one row per flight)",
            "type": "boolean",
            "description": "By default each day is a separate row. Enable this to nest the day's fare in a fareOptions array instead (one row per flight/day).",
            "default": false
          },
          "cabinType": {
            "title": "Cabin",
            "enum": [
              "economy",
              "premium"
            ],
            "type": "string",
            "description": "Cabin to price. Premium is only returned on routes where Norwegian sells it.",
            "default": "economy"
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "GBP",
              "NOK",
              "EUR",
              "USD",
              "SEK",
              "DKK"
            ],
            "type": "string",
            "description": "Currency for the fare prices.",
            "default": "GBP"
          },
          "includeTransit": {
            "title": "Include connecting flights",
            "type": "boolean",
            "description": "Include fares that require a transit/connection. Off returns direct flights only.",
            "default": false
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Number of adult passengers.",
            "default": 1
          },
          "withAiPriceInsight": {
            "title": "AI price insight (paid add-on)",
            "type": "boolean",
            "description": "Optional AI add-on. When on, produces one buyer-facing price analysis per route from the daily fare calendar: the cheapest day(s) to fly, the price range and volatility, and a book-now-vs-wait recommendation. Uses AI (billed $0.012 per route, only when a usable insight is produced). Off by default and disabled for free Apify users.",
            "default": false
          },
          "maxFlights": {
            "title": "Max flights",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of priced day records to collect. Free Apify plans are capped at 10 per run."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}