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

TocToc Search API

GET https://scrappa.co/api/toctoc/search

TocToc Search API returns Chilean homes for sale or for rent as JSON, 20 per page by default. Send region_id, commune_id or both (use the autocomplete route to find them). Filter by property type, state, publisher type, agency, price in UF or pesos, bedrooms, bathrooms and useful area. Sort by relevance, price or publication date. Every item has the price in UF and pesos, rooms and area as numbers or min and max ranges, commune and region with lat and lng, up to 40 photos, the url, the publishing agency, offer data, views and publication age in hours.

Filters are never ignored. A result that breaks a requested filter is refused as a whole with a 503 error. An item with an empty value for a requested filter, such as an unknown area, is not returned and is counted in pagination.filtered_out. A page is never labelled as another page. A page past the last one returns an empty list.

Good to know. New projects show a range for rooms and area and a starting price. A filter matches a project when its range overlaps the filter. Failed requests are not billed.

TocToc Search API 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/toctoc/search
Auth header
x-api-key
Cost
1 credit/request
Response preview
200 OK
{
    "data": {
        "items": [
            {
                "id": 1982996,
                "url": "https://www.toctoc.com/venta/departamento/metropolitana/santiago/r_4061d7a340b5f34bf688ec6c1eb1475a8ef0f417",
                "badge": null,
                "offer": null,
                "price": {
                    "uf": 3125,
                    "clp": 128799281,
                    "listed_in": "UF"
                },
                "title": "Edificio Rosas 1444",
...

Parameters

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

Runnable path

This endpoint has no required query parameters.

20 optional filters available.

operation string Optional

sale (default) or rent.

Example value example
region_id integer Optional

Region id from the autocomplete route. Send region_id, commune_id or both.

Example value 1234567890
commune_id integer Optional

Commune id from the autocomplete route.

Example value 1234567890
property_type string Optional

house, apartment, office, commercial, land, plot, storage or parking.

Example value example
state string Optional

new or used. Sale only.

Example value example
publisher_type string Optional

professional (brokers and developers) or private.

Example value example
agency string Optional

Exact agency name as returned by the agencies route. A name with no exact match returns a 422 error.

Example value example
agency_type string Optional

broker or developer. Only needed when a broker and a developer share one name.

Example value example
currency string Optional

Currency of the price filter: uf (default for sale) or clp (default for rent).

Example value USD
min_price number Optional

Minimum price in the chosen currency.

Example value 10
max_price number Optional

Maximum price in the chosen currency.

Example value 10
min_bedrooms integer Optional

Minimum bedrooms. 0 is a studio.

Example value 10
max_bedrooms integer Optional

Maximum bedrooms.

Example value 10
min_bathrooms integer Optional

Minimum bathrooms.

Example value 10
max_bathrooms integer Optional

Maximum bathrooms.

Example value 10
min_area number Optional

Minimum useful area in square meters.

Example value 10
max_area number Optional

Maximum useful area in square meters.

Example value 10
sort string Optional

relevance (default), price_asc, price_desc, newest or oldest.

Example value relevance
page integer Optional

One-based page number, 1 to 500 (default 1).

Example value 1
limit integer Optional

Listings per page, 1 to 50 (default 20).

Example value 10

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": {
        "items": [
            {
                "id": 1982996,
                "url": "https://www.toctoc.com/venta/departamento/metropolitana/santiago/r_4061d7a340b5f34bf688ec6c1eb1475a8ef0f417",
                "badge": null,
                "offer": null,
                "price": {
                    "uf": 3125,
                    "clp": 128799281,
                    "listed_in": "UF"
                },
                "title": "Edificio Rosas 1444",
                "views": 0,
                "agency": {
                    "id": 59,
                    "logo": "https://d1cfu8v5n1wsm.cloudfront.net/toctoc/logos/empresa/59/2026082042328934803.jpg",
                    "name": "Euroinmobiliaria",
                    "type": "developer"
                },
                "images": [
                    "https://d1cfu8v5n1wsm.cloudfront.net/toctoc/fotos/20220330/1982996/2022033020268707763.jpg",
                    "https://d1cfu8v5n1wsm.cloudfront.net/toctoc/fotos/20220330/1982996/2022033023475177916.jpg",
                    "https://d1cfu8v5n1wsm.cloudfront.net/toctoc/fotos/20220330/1982996/2022033023481427853.jpg"
                ],
                "area_m2": {
                    "max": 49.33,
                    "min": 29
                },
                "hash_id": "4061d7a340b5f34bf688ec6c1eb1475a8ef0f417",
                "bedrooms": {
                    "max": 2,
                    "min": 1
                },
                "location": {
                    "region": "Metropolitana",
                    "commune": "Santiago",
                    "commune_id": 339,
                    "coordinates": {
                        "lat": -33.435794,
                        "lng": -70.6577694
                    }
                },
                "bathrooms": {
                    "max": 2,
                    "min": 1
                },
                "condition": "new",
                "operation": "Venta Nuevo",
                "main_image": "https://d1cfu8v5n1wsm.cloudfront.net/toctoc/fotos/20220330/1982996/2022033020268707763.jpg",
                "description": "Departamentos de 1 y 2 dormitorios con todas las bondades y beneficios de un edificio multifamily, con terminaciones de mayor calidad y durabilidad, amplios y c\u00f3modos espacios comunes y sistema de seguridad de alto nivel. - Piso porcelanato",
                "is_featured": false,
                "listing_type": "sale",
                "property_type": "Departamento",
                "published_hours_ago": 40101
            }
        ],
        "pagination": {
            "page": 1,
            "total": 6986,
            "per_page": 20,
            "total_pages": 350,
            "filtered_out": 0,
            "has_next_page": true
        },
        "applied_filters": {
            "sort": "relevance",
            "operation": "sale",
            "region_id": 13,
            "commune_id": 339,
            "property_type": "apartment"
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "search"
    },
    "success": true
}

Errors

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

422

Validation Error

A parameter is missing or invalid. This response is not billed.

{
    "errors": {
        "region_id": [
            "Send region_id or commune_id. Use the autocomplete route to find them."
        ]
    },
    "message": "The request validation failed"
}
503

Upstream Unavailable

TocToc could not be reached or returned data that does not match the request. This response is not billed and can be retried.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "search"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "TocToc 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.