Overview
Filters allow you to define conditions for displaying records in views. NocoDB supports complex filter logic with groups, multiple conditions, and various comparison operators.Comparison Operators
Filters support a wide range of comparison operators:Equality & Comparison
eq- Equalsneq- Not equalsgt- Greater thangte- Greater than or equallt- Less thanlte- Less than or equal
Text Operators
like- Containsnlike- Does not contain
List Operators
in- Is in listallof- All of (multi-select)anyof- Any of (multi-select)nallof- Not all ofnanyof- Not any of
Null Operators
null- Is nullnotnull- Is not nullempty- Is emptynotempty- Is not emptyblank- Is blank (null or empty)notblank- Is not blank
Boolean Operators
checked- Is checked (checkbox)notchecked- Is not checked
Special Operators
is- Is (exact match)isnot- Is notbtw- Betweennbtw- Not betweenisWithin- Is within (date/time)
Comparison Sub-Operators
For date/time filters, use sub-operators:today,tomorrow,yesterdayoneWeekAgo,oneWeekFromNowoneMonthAgo,oneMonthFromNowdaysAgo,daysFromNowexactDatepastWeek,pastMonth,pastYearnextWeek,nextMonth,nextYearnextNumberOfDays,pastNumberOfDays
List View Filters
Retrieve all filters for a specific view.Path Parameters
Unique identifier for the view
Query Parameters
Include all filters, including nested group filters
Response
Array of filter objects
Unique filter identifier
Foreign key to the view
Foreign key to the column being filtered
Comparison operator (e.g., “eq”, “like”, “gt”)
Filter value to compare against
Logical operator:
and, or, or notWhether this filter is a group
Nested filters (only for groups)
Create Filter
Add a new filter to a view.Path Parameters
Unique identifier for the view
Request Body
Column ID to filter on
Comparison operator (see Comparison Operators)
Value to compare against (can be null for some operators)
Logical operator:
and (default), or, or notSub-operator for date/time filters (see Comparison Sub-Operators)
Parent filter group ID (for nested filters)
Whether this filter is a group (default: false)
Example: Text Filter
Example: Date Filter with Sub-Operator
Example: Number Filter
Get Filter
Retrieve a specific filter by its ID.Path Parameters
Unique identifier for the filter
Update Filter
Modify an existing filter.Path Parameters
Unique identifier for the filter
Request Body
Accepts the same parameters as Create Filter. Only include fields you want to update.New comparison operator
New filter value
New logical operator
Enable or disable the filter (disabled filters are skipped)
Delete Filter
Remove a filter from a view.Path Parameters
Unique identifier for the filter to delete
Filter Groups
Filter groups allow you to create complex filter logic with nested conditions.Create Filter Group
Set to true to create a filter group
Logical operator for combining filters in the group:
and or orAdd Filter to Group
Once you have a group, add filters to it using thefk_parent_id:
List Group Children
Retrieve all filters within a group.Unique identifier for the filter group
Example: Complex Filter Logic
Create a filter group with OR logic for multiple conditions:(Status = "Active" OR Priority = "High")
Hook Filters
Filters can also be applied to webhooks to control when they trigger.Create Hook Filter
Unique identifier for the webhook
List Hook Filters
Logical Operators
Combine multiple filters using logical operators:AND Logic
OR Logic
NOT Logic
Filter Best Practices
Filter changes take effect immediately and apply to all users viewing the same view (unless using personal lock type).