# Wikicasa Agency Profile API Documentation

Scrappa's `GET /api/wikicasa/agency` returns the public profile of one Wikicasa agency: name, company, address, coordinates, phone, website, description, listing counts and premium flags.

Take `id` from the agency search or from a listing. An unknown agency answers 404 and is not billed.

- **Documentation:** [https://scrappa.co/docs/wikicasa-api/wikicasa_agency](https://scrappa.co/docs/wikicasa-api/wikicasa_agency)
- **API group:** Wikicasa API
- **Endpoint:** `GET https://scrappa.co/api/wikicasa/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 | Yes | Numeric agency id, for example 17361. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "data": {
        "id": 17361,
        "name": "GIOIA BIANCHI",
        "company_name": "GIOIA BIANCHI",
        "url": "https://www.wikicasa.it/agenzia/gioia-bianchi-17361",
        "address": "CORSO INDIPENDENZA 24",
        "zip": "20129",
        "city": "Milano",
        "province": "Milano",
        "province_code": "MI",
        "latitude": 45.4675322,
        "longitude": 9.2155607,
        "phone": "02711852",
        "website": "https://www.gioiabianchi.com",
        "description": null,
        "active_listings": 8,
        "visible_listings": 8,
        "premium": true,
        "top_agency": false,
        "prestigious": false,
        "franchise_id": null,
        "image_id": 881112381
    },
    "meta": {
        "endpoint_family": "agency",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The agency does not exist (`NOT_FOUND`). Non-billable. |
| 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)
