# Wikicasa Agency Agents API Documentation

Scrappa's `GET /api/wikicasa/agency/agents` lists the agents an agency shows on its public Wikicasa profile.

Each agent has `id`, `name`, `surname`, `title`, `rea` (the Italian agent register number), `phone`, `description`, `website`, social links, `image_url` and `listing_count`. E-mail addresses are not returned. An agency without agents gives an empty list.

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

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

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "data": {
        "agency_id": 133369,
        "agents": [
            {
                "id": 26730,
                "name": "Veronica",
                "surname": "Rismondo",
                "title": "Rappresentante Legale",
                "rea": "RM-1697086",
                "phone": "3473859807",
                "description": null,
                "website": "http://www.incentro-case.it",
                "facebook_url": "https://www.facebook.com/incentrocaseroma",
                "instagram_url": null,
                "linkedin_url": null,
                "image_url": null,
                "listing_count": 0
            }
        ]
    },
    "meta": {
        "endpoint_family": "agency_agents",
        "billable": true
    }
}
```

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