# Google Autocomplete

The completions Google suggests under its own search box, from the public suggest endpoint — search-as-you-type without the search.

- Method: `GET`
- Path: `/v1/google/autocomplete`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `q` | string | required | The partial query to complete. |
| `hl` | string | optional | Language, an ISO code. Defaults to Indonesian. |
| `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/google/autocomplete \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "query": "kupi",
    "language": "id",
    "suggestions": [
      "kuping berdenging sebelah kiri",
      "kuping berdenging sebelah kanan",
      "kupinami",
      "kuping berdenging"
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-20T04:05:00.000Z",
    "age_seconds": 12,
    "next_update_at": "2026-08-20T04:35:00.000Z"
  }
}
```