# at home Places API Documentation

<p><strong>at home Places API Documentation</strong> Find places and addresses by text. Each place has the name, address, prefecture and coordinates. Only the first page of places is returned.</p>

- **Documentation:** [https://scrappa.co/docs/athome-jp-api/athome_jp_places](https://scrappa.co/docs/athome-jp-api/athome_jp_places)
- **API group:** at home Japan API
- **Endpoint:** `GET https://scrappa.co/api/athome-jp/places`

## 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 |
| --- | --- | --- | --- |
| `query` | string | Yes | Place or address text in Japanese, for example 新宿. |

## Example response

```json
{
    "data": {
        "places": [
            {
                "name": "\u65b0\u5bbf\u533a",
                "type": "other",
                "address": "\u65e5\u672c\u3001\u6771\u4eac\u90fd\u65b0\u5bbf\u533a",
                "latitude": 35.6938253,
                "longitude": 139.7033559,
                "prefecture": "\u6771\u4eac\u90fd",
                "prefecture_code": "13",
                "prefecture_roman": "tokyo"
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "places"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid, or the site does not know the city. No upstream request is made for a missing parameter. This response is not billable. |
| 404 | Not Found | The listing or agency does not exist or is no longer online. This response is not billable. |
| 502 | Bad Gateway | The site answered with a shape this API does not know. This response is not billable. |
| 503 | Service Unavailable | at home could not be reached or blocked the request, also after one retry. Retry later. 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)
