# Age Ranges

## ageRangeMax\[lte]

The `ageRangeMax[lte]` parameter can be used to define a maximum age limit to a query. It will only return EventSeries items that have a maximum age less than or equal to the value supplied. For example if `ageRangeMax[lte]=17` was supplied, only items that allow 17 year olds and younger will be returned. 18 year olds and older would not be allowed to these items.

## ageRangeMin\[gte]

The `ageRangeMin[gte]` parameter can be used to define a minimum age limit to a query It will only return EventSeries items that have a minimum age greater than or equal to the value supplied. For example if `ageRangeMin[gte]=18` was supplied, only items that allow 18 year olds and older will be returned. 17 years and younger would not be allowed to these items.

#### Example

* `&ageRangeMin[gte]=18&ageRangeMax[lte]=39`
  * Would return items with age ranges:
    * 20 - 30:heavy\_check\_mark:
    * 18 - 39:heavy\_check\_mark:
  * Would exclude items with age ranges:
    * 20+ :heavy\_multiplication\_x: (includes ages above the max age - 39)
    * 16 - 60:heavy\_multiplication\_x:(includes ages 16-17 and 40+, which are outside of the bounds)

## ageRange\[includeRange]

The `ageRange[includeRange]` parameter can be used to define an acceptable age range for a session to be in. The format for this parameter (which can also be found in our [API specification](https://docs.imin.co/platform-products/search/imin-events-api/api-reference)) can be the following:

```
 {minAge}
```

or

```
{minAge},{maxAge}
```

When only a `{minAge}` is specified, only EventSeries items that allow that age will be return. For example, if `ageRange[includeRange]=18` was specified, any items that allow 18 years old will be returned.

If `{minAge},{maxAge}` are supplied, only items that allow all ages in the range are returned. For example if `ageRange[includeRange]=18,55` only items that allow 18 year olds, 55 year olds, and all ages in between will be returned. This would include items with age ranges:

* 16 - 60 :heavy\_check\_mark:&#x20;
* 18 - 55 :heavy\_check\_mark:
* 0 - 99 :heavy\_check\_mark:

But would exclude items with age ranges:

* 19 - 54 :heavy\_multiplication\_x: (Excludes ages 18 and 55)
* 21+ :heavy\_multiplication\_x: (Excludes ages 18 - 20)

{% hint style="info" %}
All values supplied to this query parameter are inclusive.
{% endhint %}
