# Zigbang Agency Profile API Documentation

<p><strong>Zigbang Agency Profile API Documentation</strong> Get the public office profile of a Zigbang agency: office name, office phone, office address, office and company registration numbers, status, region, office coordinates, the number of active listings by property type and sales type, the inquiry answer rate and the share of positive customer feedback. Use the agency id from the search, listing or agency-listings endpoints. The agent's personal name, mobile phone, email, photo and free text are never returned. An unknown agency returns 404 and is not billed.</p>

- **Documentation:** [https://scrappa.co/docs/zigbang-api/zigbang_agency](https://scrappa.co/docs/zigbang-api/zigbang_agency)
- **API group:** Zigbang API
- **Endpoint:** `GET https://scrappa.co/api/zigbang/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 | Zigbang agency id (agency_id in search results). Example: 161344. |

## Example response

```json
{
    "data": {
        "agency": {
            "id": 161344,
            "city": "\uc11c\ucd08\uad6c",
            "status": "ACTIVE",
            "district": "\uc11c\ucd08\ub3d9",
            "latitude": 37.4853177812091,
            "province": "\uc11c\uc6b8\uc2dc",
            "longitude": 127.01308677007,
            "office_name": "\ub300\uacbd\uacf5\uc778\uc911\uac1c\uc0ac\uc0ac\ubb34\uc18c",
            "office_phone": "0212345678",
            "feedback_count": 24,
            "office_address": "\uc11c\uc6b8\ud2b9\ubcc4\uc2dc \uc11c\ucd08\uad6c \ubc18\ud3ec\ub300\ub85c12\uae38 33 , 209\ud638(\uc11c\ucd08\ub3d9,\ud604\ub300\uc624\ud53c\uc2a4\ud154)",
            "inquiry_answer_rate": 87.5,
            "active_listing_counts": {
                "villa": {
                    "sale": 0,
                    "total": 0,
                    "jeonse": 0,
                    "monthly_rent": 0
                },
                "oneroom": {
                    "sale": 0,
                    "total": 14,
                    "jeonse": 0,
                    "monthly_rent": 14
                },
                "officetel": {
                    "sale": 0,
                    "total": 4,
                    "jeonse": 0,
                    "monthly_rent": 4
                }
            },
            "feedback_positive_rate": 91.67,
            "office_registration_number": "9251-8182",
            "company_registration_number": "2141354648"
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "agency"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The id is missing or not a positive integer. No upstream request is made. This response is not billable. |
| 404 | Not Found | No agency with this id exists on Zigbang. This response is not billable. |
| 503 | Service Unavailable | Zigbang could not be reached, blocked every attempt, or answered with a shape that no longer matches the documented contract (error code PARSER_DRIFT). This response is not billable. |

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