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

How to Use Google Sheets as a Database

Google Sheets can be a simple and cost-effective solution for using a spreadsheet as a database…

Python Client Released

We love open-source software and we're always looking for new ways to make it easier for our user…

How to Convert Excel into Google Sheet: A Step-by-Step Guide

If you're looking to switch from Excel to Google Sheets, you're in the right place. You’re reading …

notifications Stay Updated

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