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

Imovelweb Polygon API Documentation

GET https://scrappa.co/api/imovelweb/polygon

Imovelweb Polygon API returns the GeoJSON outline (MultiPolygon, longitude then latitude) of a neighborhood, city or state. Use it to draw a search area on a map. Pass a location id from the autocomplete route. An unknown id returns 404 and is not billed.

Imovelweb Polygon API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/imovelweb/polygon
Auth header
x-api-key
Cost
1 credit/request
location = Austin, Texas
Response preview
200 OK
{
    "data": {
        "type": "zone",
        "geometry": {
            "type": "MultiPolygon",
            "coordinates": [
                [
                    [
                        [
                            -46.69113979499997,
                            -23.546079476999974
                        ],
                        [
                            -46.68939270299995,
...

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.

location string Required

Location id from the autocomplete route. Example: V1-Z-52.

Example value Austin, Texas

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": {
        "type": "zone",
        "geometry": {
            "type": "MultiPolygon",
            "coordinates": [
                [
                    [
                        [
                            -46.69113979499997,
                            -23.546079476999974
                        ],
                        [
                            -46.68939270299995,
                            -23.547561754999947
                        ],
                        [
                            -46.682607287999986,
                            -23.553396801999952
                        ]
                    ]
                ]
            ]
        },
        "location": "V1-Z-52"
    },
    "meta": {
        "billable": true,
        "endpoint_family": "polygon"
    },
    "success": true
}

Errors

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

422

Validation Error

A parameter is missing or outside its allowed values. This response is not billable.

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

Not Found

The location has no outline. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "polygon"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested resource was not found."
    },
    "success": false
}
503

Upstream Unavailable

Imovelweb could not be reached, or returned data that does not match the expected shape. Retry shortly. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "polygon"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "Imovelweb could not be reached. Please retry shortly."
    },
    "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.