{
  "openapi": "3.0.1",
  "info": {
    "title": "Kayak Car Rental Scraper",
    "description": "Scrape Kayak car rental offers by pickup location, dates, or Kayak car-search URLs. Returns agency, provider, vehicle class, price, cancellation, mileage, fuel, pickup-counter, score, and booking-link fields.",
    "version": "1.0",
    "x-build-id": "DuhlTRT69jX0pGuae"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~kayak-car-rental-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-kayak-car-rental-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~kayak-car-rental-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-kayak-car-rental-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~kayak-car-rental-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-kayak-car-rental-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": {
          "pickupLocation": {
            "title": "Pickup location",
            "type": "string",
            "description": "City, airport, or place to search on Kayak, e.g. 'Los Angeles', 'LAX', 'Miami, FL', or 'London Heathrow'. Leave empty when using startUrls."
          },
          "dropoffLocation": {
            "title": "Different dropoff location",
            "type": "string",
            "description": "Optional dropoff city or airport for one-way rentals. Leave empty to return the car to the pickup location."
          },
          "pickupDate": {
            "title": "Pickup date",
            "type": "string",
            "description": "Pickup date in YYYY-MM-DD format. Defaults to 30 days from today when omitted. Must not be in the past."
          },
          "returnDate": {
            "title": "Return date",
            "type": "string",
            "description": "Return date in YYYY-MM-DD format. Defaults to seven days after pickupDate when omitted. Must be after pickupDate."
          },
          "pickupTime": {
            "title": "Pickup time",
            "enum": [
              "00:00",
              "06:00",
              "07:00",
              "08:00",
              "09:00",
              "10:00",
              "11:00",
              "12:00",
              "13:00",
              "14:00",
              "15:00",
              "16:00",
              "17:00",
              "18:00",
              "20:00",
              "22:00"
            ],
            "type": "string",
            "description": "Local pickup time. Kayak prices can change by pickup and return time.",
            "default": "10:00"
          },
          "returnTime": {
            "title": "Return time",
            "enum": [
              "00:00",
              "06:00",
              "07:00",
              "08:00",
              "09:00",
              "10:00",
              "11:00",
              "12:00",
              "13:00",
              "14:00",
              "15:00",
              "16:00",
              "17:00",
              "18:00",
              "20:00",
              "22:00"
            ],
            "type": "string",
            "description": "Local return time. Defaults to 10:00.",
            "default": "10:00"
          },
          "driverAge": {
            "title": "Driver age",
            "minimum": 18,
            "maximum": 99,
            "type": "integer",
            "description": "Driver age used for Kayak pricing. Defaults to 30. Young-driver pricing can differ by supplier.",
            "default": 30
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "recommended",
              "cheapest",
              "closest",
              "best"
            ],
            "type": "string",
            "description": "Kayak result ordering before extraction.",
            "default": "recommended"
          },
          "carTypes": {
            "title": "Car types",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional client-side filter. Filtered-out offers are not billed.",
            "items": {
              "type": "string",
              "enum": [
                "small",
                "medium",
                "large",
                "suv",
                "van",
                "luxury",
                "special",
                "convertible",
                "pickup"
              ]
            }
          },
          "minTotalPrice": {
            "title": "Minimum total price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional client-side filter on total rental price in the returned currency. Filtered-out offers are not billed."
          },
          "maxTotalPrice": {
            "title": "Maximum total price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional client-side filter on total rental price in the returned currency. Filtered-out offers are not billed."
          },
          "freeCancellationOnly": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Keep only offers Kayak marks with free cancellation. Filtered-out offers are not billed.",
            "default": false
          },
          "currency": {
            "title": "Preferred currency",
            "enum": [
              "USD",
              "CAD",
              "GBP",
              "EUR",
              "AUD",
              "NZD",
              "AED",
              "SAR",
              "INR",
              "JPY",
              "SGD"
            ],
            "type": "string",
            "description": "Preferred ISO currency code sent as a Kayak query hint. The output currency always reflects Kayak's returned offer currency.",
            "default": "USD"
          },
          "countryCode": {
            "title": "Location search country bias",
            "type": "string",
            "description": "Two-letter country code used to bias Kayak location autocomplete. Defaults to US.",
            "default": "US"
          },
          "startUrls": {
            "title": "Kayak car-search URLs",
            "type": "array",
            "description": "Optional full Kayak /cars result URLs to scrape directly. Use this for a filtered Kayak search you already built.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max offers",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum bookable provider offers to return across all searches. Each returned offer is one billed event.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Residential proxies are recommended for Kayak browser runs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}