# Dabang Autocomplete API Documentation

<p><strong>Dabang Autocomplete API Documentation</strong> Find places by their Korean name and get the ids and codes the search endpoint needs. The result has five lists: regions (code, gid, name, full name, coordinates, zoom), subways (id, name, lines, radius), universities (id, name), complexes (apartment and officetel complexes with type and address, up to 50) and sale_in_lots (pre-sale projects with status and address). Use regions[].code as region_code, subways[].id as subway_id and universities[].id as university_id in the search endpoint. Use latitude and longitude as lat and lng. Limit the lists with types. A query without matches is an empty, billable success.</p>

- **Documentation:** [https://scrappa.co/docs/dabang-api/dabang_autocomplete](https://scrappa.co/docs/dabang-api/dabang_autocomplete)
- **API group:** Dabang API
- **Endpoint:** `GET https://scrappa.co/api/dabang/autocomplete`

## 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 |
| --- | --- | --- | --- |
| `q` | string | Yes | Korean place name, 1 to 60 characters. Example: 강남. |
| `types` | string | No | Comma list of region, subway, university, complex, sale_in_lots. Default: all five. |

## Example response

```json
{
    "data": {
        "meta": {
            "counts": {
                "regions": 3,
                "subways": 3,
                "complexes": 3,
                "sale_in_lots": 2,
                "universities": 1
            },
            "total_count": 12
        },
        "results": {
            "regions": [
                {
                    "gid": 10133,
                    "code": "11680108",
                    "name": "\ub17c\ud604\ub3d9",
                    "zoom": 14,
                    "latitude": 37.511830546926625,
                    "full_name": "\uc11c\uc6b8\ud2b9\ubcc4\uc2dc \uac15\ub0a8\uad6c \ub17c\ud604\ub3d9",
                    "longitude": 127.02899675964908
                }
            ],
            "subways": [
                {
                    "id": 20,
                    "area": "\uc218\ub3c4\uad8c",
                    "name": "\uac15\ub0a8\uc5ed",
                    "type": "subway",
                    "zoom": 15,
                    "lines": [
                        "2\ud638\uc120",
                        "\uc2e0\ubd84\ub2f9\uc120"
                    ],
                    "latitude": 37.4979334880069,
                    "radius_m": 750,
                    "full_name": "\uac15\ub0a8\uc5ed",
                    "longitude": 127.02755260367,
                    "region_gid": 10194
                }
            ],
            "complexes": [
                {
                    "id": "58291f89a99ae073a0b57527c994",
                    "name": "\uac15\ub0a8\uc5ed\uc13c\ud2b8\ub7f4\ud478\ub974\uc9c0\uc624\uc2dc\ud2f0",
                    "type": "complex",
                    "zoom": 17,
                    "address": "\uc11c\uc6b8\ud2b9\ubcc4\uc2dc \uac15\ub0a8\uad6c \uc5ed\uc0bc\ub3d9",
                    "latitude": 37.497706,
                    "full_name": "\uc11c\uc6b8\ud2b9\ubcc4\uc2dc \uac15\ub0a8\uad6c \uc5ed\uc0bc\ub3d9 \uac15\ub0a8\uc5ed\uc13c\ud2b8\ub7f4\ud478\ub974\uc9c0\uc624\uc2dc\ud2f0",
                    "longitude": 127.029001,
                    "region_gid": 10063,
                    "complex_type": "\uc624\ud53c\uc2a4\ud154"
                }
            ],
            "sale_in_lots": [
                {
                    "id": "649e3ef34e177d5844904fd747fb",
                    "name": "\ub798\ubbf8\uc548 \ub808\ubca4\ud22c\uc2a4",
                    "type": "sale_in_lots",
                    "zoom": 15,
                    "status": "\uc785\uc8fc\uc608\uc815",
                    "address": "\uc11c\uc6b8\ud2b9\ubcc4\uc2dc \uac15\ub0a8\uad6c \ub3c4\uace1\ub3d9",
                    "latitude": 37.493569802507,
                    "full_name": "\uc11c\uc6b8\ud2b9\ubcc4\uc2dc \uac15\ub0a8\uad6c \ub3c4\uace1\ub3d9 \ub798\ubbf8\uc548 \ub808\ubca4\ud22c\uc2a4",
                    "longitude": 127.046017308902
                }
            ],
            "universities": [
                {
                    "id": 164,
                    "name": "\uac15\ub0a8\ub300\ud559\uad50",
                    "type": "university",
                    "zoom": 14,
                    "latitude": 37.27597200623436,
                    "full_name": "\uac15\ub0a8\ub300\ud559\uad50",
                    "longitude": 127.13244486733902,
                    "region_gid": 7768
                }
            ]
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The query is missing or a type is not one of the five types. No upstream request is made. This response is not billable. |
| 503 | Service Unavailable | Dabang 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)
