# Wikicasa Agency Listings API Documentation

Scrappa's `GET /api/wikicasa/agency/listings` lists the properties one agency has online, for sale and for rent, 25 per page.

Items have the same shape as the search items. Every item belongs to the requested agency. `sort` is most_recent (default), price_asc, price_desc or area_desc. `meta.page` always equals the page you asked for.

- **Documentation:** [https://scrappa.co/docs/wikicasa-api/wikicasa_agency_listings](https://scrappa.co/docs/wikicasa-api/wikicasa_agency_listings)
- **API group:** Wikicasa API
- **Endpoint:** `GET https://scrappa.co/api/wikicasa/agency/listings`

## 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 |
| --- | --- | --- | --- |
| `agency_id` | integer | Yes | Numeric agency id, for example 133369. |
| `page` | integer | No | Result page, 1-based. Default: 1. |
| `sort` | string | No | most_recent (default), price_asc, price_desc or area_desc. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/wikicasa/agency/listings?agency_id=133369"
```

## Example response

```json
{
    "success": true,
    "data": {
        "count": 8,
        "items": [
            {
                "id": 31209219,
                "url": "https://www.wikicasa.it/annuncio/31209219",
                "title": "Bilocale in Viale Monte Nero, Milano",
                "description": "Montenero vendiamo in esclusiva ottimo bilocale piu servizi, ingresso soggiorno con cucinotto, camera da letto matrimoniale, bagno, cantina.",
                "transaction": "sale",
                "price": 460000,
                "price_sale": 460000,
                "price_rent": null,
                "original_price": null,
                "price_reserved": false,
                "currency": "EUR",
                "area_sqm": 55,
                "rooms": 2,
                "bathrooms": 1,
                "address": "Viale Monte Nero",
                "zone": "Porta Romana, Sabotino, Muratori, Cadore, Montenero, Cinque Giornate",
                "city": "Milano",
                "city_id": 15146,
                "latitude": 45.4569,
                "longitude": 9.2051,
                "typology_id": 1,
                "macro_typology_id": 1,
                "condition": "refurbished",
                "energy_class": "D",
                "flags": {
                    "garden": false,
                    "luxury": false,
                    "recent": true,
                    "opportunity": false,
                    "furnished": true,
                    "bare_ownership": false,
                    "short_rent": false
                },
                "auction": {
                    "is_auction": false,
                    "days_left": null,
                    "discount_percent": null
                },
                "published_at": "2026-10-26",
                "image": "https://images.wk-cdn.it/3790b1dec9e72e38f05336c59c9e3b34c36e2f0eb056e4682d5263cdf5e762a6//original",
                "floor_plan_count": 0,
                "virtual_tour_url": null,
                "project_units": 0,
                "agency": {
                    "id": 59246,
                    "name": "REIA Association of Italian Real Estate Agents",
                    "city": "Milano",
                    "latitude": 45.4563735,
                    "longitude": 9.1530444,
                    "premium": false,
                    "image_id": 1266737544
                },
                "agent": null
            }
        ]
    },
    "meta": {
        "endpoint_family": "agency_listings",
        "billable": true,
        "page": 1,
        "per_page": 25,
        "has_more": false,
        "filtered_out": 0
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing, unknown or unusable. Unknown parameters and unknown values are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | Wikicasa could not be reached, refused the request or answered with data this API could not read (`UPSTREAM_UNAVAILABLE`). Retryable and never billed. Clients are never rate limited. |

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