Docs
CommunityJev Demos & Experiments
Airbnb Listing Search in Google Sheets
A Google Sheets demo that scores 1,000 Cape Town Airbnb listings against a plain-English request using the JEV_TOP10 custom formula, returning the 10 best matches with a mark out of 10 in about a second.
- Format
- Docs
- Reading time
- 2 min
- Published by
- Community
- Added
- Nov 23, 2026
Highlights
- JEV_TOP10 takes a plain-language request in B2 plus a listing range and returns the top 10 with 0-10 match scores.
- Two stages: a Choice question over groups of 100 listing IDs shortlists 5 per group, then one Score question per shortlisted listing.
- 1,000 requests become 11, and the search finishes in about a second instead of exceeding the 30-second Sheets formula limit.
- Results are cached for six hours per request, so editing other cells does not rerun the search.
- Requires a TypeSafe API key stored as TYPESAFE_API_KEY in Apps Script script properties.
Questions about this entry
Short answers drawn from the linked project or page.
Copy the Google Sheet, open Extensions > Apps Script, paste the Code.gs file, and save. Then add your TypeSafe API key under Project Settings > Script properties as TYPESAFE_API_KEY, and type a request in cell B2.
It needs a TypeSafe API key, created in the TypeSafe console. Store it in Apps Script under Project Settings > Script properties with the name TYPESAFE_API_KEY. The script throws an error if the property is missing.
Eleven instead of 1,000. Ten parallel Choice requests each rank a group of 100 listing IDs and pass the 5 most likely through, then one request holds the shortlisted listings with a Score question per listing.
One request per listing is fast individually, but 1,000 of them in sequence take more than 30 seconds, and Google Sheets stops a custom formula at 30 seconds. The shortlist-then-score split keeps the search near a second.
The range must be Name, Type, Price per night (R), Bedrooms, Guests, Rating, Description, and Link, as in Listings!A2:H1001. The formula is written as =JEV_TOP10(B2, Listings!A2:H1001).
Results are cached for six hours per request. Editing other cells in the sheet does not run the search again, so only a new request in B2 triggers new Jev calls.
Anyone with edit access to your copy can see the API key stored in script properties. The Score question also uses five levels, from Not a match at all to Matches everything asked for, so each mark reflects how much of the request a listing covers.
From the Jev guides
Original write-ups on what this entry is for.
From the Jev AI model community
Posts from builders shipping with Jev right now.