Skip to main content
Use POST /web/scrape with formats.parse: true and parseParams: {"type": "prebuilt", "parser": "car-rental-locations"}. Read the result in parsed.data, with parsed.type: "car-rental-locations". 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 an HTTPS avis.com or budget.com locations URL with the search in keyword: https://www.avis.com/en/locations?keyword=Frankfurt. The keyword is anything the site’s own location box accepts: a city, an airport code such as LAX, or a postcode. q works as an alias for keyword. The brand comes from the host.
Up to 50 branches are returned, in the order the site suggests them. Each branch’s location_code is what the Car rental availability parser needs in pickup_location_code and return_location_code. The site’s search is loose with accents: Sao Paulo finds branches where São Paulo finds none. Use the plain spelling.

Output

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

Location fields

type is the site’s branch kind: AIRPORT, NEIGHBOURHOOD, or TRUCK. state is null outside countries that use one. country is a two-letter code. hours lists the weekly opening hours starting on Sunday, with open and close as 24-hour HH:mm local times. A closed day has open and close set to null. Branches without published hours return an empty list. Illustrative parsed.data with one branch:
A keyword the site does not recognize returns locations: [].

Errors and request options

URLs that are not an Avis or Budget locations page, or that have an empty keyword, fail with INPUT_VALIDATION_ERROR. 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 branch data 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.