# places.search

Search for a place or an address by name: pass query (up to 120 characters) and optionally near, the point the results should lean toward, as {lat, lon} or "lat,lon". Returns up to five results from OpenStreetMap, each with a label, an address, lat and lon; a person then saves one with entries.place.set. Run it only when a person submits a search, never while they type. Each person gets 30 new lookups an hour, and only the words searched leave Oatmilk.

`GET | POST /api/v1/accounting/places.search`

Permissions: `accounting:read` · Roles: admin, finance, contributor · Reaches outside Oatmilk (email or a provider)

MCP tool: `accounting_places_search`

## Fields

| Field | Type | Required | Notes |
| --- | --- | --- | --- |
| `query` | string | Yes | Text to search for. 1–120 characters. |
| `near` | object or string |  |  |
| `near.lat` | number | Yes | -90 to 90. |
| `near.lon` | number | Yes | -180 to 180. |

## Example request

```bash
curl -G https://app.getoatmilk.com/api/v1/accounting/places.search \
  -H "Authorization: Bearer $OATMILK_API_KEY" \
  --data-urlencode 'query=office supplies'
```

Reference page: https://app.getoatmilk.com/docs/api/places.search
