# SUUMO Areas API

<p>List the cities (wards, cities and towns) of a prefecture with their 5-digit codes, or the towns of one city. Use the city codes as `city` in the rent and sale search. `listing_count` is the number of rental listings SUUMO shows for the area.</p>

- **Documentation:** [https://scrappa.co/docs/suumo-api/suumo_areas](https://scrappa.co/docs/suumo-api/suumo_areas)
- **API group:** SUUMO API
- **Endpoint:** `GET https://scrappa.co/api/suumo/areas`

## 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 |
| --- | --- | --- | --- |
| `prefecture` | string | Yes | Prefecture as a lower-case English name: `tokyo`, `osaka`, `kanagawa`, `hokkaido` and so on (all 47). |
| `city` | string | No | A 5-digit city code from the cities list, e.g. `13104`. Returns the towns of that city instead of the cities. |

## Example response

```json
{
    "data": {
        "cities": [
            {
                "code": "13101",
                "name": "\u5343\u4ee3\u7530\u533a",
                "listing_count": 32654
            },
            {
                "code": "13104",
                "name": "\u65b0\u5bbf\u533a",
                "listing_count": 123078
            }
        ],
        "prefecture": "tokyo"
    },
    "meta": {
        "billable": true,
        "endpoint_family": "areas"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
|  | The listing does not exist or is no longer online. This response is not billable. |  |
|  | A parameter or filter is missing, invalid or not available for the property type. This response is not billable. |  |
|  | SUUMO is temporarily unavailable or answered a page that no longer matches the documented contract. Retry the request. 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)
