# Search stations (v1)

Find station codes by city or station name, with state and coordinates. A city also returns an all-stations entry. A query nothing matches returns empty `results`.

- Platform: Indian Rail
- Request: `GET https://api.toolzerhub.com/v1/indianrail/stations/search`
- Auth: `x-api-key` header
- Cost: 1 credit per successful request. Failed requests are not billed.
- Page: https://docs.toolzerhub.com/reference/indian-rail/search/get-indian-rail-station-search

| Parameter | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `query` | query | yes | string | A city or station name, such as bangalore or new delhi, or a station code such as NDLS. |

## Example request

```bash
curl "https://api.toolzerhub.com/v1/indianrail/stations/search?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.
