🎁 Black Friday Starts Now!
Use Code: BLACK25
arrow_back Back to all articles

Advanced Search Query Support

Richard O'Dwyer blog post author

Richard O'Dwyer

Published February 23, 2023

Advanced Search Queries

Up until now you could only query your API for exact spreadsheet row values. We're now happy to announce support for advanced queries, see examples below:

1) Wildcard search

Add a asterisk * anywhere in your search terms to enable wildcard search.

Example: https://sheet2api.com/v1/FgI6zV8qT121/characters/Looney%20Tunes?Name=Bugs*Bunny

2) Negative search

If you'd like to omit certain rows from the results, use an exclamation mark ! before the value.

For example, if you'd like get all rows except the one in which matches Name = Bugs Bunny, use this url: https://sheet2api.com/v1/FgI6zV8qT121/characters/Looney%20Tunes?Name=!Bugs%20Bunny

3) Relational operators

Use relational operators to match on numeric column values greater or less than a given number.

Simply start with <><=>= operator. Example URLs:

https://sheet2api.com/v1/CMMyLxNrQj_b/characters-with-ages?age<20

https://sheet2api.com/v1/CMMyLxNrQj_b/characters-with-ages?age>20

https://sheet2api.com/v1/CMMyLxNrQj_b/characters-with-ages?age>=20

https://sheet2api.com/v1/CMMyLxNrQj_b/characters-with-ages?age<=20


You can find documentation on these features on the "JSON API Docs" page for your Spreadsheet API.

share Share this article

Start using sheet2api now

Be up & running in seconds.

Try for FREE
check_circle No credit card required
check_circle Cancel anytime

library_books Related Articles

Private Google Sheets Support

Up until now to connect your Google Sheets spreadsheet to sheet2api you would have to make your spr…

How To Convert Excel To Google Sheet

Microsoft Excel is the dominant player for many who use spreadsheets in their business, jobs, or fo…

Google Sheets API – Cost, Limits, Explained

Understanding the Google Sheets APIIn 2016, Google introduced the latest iteration of the Google Sh…

notifications Stay Updated

Subscribe to our newsletter to receive the latest updates and articles directly in your inbox.