{
  "openapi": "3.0.1",
  "info": {
    "title": "Skiplagged Route Fare & Booking Provider Finder",
    "description": "Search Skiplagged flight fares for one route, a batch of routes, or pasted search URLs, returning price, airlines, flight numbers, layovers, stops and the booking provider for each itinerary.",
    "version": "1.0",
    "x-build-id": "OMvw5q04TgfysjBFw"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nimbryxo-studio~skiplagged-route-fare-and-booking-provider-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nimbryxo-studio-skiplagged-route-fare-and-booking-provider-finder",
        "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/nimbryxo-studio~skiplagged-route-fare-and-booking-provider-finder/runs": {
      "post": {
        "operationId": "runs-sync-nimbryxo-studio-skiplagged-route-fare-and-booking-provider-finder",
        "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/nimbryxo-studio~skiplagged-route-fare-and-booking-provider-finder/run-sync": {
      "post": {
        "operationId": "run-sync-nimbryxo-studio-skiplagged-route-fare-and-booking-provider-finder",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byRoutes",
              "byUrls",
              "calendar"
            ],
            "type": "string",
            "description": "What to fetch. `search` uses one origin/destination, `byRoutes` reads the routes array, `byUrls` parses pasted Skiplagged URLs, and `calendar` returns a flexible-date price calendar for one route.",
            "default": "search"
          },
          "origin": {
            "title": "Origin",
            "type": "string",
            "description": "Origin airport/metro code (`JFK`, `NYC`), Skiplagged city slug (`new-york`, `tokyo`, `dubai-emirate`) or city name (`New York`). Mode=search and mode=calendar.",
            "default": "NYC"
          },
          "destination": {
            "title": "Destination",
            "type": "string",
            "description": "Destination airport/metro code (`LHR`, `LON`), Skiplagged city slug (`tokyo`, `dubai-emirate`) or city name (`London`).",
            "default": "LON"
          },
          "departDate": {
            "title": "Departure date",
            "type": "string",
            "description": "Departure date as `YYYY-MM-DD`. Leave blank to use six weeks from today. Past dates advance to a future month, and a past round-trip gap is preserved."
          },
          "returnDate": {
            "title": "Return date",
            "type": "string",
            "description": "Return date as `YYYY-MM-DD` for a round-trip search. Leave blank for one-way."
          },
          "originAirports": {
            "title": "Origin airports",
            "type": "array",
            "description": "Optional exact airports to search instead of `origin`, e.g. `[\"JFK\", \"EWR\"]`. When set, these override the single origin value (mode=search, byRoutes).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "destinationAirports": {
            "title": "Destination airports",
            "type": "array",
            "description": "Optional exact airports to search instead of `destination`, e.g. `[\"LHR\", \"LGW\"]`. When set, these override the single destination value (mode=search, byRoutes).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeNearbyAirports": {
            "title": "Include nearby airports",
            "type": "boolean",
            "description": "Also search airports near the origin and destination (e.g. HPN and ISP around New York). Ignored when an airport list is set (mode=search, byRoutes, byUrls).",
            "default": false
          },
          "expandAirports": {
            "title": "Expand metro routes for more rows",
            "type": "boolean",
            "description": "Skiplagged returns at most about 300 itineraries per leg. When on, the actor also searches each airport of the smaller side of a metro route (e.g. JFK, EWR and LGA for NYC) and merges the unique results. Costs a few extra requests (mode=search, byRoutes, byUrls).",
            "default": false
          },
          "routes": {
            "title": "Routes (mode=byRoutes)",
            "type": "array",
            "description": "Batch of routes, one object per route: `{\"origin\":\"NYC\",\"destination\":\"LON\",\"departDate\":\"2026-09-01\",\"returnDate\":\"2026-09-08\"}`. `returnDate`, `originAirports` and `destinationAirports` are optional.",
            "default": []
          },
          "startUrls": {
            "title": "Skiplagged URLs (mode=byUrls)",
            "type": "array",
            "description": "Skiplagged flight-search URLs, e.g. `https://skiplagged.com/flights/NYC/LON/2026-09-01/2026-09-08`, `https://skiplagged.com/flights/LON/dubai-emirate/2026-09-17` or `https://skiplagged.com/flights/NYC/tokyo/2026-09-17`. Airport codes and multi-word or single-word city slugs are accepted.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "auto",
              "one-way",
              "round-trip"
            ],
            "type": "string",
            "description": "One-way, round-trip, or auto-detect from whether a return date is present.",
            "default": "auto"
          },
          "cabinClass": {
            "title": "Cabin class",
            "enum": [
              "economy",
              "premium-economy",
              "business",
              "first"
            ],
            "type": "string",
            "description": "Requested cabin. `premium-economy` is sent as Skiplagged's `premium` fare class. The real fare class returned by Skiplagged is always included on each record as `fareClass`.",
            "default": "economy"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 9,
            "type": "integer",
            "description": "Number of adult passengers (12+). Prices on each record are the total for the requested passenger mix.",
            "default": 1
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Number of child passengers (2-11).",
            "default": 0
          },
          "infantsLap": {
            "title": "Infants (on lap)",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Number of lap infants (under 2, no seat).",
            "default": 0
          },
          "infantsSeat": {
            "title": "Infants (own seat)",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Number of infants (under 2) with their own seat.",
            "default": 0
          },
          "directOnly": {
            "title": "Direct flights only",
            "type": "boolean",
            "description": "Only emit nonstop itineraries to the deplaning airport.",
            "default": false
          },
          "maxStops": {
            "title": "Max stops",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Drop itineraries with more stops than this before the deplaning airport. 0 means nonstop.",
            "default": 3
          },
          "minPrice": {
            "title": "Min price (USD)",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Drop itineraries cheaper than this total price in whole USD."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Drop itineraries pricier than this total price in whole USD."
          },
          "airlines": {
            "title": "Include airlines",
            "type": "array",
            "description": "Only emit itineraries that include at least one of these 2-letter IATA airline codes, e.g. `AA`, `BA`, `DL`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeAirlines": {
            "title": "Exclude airlines",
            "type": "array",
            "description": "Drop itineraries that include any of these 2-letter IATA airline codes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hiddenCity": {
            "title": "Hidden-city itineraries",
            "enum": [
              "include",
              "only",
              "exclude"
            ],
            "type": "string",
            "description": "Include all itineraries, keep only hidden-city fares, or drop hidden-city fares. Hidden-city itineraries end at a different ticketed airport than your destination; check airline baggage and missed-leg rules before booking.",
            "default": "include"
          },
          "departAfter": {
            "title": "Depart after (HH:MM)",
            "type": "string",
            "description": "Keep itineraries whose first departure is at or after this local time, e.g. `08:00`."
          },
          "departBefore": {
            "title": "Depart before (HH:MM)",
            "type": "string",
            "description": "Keep itineraries whose first departure is at or before this local time, e.g. `22:00`."
          },
          "arriveAfter": {
            "title": "Arrive after (HH:MM)",
            "type": "string",
            "description": "Keep itineraries whose deplaning arrival is at or after this local time."
          },
          "arriveBefore": {
            "title": "Arrive before (HH:MM)",
            "type": "string",
            "description": "Keep itineraries whose deplaning arrival is at or before this local time."
          },
          "maxDurationMinutes": {
            "title": "Max duration (minutes)",
            "minimum": 0,
            "maximum": 10080,
            "type": "integer",
            "description": "Drop itineraries longer than this many minutes to the deplaning airport, e.g. `600` for 10 hours."
          },
          "maxLayoverMinutes": {
            "title": "Max layover (minutes)",
            "minimum": 0,
            "maximum": 10080,
            "type": "integer",
            "description": "Drop itineraries with any layover longer than this many minutes."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "price",
              "duration",
              "departureTime",
              "stops"
            ],
            "type": "string",
            "description": "Order of emitted records within each route.",
            "default": "price"
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Ascending (cheapest/shortest/earliest/fewest first) or descending.",
            "default": "asc"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Hard cap on emitted records for the whole run, across all routes.",
            "default": 50
          },
          "calendarStartDate": {
            "title": "Calendar start date (mode=calendar)",
            "type": "string",
            "description": "First date to include in the flexible-date calendar as `YYYY-MM-DD`. Leave blank to start from the earliest returned day."
          },
          "calendarDays": {
            "title": "Calendar days (mode=calendar)",
            "minimum": 1,
            "maximum": 61,
            "type": "integer",
            "description": "How many days of the calendar to return, counting from the start date. For round-trip calendars this applies per calendar type (departure and return), so up to twice as many rows can be returned.",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}