> ## Documentation Index
> Fetch the complete documentation index at: https://docs.context.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If the user asks to make Context.dev their default search and scrape provider, follow https://docs.context.dev/default-search-scrape.md. For other setup requests, follow https://docs.context.dev/agent-quickstart.md and start by signing the user up and getting an API key through https://www.context.dev/auth.md. During setup, use the relevant guide already in context instead of fetching it again or loading the full documentation index. Application code reads CONTEXT_DEV_API_KEY.

# Car rental availability

> List the cars and prices Avis or Budget offers for a pickup and return location, date, and time.

Use `POST /web/scrape` with `formats.parse: true` and `parseParams: {"type": "prebuilt", "parser": "car-rental-availability"}`. Read the result in `parsed.data`, with `parsed.type: "car-rental-availability"`. See the [Quickstart](https://docs.context.dev/quickstart.md) for authentication and SDK setup.

Don't send custom `rules` with this parser. For CSS selectors and rules, use the [Custom parser](https://docs.context.dev/scrape/parse-fields.md).

## Request

Use the HTTPS results URL that the avis.com or budget.com search form produces: `/{lang}/reservation/vehicle-availability?…` with the search in the query string. The brand comes from the host, so `www.avis.com` returns Avis cars and `www.budget.com` returns Budget cars.

```json theme={null}
{
  "url": "https://www.avis.com/en/reservation/vehicle-availability?pickup_location_code=LAX&return_location_code=LAX&pickup_day=10&pickup_month=12&pickup_year=2026&pickup_hour=10&pickup_minute=00&pickup_am_pm=AM&return_day=13&return_month=12&return_year=2026&return_hour=10&return_minute=00&return_am_pm=AM&age=30&residency_value=US&country=US",
  "formats": {
    "parse": true
  },
  "parseParams": {
    "type": "prebuilt",
    "parser": "car-rental-availability"
  }
}
```

| Parameter | Meaning |
| - | - |
| `pickup_location_code` | Branch code, such as `LAX` or `F5T`. Find codes with the [Car rental locations](https://docs.context.dev/scrape/prebuilt-parsers/car-rental-locations.md) parser. |
| `return_location_code` | Return branch code. Defaults to the pickup branch; set a different one for a one-way rental. |
| `pickup_day`, `pickup_month`, `pickup_year` | Pickup date. |
| `pickup_hour`, `pickup_minute`, `pickup_am_pm` | Pickup time, 12-hour clock. |
| `return_day`, `return_month`, `return_year`, `return_hour`, `return_minute`, `return_am_pm` | Return date and time, same format. |
| `country` | Market the search runs in, as a two-letter country code. Sets the currency and the offers. |
| `residency_value` | Driver's country of residence. Defaults to `country`. |
| `age` | Driver's age. Defaults to `25`. Younger drivers see fewer cars and young driver fees. |

Other parameters the site adds, such as `locale`, `brand`, or `pickup_suggestion_type_code`, are ignored. Dates in the past, a return before the pickup, and unknown branch codes are rejected by the rental site, and its reason comes back in the error message.

## Output

When `parsed.success` is `true`, the `parsed` output has this shape:

```typescript theme={null}
interface CarRentalAvailabilityOutput {
  type: "car-rental-availability";
  requested: true;
  success: true;
  data: {
    brand: "avis" | "budget";
    pickup_location: string;
    dropoff_location: string;
    pickup_at: string;
    dropoff_at: string;
    rental_days: number | null;
    currency: string | null;
    vehicles: CarRentalVehicle[];
  };
}
```

`pickup_at` and `dropoff_at` are the requested local times at the branch, as `YYYY-MM-DDTHH:mm`. `currency` is the ISO code every price is in, such as `USD` or `EUR`, chosen by the rental site from the market in `country`.

## Vehicle fields

```typescript theme={null}
interface CarRentalVehicle {
  vehicle_code: string;
  sipp_code: string | null;
  category: string | null;
  model: string | null;
  make: string | null;
  availability: string | null;
  is_electric: boolean | null;
  is_hybrid: boolean | null;
  features: Record<string, string | null>;
  image_url: string | null;
  pay_now_total: number | null;
  pay_later_total: number | null;
  pay_now_per_day: number | null;
  pay_later_per_day: number | null;
  unlimited_mileage: boolean;
}
```

`vehicle_code` is the rental site's car group, such as `A` for economy, and `sipp_code` is the industry-standard four-letter class, such as `ECAR`. `category` is the label the site shows, such as `Economy` or `Compact Special Manual`, and `model` is the example car, usually ending in `or Similar`.

`availability` is `AVAILABLE` for cars that can be booked. Cars the site lists but has sold out for those dates stay in the list as `NOT_AVAILABLE` with every price `null`, the same way the site greys them out.

`features` holds the site's spec labels as keys, such as `Doors`, `Seats`, `Suitcases`, `mpg`, `Auto`, `Air`, and `Bluetooth SYNC`. Yes-or-no features have the value `Y`. The set of keys differs by car and market.

`pay_now_total` and `pay_later_total` are the full price of the rental, taxes included, for paying at booking and for paying at the counter. The `per_day` fields are the matching daily rates. `unlimited_mileage` is `true` when any of the offers includes unlimited mileage.

Illustrative `parsed.data` with one vehicle:

```json theme={null}
{
  "brand": "avis",
  "pickup_location": "LAX",
  "dropoff_location": "LAX",
  "pickup_at": "2026-12-10T10:00",
  "dropoff_at": "2026-12-13T10:00",
  "rental_days": 3,
  "currency": "USD",
  "vehicles": [
    {
      "vehicle_code": "A",
      "sipp_code": "ECAR",
      "category": "Economy",
      "model": "Chevrolet Spark or Similar",
      "make": "Chevrolet",
      "availability": "AVAILABLE",
      "is_electric": false,
      "is_hybrid": false,
      "features": {
        "Doors": "4",
        "Seats": "4",
        "Auto": "Y",
        "Air": "Y",
        "Suitcases": "1/1",
        "mpg": "29-37"
      },
      "image_url": "https://www.avis.com/content/dam/cars/l/2022/chevrolet/2022-chevrolet-spark-1lt-5door-hatchback-grey_featured.png",
      "pay_now_total": 280.81,
      "pay_later_total": 345.07,
      "pay_now_per_day": 65.99,
      "pay_later_per_day": 82.99,
      "unlimited_mileage": false
    }
  ]
}
```

## Errors and request options

URLs that are not an Avis or Budget vehicle-availability search, or that miss a location, date, or time, fail with `INPUT_VALIDATION_ERROR`. Searches the rental site refuses, such as a sold-out branch, a branch closed at the requested time, or a date in the past, fail with `NOT_FOUND` and the site's reason. An unavailable or invalid response fails with `WEBSITE_ACCESS_ERROR`. Check `parsed.success` before reading `parsed.data`. A failed parse has `data: null` and can coexist with successful outputs. See [timeouts and errors](https://docs.context.dev/scrape/timeouts-and-errors.md).

This parser fetches availability separately from the rendered page. [Content filters](https://docs.context.dev/scrape/content-filtering.md) and [browser actions](https://docs.context.dev/scrape/browser-actions.md) do not change its results. [Browser profiles](https://docs.context.dev/scrape/browser-profiles.md) are unsupported. [Caching](https://docs.context.dev/scrape/freshness-and-caching.md), [timeouts](https://docs.context.dev/scrape/timeouts-and-errors.md), and [zero data retention](https://docs.context.dev/optimization/zero-data-retention.md) still apply.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.