# Kayak Car Rental Scraper (`khadinakbar/kayak-car-rental-scraper`) Actor

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.

- **URL**: https://apify.com/khadinakbar/kayak-car-rental-scraper.md
- **Developed by:** [Khadin Akbar](https://apify.com/khadinakbar) (community)
- **Categories:** Travel, MCP servers, Automation
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 1,000 car rental offers

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Kayak Car Rental Scraper

Scrape Kayak car rental search results and save one dataset row per bookable provider offer.

The actor accepts either structured search inputs, such as pickup location plus dates, or full Kayak `/cars` result URLs. It resolves typed locations through Kayak autocomplete, opens the Kayak result page in Playwright, captures the car-search poll response, normalizes provider offers, validates each row, and only then writes and bills the row.

### Output

Each row includes:

- Agency and booking provider names
- Vehicle name, class, car type, seats, bags, doors, fuel, and transmission
- Daily and total price, currency, payment type, known fees, and credit-card requirement
- Cancellation, mileage, fuel, cleaning, contactless, and additional-driver policy fields
- Pickup counter address, airport code, distance, location review score, and coordinates
- Kayak booking URL, provider URL, source URL, search id, result id, and timestamp

### Pricing

This actor uses pay per event:

- `apify-actor-start`: $0.00005 per run
- `car-rental-offer`: $0.0016 per validated offer written to the dataset

Filtered-out or invalid rows are not billed.

### Notes

Kayak availability and pricing can change quickly. Treat results as a point-in-time scrape and re-run close to your decision window.

# Actor input Schema

## `pickupLocation` (type: `string`):

City, airport, or place to search on Kayak, e.g. 'Los Angeles', 'LAX', 'Miami, FL', or 'London Heathrow'. Leave empty when using startUrls.

## `dropoffLocation` (type: `string`):

Optional dropoff city or airport for one-way rentals. Leave empty to return the car to the pickup location.

## `pickupDate` (type: `string`):

Pickup date in YYYY-MM-DD format. Defaults to 30 days from today when omitted. Must not be in the past.

## `returnDate` (type: `string`):

Return date in YYYY-MM-DD format. Defaults to seven days after pickupDate when omitted. Must be after pickupDate.

## `pickupTime` (type: `string`):

Local pickup time. Kayak prices can change by pickup and return time.

## `returnTime` (type: `string`):

Local return time. Defaults to 10:00.

## `driverAge` (type: `integer`):

Driver age used for Kayak pricing. Defaults to 30. Young-driver pricing can differ by supplier.

## `sortBy` (type: `string`):

Kayak result ordering before extraction.

## `carTypes` (type: `array`):

Optional client-side filter. Filtered-out offers are not billed.

## `minTotalPrice` (type: `integer`):

Optional client-side filter on total rental price in the returned currency. Filtered-out offers are not billed.

## `maxTotalPrice` (type: `integer`):

Optional client-side filter on total rental price in the returned currency. Filtered-out offers are not billed.

## `freeCancellationOnly` (type: `boolean`):

Keep only offers Kayak marks with free cancellation. Filtered-out offers are not billed.

## `currency` (type: `string`):

Preferred ISO currency code sent as a Kayak query hint. The output currency always reflects Kayak's returned offer currency.

## `countryCode` (type: `string`):

Two-letter country code used to bias Kayak location autocomplete. Defaults to US.

## `startUrls` (type: `array`):

Optional full Kayak /cars result URLs to scrape directly. Use this for a filtered Kayak search you already built.

## `maxResults` (type: `integer`):

Maximum bookable provider offers to return across all searches. Each returned offer is one billed event.

## `proxyConfiguration` (type: `object`):

Proxy settings. Residential proxies are recommended for Kayak browser runs.

## Actor input object example

```json
{
  "pickupLocation": "LAX",
  "dropoffLocation": "San Diego, CA",
  "pickupDate": "2026-08-15",
  "returnDate": "2026-08-22",
  "pickupTime": "10:00",
  "returnTime": "10:00",
  "driverAge": 30,
  "sortBy": "recommended",
  "freeCancellationOnly": false,
  "currency": "USD",
  "countryCode": "US",
  "startUrls": [
    "https://www.kayak.com/cars/Los-Angeles,California-c16078/2026-08-15/2026-08-22?sort=rank_a"
  ],
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

All validated Kayak car rental provider offers returned by this run.

## `runSummary` (type: `string`):

Machine-readable run outcome and counters.

## `output` (type: `string`):

Stable output object with outcome and dataset link.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "pickupLocation": "Los Angeles, CA",
    "driverAge": 30,
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("khadinakbar/kayak-car-rental-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "pickupLocation": "Los Angeles, CA",
    "driverAge": 30,
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("khadinakbar/kayak-car-rental-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "pickupLocation": "Los Angeles, CA",
  "driverAge": 30,
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call khadinakbar/kayak-car-rental-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,khadinakbar/kayak-car-rental-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/p3KwBshIS1NWnlukA/builds/DuhlTRT69jX0pGuae/openapi.json
