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

TocToc Agency API

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

TocToc Agency API returns the profile of a developer or broker: name, logo, tax id, address and the company contact data that the profile page shows to every visitor (empty fields are null), plus the first listings of the agency. Pass agency_id and agency_type from the agencies route, or the url of an entry. An unknown agency returns a 404 error. Failed requests are not billed.

TocToc Agency API 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/toctoc/agency
Auth header
x-api-key
Cost
1 credit/request
Response preview
200 OK
{
    "data": {
        "agency": {
            "id": "6a5e3173141f614cf4f1fb67",
            "logo": "https://d1cfu8v5n1wsm.cloudfront.net/toctoc/logos/empresa/4372/2026042721188719068.jpg",
            "name": "AMA Inmobiliaria",
            "slug": "ama-inmobiliaria",
            "type": "developer",
            "tax_id": null,
            "address": null,
            "contact": {
                "name": "AMA Inmobiliaria",
                "email": null,
                "phone": null,
...

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.

3 optional filters available.

agency_id string Optional

The id of an agency from the agencies route (24 characters). Send it with agency_type.

Example value 1234567890
agency_type string Optional

developer or broker.

Example value example
url string Optional
Open example

The url of an agency from the agencies route. Use it instead of agency_id and agency_type.

Example value https://example.com/product

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": {
        "agency": {
            "id": "6a5e3173141f614cf4f1fb67",
            "logo": "https://d1cfu8v5n1wsm.cloudfront.net/toctoc/logos/empresa/4372/2026042721188719068.jpg",
            "name": "AMA Inmobiliaria",
            "slug": "ama-inmobiliaria",
            "type": "developer",
            "tax_id": null,
            "address": null,
            "contact": {
                "name": "AMA Inmobiliaria",
                "email": null,
                "phone": null,
                "landline": null
            },
            "commune_id": null
        },
        "listings": [
            {
                "id": 4142922,
                "url": "https://www.toctoc.com/venta/departamento/metropolitana/la-florida/r_c912c1715c90e0b6e64549a7da00d1a629c5f153",
                "price": {
                    "uf": 2540,
                    "amount": 2540,
                    "currency": "UF"
                },
                "title": "AMA Quillayes",
                "area_m2": 35.5,
                "commune": "La Florida",
                "bedrooms": 1,
                "bathrooms": 1,
                "operation": "Venta Nuevo",
                "main_image": "https://d1cfu8v5n1wsm.cloudfront.net/toctoc/fotos/20260421/4142922/n_wm_2026042123439854403.webp",
                "listing_type": "sale",
                "property_type": "Departamento",
                "published_ago": "Publicado hace 6 meses"
            }
        ],
        "listings_total": 1
    },
    "meta": {
        "billable": true,
        "endpoint_family": "agency"
    },
    "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": {
        "agency_id": [
            "Send agency_id and agency_type from the agencies route, or its url."
        ]
    },
    "message": "The request validation failed"
}
404

Not Found

The agency was not found. This response is not billed.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "agency"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested resource was not found."
    },
    "success": false
}
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": "agency"
    },
    "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.