# Rentalia Search

Deprecated. Rentalia discontinued the upstream holiday-rental search API, so this endpoint answers 410 Gone without an upstream call. Use Idealista vacationRentals for holiday-rental search, or the Rentalia house, locations, and price endpoints.

- **Documentation:** [https://scrappa.co/docs/rentalia-api/rentalia_search](https://scrappa.co/docs/rentalia-api/rentalia_search)
- **API group:** Rentalia API
- **Endpoint:** `GET https://scrappa.co/api/rentalia/search`

## 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 |
| --- | --- | --- | --- |
| `lang` | string | No | Response language, default es. |
| `gid` | string | No | Rentalia region id from the locations endpoint. |
| `glevel` | integer | No | Region geolevel. |
| `page` | integer | No | 1-based page. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/rentalia/search?lang=es&gid=14&glevel=3"
```

## Example response

```json
{
    "success": false,
    "error": {
        "code": "ENDPOINT_DEPRECATED",
        "message": "Rentalia search is no longer available because Rentalia discontinued its upstream search API. The house, locations, and price endpoints remain available."
    },
    "meta": {
        "endpoint_family": "search",
        "billable": false,
        "retryable": false
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 410 | Gone | Rentalia discontinued its upstream search API, so this endpoint is retired and never billable. |
| 404 | Not Found | The requested house was not found. This response is not billable. |
| 422 | Validation Error | A public parameter is invalid. This response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result. This response is not billable. |

## 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)
