Filtering records over the API
A filter is JSON with a field, an operator and a value, joined by and/or. Every operator by field type, two levels of nesting, and sort and search.
Updated November 2026
The records list takes a filter= parameter, which is JSON naming a field, an
operator and a value. It uses the same grammar the grid's Filter button
builds, so anything you can click together in a
view's filter you can also send over the API, and
you get the same results.
The shape of a filter
{ "join": "and",
"conditions": [
{ "field": "Light", "op": "is", "value": "Low light" },
{ "field": "Price", "op": "less", "value": 30 }
] }
field is the field's name or its stable fld_… id. An id keeps working
after the field is renamed and a name doesn't
(names and ids). join is "and" or "or", applies
to the whole list, and defaults to "and". Even a single condition goes
inside conditions. A lone {"field": …, "op": …, "value": …} object isn't
read as a filter, and the whole table comes back.
A condition can itself be a group with its own join and conditions. A
group can go inside the top-level list but not inside another group. So
"A and (B or C)" works, and "A and (B or (C and D))" is refused with
Filter groups can nest 2 levels deep; this one goes deeper.
The filter goes in the query string, URL-encoded. You can let curl do the encoding:
curl -G "https://tabladb.com/api/tables/tbl_jukzu86nxtcj/records" \
-H "Authorization: Bearer key_xxxx.your-secret" \
--data-urlencode 'filter={"join":"and","conditions":[{"field":"Light","op":"is","value":"Low light"},{"field":"Price","op":"less","value":30}]}' \
--data-urlencode 'fields=Name,Price,Light'
{"records": [
{"id": "rec_y45z2yssdq4i", "fields": {"Name": "Snake plant", "Price": 28, "Light": "Low light"}},
{"id": "rec_fxnmkz5wjyme", "fields": {"Name": "Golden pothos", "Price": 18, "Light": "Low light"}},
{"id": "rec_pqcs6b7ebsa6", "fields": {"Name": "Peace lily", "Price": 26, "Light": "Low light"}}
], "field_ids": {"Name": "fld_rume7j84a473", "Price": "fld_t8y7aqpv8ykt", "Light": "fld_txz7eiyxd8r2"}}
(Record timestamps are trimmed here and below.) If a filter is too long for a
URL, POST /api/tables/:id/records/list takes the same parameters as a JSON
body, with filter as an object and no encoding.
The operators, by field type
- Text (text and long text, plus email, phone, URL and member, which
store text):
is,is_not,contains,not_contains,empty,not_empty. - Number (number, currency, percent, rating, duration):
is,is_not,greater,greater_or_equal,less,less_or_equal,empty,not_empty. - Date:
is,is_not,before,after,on_or_before,on_or_after,is_within,empty,not_empty. Like text and number,is_notalso matches records with no date in that field.is_withinmatches the span between the moment you ask and its value, in either direction, with both ends included. - Checkbox:
is, valuetrueorfalse. - Select:
is,is_not,any_of,none_of,empty,not_empty. - Select with allow multiple:
has_any,has_all,has_none,is_exactly,empty,not_empty.is_exactlymeans the cell holds that set of choices and nothing else. - Linked records:
has_any,has_all,has_none,is_exactly(values are lists ofrec_…ids), plusempty,not_empty. - Attachment:
emptyandnot_emptyonly.
Values follow the field type: strings for text, numbers for number, choice
names or ids for selects, and arrays for the list operators. Write a date
year first, either as "2026-07-02" or as a timestamp with at least hours and
minutes, such as "2026-07-02T09:30" or "2026-07-02T09:30:00Z". You can
also give a moment relative to now, such as {"relative": "today"}, or a
whole calendar period, such as {"relative": "this_month"} or
{"relative": "last_week"} (/docs/api lists them and says how each operator reads one). Formulas, lookups and rollups filter by
the value they produce, so
{"field":"Total spent","op":"greater_or_equal","value":100} works on a
rollup. A button holds no value and is refused by name. So is a lookup of a
select, a member field that allows multiple people, a link or an attachment,
because it is display text with nothing to compare.
When a filter is wrong
A filter that names an unknown field, or an operator the field doesn't take, gets a 400 that says so, not an empty page:
{"error": {"code": "bad_request", "message": "Operator \"contains\" is not
allowed on field \"Price\" (number). Allowed: is, is_not, greater,
greater_or_equal, less, less_or_equal, empty, not_empty."}}
A date written any other way gets a 400 too. 05.11.2021 means November 5 in
Berlin and May 11 in New York, so the API doesn't guess. It refuses the date
and shows the format to use:
{"error": {"code": "bad_request", "message": "Field \"Placed\" filter expects
a date written like \"2026-07-02\" (year, month, day), not \"31.12.2025\"."}}
We made it work this way because an automation that reads "no matches today" and carries on is a worse failure than one that stops with a message naming the problem.
Select values are the exception, and that is intended. A choice name has to
match the field's spelling character for character, capitals included. A
choice the field doesn't have is not refused. It matches no record (and with
is_not, every record), which is what keeps a saved view loading after one of
its choices is renamed or deleted. Copy choice names from the field, or send
choice ids, which never change.
Sort and search
sort= is a comma-separated list of fields, with -Field or Field:desc for
descending. The record's creation order is always the final tiebreak. A
single select sorts by the order its choices are defined in. A multi select,
member list or link sorts by the first value in the cell, and a rollup by its
value. A lookup sorts by its first value when that is text, a number, a date
or a checkbox. Anything else that can't be ordered, such as an attachment or a
button, is refused by name. This matches
sorting in the grid. In sort= and fields=, use
the fld_… id for a field whose name contains a comma, since the comma
separates the list. A field whose name contains a colon sorts descending as
-Field.
search= matches a record's text fields, the names of its selected choices,
the people in its member fields (by name or email) and the names of the
records it links to. It ignores case, and it works on Arabic text too.
search=fern finds the Boston fern by its name, and would also find it by its
care notes. For numbers, dates and checkboxes, use filter=, which compares
them as values.
You can use filter, sort and search together on one request, and the filtered set pages with the same bookmark as any other list (pagination). The full grammar, operator by operator, is at /docs/api.