Latenode LogoLatenode

Filters

Filters help you get only the rows you need, for example leads with the "New" status or contracts that expire this month. The API supports the same filters as table views. Which ones fit a specific field is shown next to the field in the database's API docs.

There are two ways to pass a filter in a row list request.

The filters tree

The filters parameter takes JSON. Inside are filter_type (AND or OR) and a filters array. Each condition has field, type, and value.

With field names (user_field_names):

{"filter_type":"AND","filters":[{"field":"Name","type":"equal","value":"test"}]}

Without names, by field ID:

{"filter_type":"AND","filters":[{"field":1,"type":"equal","value":"test"}]}

If filters is passed, the filter__{field}__{filter} and filter_type parameters are ignored.

Short filter

Format: filter__{field}__{filter}=value.

With a field name: filter__Name__equal=test. If there is no field with that name, the search uses field_id.

Without names: filter__field_1__equal=test.

filter_type sets how several short filters are combined. Default: AND, the row must match all of them. OR: matching one is enough. The parameter works when there are two or more filters.

Filter types

In the database docs, some old date filters are marked as deprecated. Don't use them in new requests. Below are the types that aren't marked as deprecated.

FilterExample valueMeaning
equalstringequal
not_equalstringnot equal
containsstringcontains
contains_notstringdoesn't contain
contains_wordstringcontains word
doesnt_contain_wordstringdoesn't contain word
starts_withstringstarts with
length_is_lower_than5length is lower than
emptyempty
not_emptynot empty
higher_than100higher than
higher_than_or_equal100higher than or equal
lower_than100lower than
lower_than_or_equal100lower than or equal
is_even_and_wholetrueeven and whole
booleantrueequals a boolean value
single_select_equal1selected option is
single_select_not_equal1selected option is not
single_select_is_any_of1,2is any of the options
single_select_is_none_of1,2is none of the options
multiple_select_has1has any of the options
multiple_select_has_not1has none of the options
link_row_has1link has the row
link_row_has_not1link doesn't have the row
link_row_containsstringlink contains text
link_row_not_containsstringlink doesn't contain text
multiple_collaborators_has1has collaborator
multiple_collaborators_has_not1doesn't have collaborator
user_is1user is
user_is_not1user is not
filename_containsstringfile name contains
has_file_typeimage or documentfile type
files_lower_than2fewer files than
date_isUTC??todaydate is
date_is_notUTC??todaydate is not
date_is_beforeUTC??todaydate is before
date_is_on_or_beforeUTC??todaydate is on or before
date_is_afterUTC??todaydate is after
date_is_on_or_afterUTC??todaydate is on or after
date_is_withinUTC??todaydate is within
date_equals_day_of_month1day of month is
has_empty_valuestringhas an empty value
has_not_empty_valuestringhas no empty value
has_value_equalstringhas a value equal to
has_not_value_equalstringhas no value equal to
has_value_containsstringhas a value containing
has_not_value_containsstringhas no value containing
has_value_contains_wordstringhas a value with the word
has_not_value_contains_wordstringhas no value with the word
has_value_length_is_lower_thanstringhas a value shorter than
has_all_values_equalstringall values are equal
has_value_higherstringhas a value higher than
has_not_value_higherstringhas no value higher than
has_value_higher_or_equalstringhas a value higher than or equal to
has_not_value_higher_or_equalstringhas no value higher than or equal to
has_value_lowerstringhas a value lower than
has_not_value_lowerstringhas no value lower than
has_value_lower_or_equalstringhas a value lower than or equal to
has_not_value_lower_or_equalstringhas no value lower than or equal to
has_any_select_option_equalstringhas an option equal to
has_none_select_option_equalstringhas no option equal to
has_date_equalUTC??todayhas a date equal to
has_not_date_equalUTC??todayhas no date equal to
has_date_beforeUTC??todayhas a date before
has_not_date_beforeUTC??todayhas no date before
has_date_on_or_beforeUTC??todayhas a date on or before
has_not_date_on_or_beforeUTC??todayhas no date on or before
has_date_afterUTC??todayhas a date after
has_not_date_afterUTC??todayhas no date after
has_date_on_or_afterUTC??todayhas a date on or after
has_not_date_on_or_afterUTC??todayhas no date on or after
has_date_withinUTC??todayhas a date within
has_not_date_withinUTC??todayhas no date within

The UTC??today example and the numbers in the "Example value" column come from the database docs: they are samples, not a required format for every field.

Need Help? Ask the community

If something on this page is missing or unclear, post on the Latenode community forum. Our team and other users usually reply quickly.

0/100
0/2000