# City Search

Any city on earth by name, to coordinates — population-descending, so "Springfield" answers the one people mean first.

- Method: `GET`
- Path: `/v1/places/cities`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `name` | string | required | The start of a city name. |
| `count` | integer | optional | 1 to 50 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/cities \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "query": "Dubai",
    "cities": [
      {
        "id": 292223,
        "name": "Dubai",
        "country": "United Arab Emirates",
        "country_code": "AE",
        "admin1": "Dubai",
        "latitude": 25.07725,
        "longitude": 55.30927,
        "population": 2922462
      }
    ]
  },
  "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"
  }
}
```