Skip to main content

Filtering Data

Sheet Best lets you filter rows directly from the URL using exact values and wildcard matching (*). For numeric or date comparisons (>, <, >=, <=), see the querying guide.

Filter by a single column

Append /<Column Name>/<Value> to the sheet URL.

# Exact match
curl 'https://api.sheetbest.com/sheets/YOUR_SHEET_ID/Name/Jane Doe'

# Contains "John"
curl 'https://api.sheetbest.com/sheets/YOUR_SHEET_ID/Name/*John*'

# Starts with "Jane"
curl 'https://api.sheetbest.com/sheets/YOUR_SHEET_ID/Name/Jane*'

# Ends with "Jane"
curl 'https://api.sheetbest.com/sheets/YOUR_SHEET_ID/Name/*Jane'

Wildcard summary

PatternMatches
JaneExact value Jane
*Jane*Anything containing Jane
Jane*Starts with Jane
*JaneEnds with Jane

Filter multiple columns

Use the /search endpoint and pass each column as a query parameter. Wildcards work here too.

# Rows where Name contains "John" AND Age = 56
curl 'https://api.sheetbest.com/sheets/YOUR_SHEET_ID/search?Name=*John*&Age=56'

Add search_ci=true to make matches case-insensitive.

curl 'https://api.sheetbest.com/sheets/YOUR_SHEET_ID/Name/*jane*?search_ci=true'
curl 'https://api.sheetbest.com/sheets/YOUR_SHEET_ID/search?Name=*JOHN*&search_ci=true'

Combine with tabs

Filters work on any tab. Place /tabs/<Tab Name> before the filter suffix. See the tabs guide for more.

# Single column on the "Admin" tab
curl 'https://api.sheetbest.com/sheets/YOUR_SHEET_ID/tabs/Admin/Name/*Arthur*'

# Multiple columns on the "Admin" tab
curl 'https://api.sheetbest.com/sheets/YOUR_SHEET_ID/tabs/Admin/search?Age=21&Name=*Mick*'

Next steps

  • Querying data for numeric and date comparisons (__gt, __lt, ...).
  • Pagination to limit how many rows are returned.