Overview

Parameters

How to use operators and arrays in our API

This guide explains how to use query parameters in our API.

Operators

Fields can be filtered using operators, on the documentation you'll see a (operator) suffix indicating that the field can be used as an operator.

When using a list of values, separate values with a semicolon ;.

Numerical operators

OperatorDescriptionExample
Default operator, equivalent to eqscore=1
eqEquals exactlyscore=eq:1
neqNot equalsscore=neq:1
gtGreater thanscore=gt:1
gteGreater than or equalscore=gte:1
ltLess thanscore=lt:1
lteLess than or equalscore=lte:1
inIn a list of values.score=in:1;2;3
ninNot in a list of values.score=nin:1;2;3
betweenBetween two values.score=between:1;2

Boolean operators

Valid values are true and false.

OperatorDescriptionExample
Default operator, equivalent to eqis_active=true
eqEquals exactlyis_active=eq:true
neqNot equalsis_active=neq:true

String operators

OperatorDescriptionExample
Default operator, equivalent to ilikename=John
eqEquals exactlyname=eq:John
neqNot equalsname=neq:John
likeContainsname=like:John
nlikeDoes not containname=nlike:John
ilikeContains (ignore case)name=ilike:John
nilikeDoes not contain (ignore case)name=nilike:John
inIn a list of values.name=in:John;Doe
ninNot in a list of values.name=nin:John;Doe
startsStarts withname=starts:John
endsEnds withname=ends:John

Date operators

When using dates, time are not taken into account. Meaning that eq:2022-01-01 will match all documents of that date.

OperatorDescriptionExample
Default operator, equivalent to eqdate=2022-01-01
eqEquals exactlydate=eq:2022-01-01
neqNot equalsdate=neq:2022-01-01
gtGreater thandate=gt:2022-01-01
gteGreater than or equaldate=gte:2022-01-01
ltLess thandate=lt:2022-01-01
lteLess than or equaldate=lte:2022-01-01
betweenBetween two values.date=between:2022-01-01;2022-01-02

Arrays

When you need to pass multiple values for the same parameter, repeat the parameter name for each value.

Example: field=value1&field=value2