# Find a location (v1)

Returns the cities, areas, landmarks and hotels Agoda suggests for a name, each with the city `location_id` the Hotel Search endpoint takes and, for a hotel, its `hotel_id`. Empty `results` means nothing matched.

- Platform: Agoda
- Request: `GET https://api.toolzerhub.com/v1/agoda/locations`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/agoda/locations/get-agoda-locations

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `query` | query | yes | string | A city, area, landmark or hotel name, such as bangkok, Sukhumvit or Asia Hotel Bangkok. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/agoda/locations?query=<query>" \
  -H "x-api-key: $TOOLZERHUB_API_KEY"
```

Success responses are wrapped as `{ "data": ... }`. Errors return `{ "error": { "code", "status", "message", "retryable", "details" } }`. See https://docs.toolzerhub.com/docs/responses-and-errors.
