# Adondevivir Agency Profile API Documentation

Read the public profile of one agency or publisher: id, name, logo and type, and the listings it has online in the same shape as /search. Use the publisher id or the publisher url of any listing. A page holds up to 30 listings. A page past the last page returns an empty list with page_out_of_range true. The agency name and logo come from its listings, so an agency with no listings online returns an empty list and no name. Phone numbers are never returned. An unknown agency is a non-billable 404.

- **Documentation:** [https://scrappa.co/docs/adondevivir-api/adondevivir_agency](https://scrappa.co/docs/adondevivir-api/adondevivir_agency)
- **API group:** Adondevivir API
- **Endpoint:** `GET https://scrappa.co/api/adondevivir/agency`

## 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 |
| --- | --- | --- | --- |
| `id` | integer | No | Publisher id such as 50007827, taken from publisher.id of a listing. Use id or url. |
| `url` | string | No | Agency url from publisher.url of a listing. Use id or url. |
| `page` | integer | No | One-based page number. Defaults to 1. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/adondevivir/agency?id=50007827"
```

## Example response

```json
{
    "success": true,
    "data": {
        "id": "50007827",
        "name": "ALPHA GESTION INMOBILIARIA",
        "logo": "https://img10.naventcdn.com/empresas/111/00/51/36/20/10/130x70/logo_alpha-gestion-inmobiliaria_1712070311691.jpg",
        "type_id": "4",
        "url": "https://www.adondevivir.com/inmobiliarias/alpha-gestion-inmobiliaria_50007827-inmuebles.html",
        "is_premier": false,
        "listings": [
            {
                "id": "150626898",
                "posting_code": "65SN6I",
                "title": "Hermosa Casa de Car\u00e1cter en Zona Residencial de Miraflores",
                "subtitle": "Casa \u00b7 364m\u00b2 \u00b7 5 Dormitorios",
                "url": "https://www.adondevivir.com/propiedades/clasificado/veclcain-hermosa-casa-de-caracter-en-zona-residencial-de-150626898.html",
                "posting_type": "PROPERTY",
                "description": "Original construcci\u00f3n de los a\u00f1os 1998 estilo europea con 322M2 de terreno, cuenta con amplia Y iluminada sala Y amplio comedor + ba\u00f1o de visita, por un lado un...",
                "property_type": {
                    "id": "1",
                    "name": "Casas"
                },
                "operation": {
                    "id": "1",
                    "name": "Venta"
                },
                "prices": [
                    {
                        "amount": 2482000,
                        "formatted_amount": "2,482,000",
                        "currency": "S/",
                        "iso_code": "PEN"
                    },
                    {
                        "amount": 730000,
                        "formatted_amount": "730,000",
                        "currency": "USD",
                        "iso_code": "USD"
                    }
                ],
                "features": {
                    "land_area_m2": 512,
                    "built_area_m2": 364,
                    "bedrooms": 5,
                    "bathrooms": 3,
                    "age": 28
                },
                "other_features": [],
                "development": [],
                "coordinates": {
                    "lat": -12.1267856,
                    "lon": -77.010184
                },
                "address": "CALLE BRUNO MOLL",
                "location": {
                    "zone": {
                        "id": "V1-D-119497",
                        "name": "Miraflores"
                    },
                    "city": {
                        "id": "V1-C-3129",
                        "name": "Lima"
                    },
                    "state": {
                        "id": "V1-B-368",
                        "name": "Lima"
                    },
                    "country": {
                        "id": "V1-A-11",
                        "name": "Peru"
                    },
                    "location_ids": [
                        "V1-D-119497",
                        "V1-C-3129",
                        "V1-B-368",
                        "V1-A-11"
                    ]
                },
                "publisher": {
                    "id": "50007827",
                    "name": "ALPHA GESTION INMOBILIARIA",
                    "url": "https://www.adondevivir.com/inmobiliarias/alpha-gestion-inmobiliaria_50007827-inmuebles.html",
                    "logo": "https://img10.naventcdn.com/empresas/111/00/51/36/20/10/130x70/logo_alpha-gestion-inmobiliaria_1712070311691.jpg",
                    "type_id": "4",
                    "is_premier": false
                },
                "images": [
                    {
                        "url": "https://img10.naventcdn.com/avisos/111/01/50/62/48/66/720x532/1622100057.jpg?rapc=bXZhX2ltYWdl?isFirstImage=true",
                        "width": null,
                        "height": null
                    },
                    {
                        "url": "https://img10.naventcdn.com/avisos/111/01/50/62/48/66/720x532/1622100058.jpg?rapc=bXZhX2ltYWdl",
                        "width": null,
                        "height": null
                    }
                ],
                "has_videos": false,
                "has_tour": false,
                "highlighted_features": [],
                "published_at": null,
                "modified_at": "2026-10-03T00:00:00-0400",
                "is_premier": false,
                "status": "ONLINE",
                "expenses": null,
                "is_development": false
            }
        ],
        "total": 51,
        "current_page": 1,
        "total_pages": 2,
        "per_page": 30,
        "page_out_of_range": false
    },
    "meta": {
        "endpoint_family": "agency",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A public parameter is missing or invalid. The response is not billable. |
| 404 | Resource Not Found | The requested Adondevivir resource does not exist. The response is not billable. |
| 503 | Unexpected Upstream Response | Adondevivir answered with a body that is not the documented shape. The response is not billable. |
| 503 | Upstream Unavailable | Adondevivir was temporarily unavailable or blocked the request. The response is not billable and the request never answers 429. |

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