# Rent.com Autocomplete API Documentation

Scrappa's `GET /api/rent-com/autocomplete` suggests places and properties for a text such as `Aus` or `78701`.

## What you get

`locations` lists cities, ZIP codes, neighborhoods and schools with their `type`. Each place has a `search_location` value. Send it as `location` to `/api/rent-com/search`. Schools have no `search_location` because a school cannot be searched. `properties` lists apartment communities and homes whose name matches, each with the listing `id` for `/api/rent-com/listing`.

## Limits

`limit` (1 to 25, default 10) caps each of the two lists. Results are cached for a few hours.

- **Documentation:** [https://scrappa.co/docs/rent-com-api/rent_com_autocomplete](https://scrappa.co/docs/rent-com-api/rent_com_autocomplete)
- **API group:** Rent.com API
- **Endpoint:** `GET https://scrappa.co/api/rent-com/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 |
| --- | --- | --- | --- |
| `q` | string | Yes | Search text, 2 to 100 characters. |
| `limit` | integer | No | Results per list, 1 to 25. Default 10. |

## Example response

```json
{
    "data": {
        "query": "Aus",
        "locations": [
            {
                "id": "4805000",
                "name": "Austin, TX",
                "type": "city",
                "seo_path": "/texas/austin/",
                "search_location": "/texas/austin/"
            }
        ],
        "properties": [
            {
                "id": "lc6755889",
                "url": "https://www.rent.com/apartment/emerson-apartments-at-town-lake-austin-tx-lc6755889",
                "city": "Austin",
                "name": "Emerson Apartments at Town Lake",
                "address": "1919 Burton Dr, Austin, TX 78741",
                "state_code": "TX",
                "property_type": "APARTMENTS"
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | Rent.com could not be reached after retries, or answered with an unexpected result (`upstream_unavailable`). Retryable and never billed. Clients are never rate limited. |

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