# UAE Place Search

The gazetteer of the UAE's named places — towns, suburbs, and city quarters with their emirate and population, biggest first.

- Method: `GET`
- Path: `/v1/places/uae/search`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `q` | string | required | The start of a place name. |
| `limit` | integer | optional | 1 to 25 matches. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/places/uae/search \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "query": "Dubai",
    "total": 2,
    "places": [
      {
        "geoname_id": 292223,
        "name": "Dubai",
        "emirate": "Dubai",
        "feature_code": "PPLC",
        "lat": 25.0657,
        "lon": 55.1713,
        "population": 3478300
      },
      {
        "geoname_id": 292222,
        "name": "Dubai",
        "emirate": "Dubai",
        "feature_code": "PPLX",
        "lat": 25.2631,
        "lon": 55.2975,
        "population": null
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-21T04:05:00.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-22T04:05:00.000Z"
  }
}
```