Skip to content
Scrappa Get API key
OpenRent API 1 credit/request

OpenRent Autocomplete API Documentation

GET https://scrappa.co/api/openrent/autocomplete

OpenRent Autocomplete API suggests up to ten place names and postcodes for a partial query. Pass a suggestion as the location of the search endpoint. A valid query with no suggestions returns an empty list.

OpenRent Autocomplete API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/openrent/autocomplete
Auth header
x-api-key
Cost
1 credit/request
query = coffee shops
Response preview
200 OK
{
    "data": {
        "query": "manch",
        "suggestions": [
            {
                "slug": "manchester",
                "term": "Manchester",
                "label": "Manchester"
            },
            {
                "slug": "bolton-greater-manchester",
                "term": "Bolton, Greater Manchester",
                "label": "Bolton, Greater Manchester"
            },
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

query string Required

Partial place name or postcode, e.g. manch.

Example value coffee shops

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "query": "manch",
        "suggestions": [
            {
                "slug": "manchester",
                "term": "Manchester",
                "label": "Manchester"
            },
            {
                "slug": "bolton-greater-manchester",
                "term": "Bolton, Greater Manchester",
                "label": "Bolton, Greater Manchester"
            },
            {
                "slug": "stockport-greater-manchester",
                "term": "Stockport, Greater Manchester",
                "label": "Stockport, Greater Manchester"
            }
        ]
    },
    "meta": {
        "billable": true,
        "duration_ms": 640,
        "endpoint_family": "autocomplete"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A public parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "query": [
            "The query field is required."
        ]
    },
    "message": "The request validation failed"
}
503

Service Unavailable

OpenRent is temporarily unavailable. This response is not billable and can be retried.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "duration_ms": 4200,
        "endpoint_family": "autocomplete"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "OpenRent is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.