{
  "openapi": "3.0.1",
  "info": {
    "title": "Kayak Car Rental API",
    "description": "Search Kayak car rentals with full filter support — car class, transmission, agency, price, policies, and more. Structured results ready to use. For FULL API With Flights and hotels as well visit here :https://rapidapi.com/matepapava123/api/kayak-api",
    "version": "1.0",
    "x-build-id": "LMG50AInLkhCqnkh4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fingolfin~kayak-car-rental-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fingolfin-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/fingolfin~kayak-car-rental-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fingolfin-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/fingolfin~kayak-car-rental-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fingolfin-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",
        "required": [
          "scrapeType"
        ],
        "properties": {
          "scrapeType": {
            "title": "Scrape Type",
            "enum": [
              "LOCATION_SEARCH",
              "CAR_SEARCH"
            ],
            "type": "string",
            "description": "What to scrape. Each type has its own dedicated section below — fill in only the section that matches your choice.",
            "default": "LOCATION_SEARCH"
          },
          "locationQuery": {
            "title": "Location Query",
            "type": "string",
            "description": "City name, airport name, or IATA code to search for. Returns matching locations with location IDs. Use the ID from results as pickupLocation in Car Search."
          },
          "locationType": {
            "title": "Location Type",
            "enum": [
              "airportonly",
              "cityonly",
              "all"
            ],
            "type": "string",
            "description": "Type of locations to return. Used for scrapeType: LOCATION_SEARCH.",
            "default": "cityonly"
          },
          "locationCountry": {
            "title": "Country Code",
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code to bias location results. Used for scrapeType: LOCATION_SEARCH.",
            "default": "US"
          },
          "locationLocale": {
            "title": "Locale",
            "type": "string",
            "description": "Language/locale code for location search. Used for scrapeType: LOCATION_SEARCH.",
            "default": "us"
          },
          "pickupLocation": {
            "title": "Pickup Location ID",
            "type": "string",
            "description": "Kayak location query ID for pickup (e.g. '16078'). Get this by running scrapeType: LOCATION_SEARCH first. Required for scrapeType: CAR_SEARCH."
          },
          "pickupDate": {
            "title": "Pickup Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Pickup date in YYYY-MM-DD format. Required for scrapeType: CAR_SEARCH."
          },
          "dropoffDate": {
            "title": "Drop-off Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Drop-off date in YYYY-MM-DD format. Must be after pickupDate. Required for scrapeType: CAR_SEARCH."
          },
          "pickupHour": {
            "title": "Pickup Hour",
            "minimum": 0,
            "maximum": 23,
            "type": "integer",
            "description": "Pickup hour in 24-hour format (0–23). 10 = 10 AM, 14 = 2 PM. Used for scrapeType: CAR_SEARCH.",
            "default": 12
          },
          "dropoffHour": {
            "title": "Drop-off Hour",
            "minimum": 0,
            "maximum": 23,
            "type": "integer",
            "description": "Drop-off hour in 24-hour format (0–23). Used for scrapeType: CAR_SEARCH.",
            "default": 12
          },
          "pickupMinute": {
            "title": "Pickup Minute",
            "enum": [
              "0",
              "30"
            ],
            "type": "string",
            "description": "Pickup minute — Kayak only supports :00 or :30. Used for scrapeType: CAR_SEARCH.",
            "default": "0"
          },
          "dropoffMinute": {
            "title": "Drop-off Minute",
            "enum": [
              "0",
              "30"
            ],
            "type": "string",
            "description": "Drop-off minute — Kayak only supports :00 or :30. Used for scrapeType: CAR_SEARCH.",
            "default": "0"
          },
          "dropoffLocation": {
            "title": "Drop-off Location ID (one-way)",
            "type": "string",
            "description": "Different drop-off location ID for one-way rentals. Leave empty for same-location return. Used for scrapeType: CAR_SEARCH.",
            "default": ""
          },
          "driverAge": {
            "title": "Driver Age",
            "minimum": 18,
            "maximum": 99,
            "type": "integer",
            "description": "Driver age (18–99). Affects pricing and availability. Used for scrapeType: CAR_SEARCH."
          },
          "currencyCode": {
            "title": "Currency Code",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "CHF",
              "JPY",
              "MXN",
              "BRL"
            ],
            "type": "string",
            "description": "ISO 4217 currency code for prices. Used for scrapeType: CAR_SEARCH.",
            "default": "USD"
          },
          "countryCode": {
            "title": "Country Code",
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code. Determines Kayak regional site (e.g. US → kayak.com, DE → kayak.de). Used for scrapeType: CAR_SEARCH.",
            "default": "US"
          },
          "pageNumber": {
            "title": "Page Number (0-based)",
            "minimum": 0,
            "type": "integer",
            "description": "Page index for pagination. 0 = first page. Used for scrapeType: CAR_SEARCH.",
            "default": 0
          },
          "pageSize": {
            "title": "Results Per Page",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Number of car results per page. Used for scrapeType: CAR_SEARCH.",
            "default": 15
          },
          "priceMode": {
            "title": "Price Mode",
            "enum": [
              "total",
              "per-day"
            ],
            "type": "string",
            "description": "How prices are displayed — total rental cost or per-day rate. Used for scrapeType: CAR_SEARCH.",
            "default": "total"
          },
          "sortMode": {
            "title": "Sort Mode",
            "enum": [
              "rank_a",
              "price_a",
              "price_d"
            ],
            "type": "string",
            "description": "Sort order for car results. Used for scrapeType: CAR_SEARCH.",
            "default": "rank_a"
          },
          "carFilters": {
            "title": "Car Filters (optional)",
            "type": "object",
            "description": "Filter car search results. Leave as {} to return all. Run without filters first to see filterData in the output metadata item.\n\nValid fields:\n• carClass: SMALL, MEDIUM, LARGE, SUV, VAN, PICKUPTRUCK, LUXURY, CONVERTIBLE, COMMERCIAL\n• transmission: Automatic, Manual\n• priceRange: \"200-800\" (range), \"305-\" (min), \"-1000\" (max)\n• bookingSites: Europcar, Hertz, Enterprise, Avis, Budget, Dollar, Thrifty, Sixt, Fox\n• carAgency: alamo, avis, budget, dollar, enterprise, europcar, fox, hertz, sixt, thrifty\n• carMaker: {\"3\": \"Audi\", \"5\": \"BMW\", \"45\": \"Toyota\", \"1139\": \"Tesla\", \"30\": \"Mercedes\"}\n• carPolicies: cancel, driver, fuel, mileage\n• carOptions: AC, doors, awd, 4wd, NavigationSystem, OpenAirAllTerrain\n• ecoClass: Hybrid, Electric, Other\n• paymentType: PREPAY, DEPOSIT, POSTPAY\n• timeSaving: earlyCheckin, skipCounter\n• pickupCity: NON_AIRPORT or airport codes\n• inAirportTerminal: LAX, BUR, LGB, etc.\n• carSharing: Car sharing filter option\n• whiskyOnly: Kayak Whisky deals only"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}