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 for authentication and SDK setup.
Don’t send custom rules with this parser. For CSS selectors and rules, use the Custom parser.
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.
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
Whenparsed.success is true, the parsed output has this shape:
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
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:
Errors and request options
URLs that are not an Avis or Budget vehicle-availability search, or that miss a location, date, or time, fail withINPUT_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.
This parser fetches availability separately from the rendered page. Content filters and browser actions do not change its results. Browser profiles are unsupported. Caching, timeouts, and zero data retention still apply.