# /field/range

## range of field values.

<mark style="color:blue;">`GET`</mark> `geolytix.xyz/api/location/field/range`

Get the min and max, avg and standard deviation values for a table field.

#### Query Parameters

| Name   | Type   | Description                     |
| ------ | ------ | ------------------------------- |
| locale | string | The locale key.                 |
| layer  | string | The layer key.                  |
| table  | string | The table name.                 |
| field  | string | The field name.                 |
| token  | string | Required for private endpoints. |

{% tabs %}
{% tab title="200 The min and max values from the table field." %}
```javascript
{"min":50,"max":4140}
```
{% endtab %}

{% tab title="202 " %}
```
'No rows returned from table.'
```
{% endtab %}

{% tab title="406 Invalid or missing parameter in request." %}
```
'Invalid locale.'

'Invalid layer.'

'Missing table.'

'Missing field.'

'Invalid parameter.'
```
{% endtab %}

{% tab title="500 Check backend error logs for additional details." %}
```
'Failed to query PostGIS table.'
```
{% endtab %}
{% endtabs %}

