`MIN`

returns the minimum value in a numeric dataset. It can also take an arbitrary number of additional arguments.

**Function category:** Statistical

`MIN(arg1, [arg2...])`

Arguments | Description |

| Number, string or an array of numbers or strings (or anything that can be coerced into being a number) |

| Optional. Has the same restrictions as |

Let's say we're given a response with the following vehicle information:

{"data":{"local_service_prices":{"highest_rated":160,"nearest":120,"regional":[140,90,115,220]}}}

If we want to find the smaller of the nearest and highest rated service stations, we can use `MIN`

:

MIN(data.local_service_prices.highest_rated, data.local_service_prices.nearest)

This returns the following:

120

`MIN`

can also take arrays as arguments.

MIN(data.local_service_prices.highest_rated, data.local_service_prices.nearest, data.local_service_prices.regional)

This results in the following:

90