# Rentalcars Autocomplete API Documentation

<p>Find airports, cities, districts and landmarks for a search text. Each result has the place type, name, IATA code, city, region, country and coordinates. Use the IATA code or the coordinates as pickup_location in the search. Scrappa is not affiliated with Rentalcars.com. This is an unofficial API.</p>

- **Documentation:** [https://scrappa.co/docs/rentalcars-api/rentalcars_autocomplete](https://scrappa.co/docs/rentalcars-api/rentalcars_autocomplete)
- **API group:** Rentalcars API
- **Endpoint:** `GET https://scrappa.co/api/rentalcars/autocomplete`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `term` | string | Yes | Search text with 2 to 120 characters. Example: Berlin. |
| `language` | string | No | Language of the place names. Default: en. |
| `cor` | string | No | Country of residence as a 2-letter code. Default: gb. |

## Example response

```json
{
    "meta": {
        "attempts": 1,
        "duration_ms": 21,
        "endpoint_family": "autocomplete"
    },
    "results": [
        {
            "city": "Berlin",
            "iata": "BER",
            "name": "Berlin Brandenburg Airport Willy Brandt",
            "region": "Berlin Federal State",
            "country": "Germany",
            "latitude": 52.362998962402344,
            "longitude": 13.510000228881836,
            "is_airport": true,
            "place_type": "A",
            "country_code": "DE",
            "search_location": "BER"
        },
        {
            "city": "Berlin",
            "iata": null,
            "name": "Berlin",
            "region": "Berlin Federal State",
            "country": "Germany",
            "latitude": 52.516212463378906,
            "longitude": 13.37681770324707,
            "is_airport": false,
            "place_type": "C",
            "country_code": "DE",
            "search_location": "52.516212,13.376818"
        },
        {
            "city": "Berlin",
            "iata": null,
            "name": "Berlin City Centre",
            "region": "Berlin Federal State",
            "country": "Germany",
            "latitude": 52.51766586303711,
            "longitude": 13.37468147277832,
            "is_airport": false,
            "place_type": "D",
            "country_code": "DE",
            "search_location": "52.517666,13.374681"
        }
    ],
    "search_parameters": {
        "term": "Berlin",
        "engine": "rentalcars_autocomplete",
        "market": "gb",
        "language": "en"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. No request is made upstream. Not billed. |
| 503 | Rentalcars Temporarily Unavailable | Rentalcars did not answer in time. Retry after a short pause. Other 503 codes start with rentalcars_ too, for example rentalcars_invalid_response. Not billed. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
