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.

Start your 7-day free trial
check_circle 7-day free trial
check_circle Cancel anytime

library_books Related Articles

How to Convert a Google Sheet to Excel

Many people use Google Sheets for its ease of access and real-time collaboration features. However,…

Convert Excel To Google Sheets: A Hassle-Free Guide

Ever created a spreadsheet in Microsoft Excel and then needed to collaborate with someone who doesn…

How to Convert Sheet to Google Sheets

Converting your Excel spreadsheets to Google Sheet improves accessibility and ease of use. Whether …

notifications Stay Updated

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

Clara from sheet2api