# Rentalcars Flexible Prices API Documentation

<p>Get a price calendar for an airport. Each entry has a pickup date, a dropoff date, a predicted price and the currency, for the rental length you choose. Only airports work here, so use a 3-letter IATA code. The date window can be at most 60 days. A code that is not an airport returns 200 with an empty prices array. This response is not billed. The market (cor) and the currency decide the prices. The response echoes both values in the market object. Scrappa is not affiliated with Rentalcars.com. This is an unofficial API.</p>

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

## 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 |
| --- | --- | --- | --- |
| `iata` | string | Yes | Airport code with 3 letters. Example: BER. |
| `start_date` | string | Yes | First pickup date in Y-m-d format. |
| `end_date` | string | Yes | Last pickup date in Y-m-d format. |
| `rental_days` | integer | No | Length of the rental, from 1 to 30 days. Default: 3. |
| `language` | string | No | Language code. Default: en. |
| `cor` | string | No | Country of residence as a 2-letter code. Default: gb. |
| `currency` | string | No | Currency code for prices. Default: EUR. |

## Example response

```json
{
    "meta": {
        "attempts": 1,
        "duration_ms": 2,
        "endpoint_family": "flexible_prices"
    },
    "prices": [
        {
            "currency": "EUR",
            "pickup_date": "2026-11-20",
            "dropoff_date": "2026-11-23",
            "predicted_price": 72.39
        },
        {
            "currency": "EUR",
            "pickup_date": "2026-11-27",
            "dropoff_date": "2026-11-30",
            "predicted_price": 72.69
        },
        {
            "currency": "EUR",
            "pickup_date": "2026-11-28",
            "dropoff_date": "2026-12-01",
            "predicted_price": 75.99
        }
    ],
    "search_parameters": {
        "iata": "BER",
        "engine": "rentalcars_flexible_prices",
        "market": "gb",
        "currency": "EUR",
        "end_date": "2026-11-08",
        "start_date": "2026-10-29",
        "rental_days": 3
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. No request is made upstream. Not billed. |
| 422 | Request Rejected | Rentalcars rejected the search values, for example a filter value that is not in available_filters. 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)
