Skip to content

About

Google Sheets Apps Script: =SPECSTREAM_SEARCH, =SPECSTREAM_EXTRACT and public data list formulas for live web search and page text in your sheet. Paste one Code.gs. $1 per 1,000 fast searches.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Sheets Apps Script for live web search, page text and public data lists: =SPECSTREAM_SEARCH()

One file to paste into a sheet's Apps Script editor. It adds formulas that search the live web, read any page as Markdown and pull public data lists into Google Sheets, from SpecStream, the live web data engine. First on WideSearch and 99 on SimpleQA Verified, at $1 per 1,000 fast searches with a 937 ms median over 6,548 live calls in the 7 days to December 1, 2026.

Formula Returns Key Price
=SPECSTREAM_SEARCH("best crm for startups", 10) a table: Title, URL, Snippet, Published yes $1 per 1,000 searches
=SPECSTREAM_ANSWER("When does the EU AI Act apply to general purpose models?") the direct answer and the page it was read from yes $1 per 1,000 searches
=SPECSTREAM_EXTRACT("https://www.fdic.gov/bank-failures") the page's main text as Markdown, PDFs and Office files included yes $0.80 per 1,000 pages
=SPECSTREAM_LISTS("bank failures texas") public data lists that match: page, title, rows, price no free
=SPECSTREAM_SAMPLE("/data/crowdfunding") a list's 10 newest rows, each with its source URL no free

Set up, about a minute

  1. In your sheet, open Extensions, Apps Script.
  2. Replace the contents of Code.gs with Code.gs from this repo, and save.
  3. Reload the sheet. A SpecStream menu appears; choose Set API key and paste a key from Agents & API at specstream.ai/workspace. Google asks once for permission to call an outside service.

A new account gets $2 of credit with no card, which is 2,000 fast searches. SPECSTREAM_LISTS and SPECSTREAM_SAMPLE work before you set a key.

The key is saved in the user properties of whoever sets it, which other editors cannot read. Google runs formulas with the user properties of the spreadsheet's owner, so the owner sets the key, and every formula in the sheet, whoever types it, runs on that key (Google's custom function guide).

The menu

  • Import a data list sample: asks for a list page such as /data/business-registrations/texas and writes its newest rows to a new tab, formatted as text first so ZIP codes, SEC CIKs and entity numbers keep their leading zeros.
  • Find data lists: writes the lists that match your words to a new tab.

Browse every list at specstream.ai/data: public companies, bank failures, crowdfunding raises, business registrations, permits, tenders, store locations and more.

Good to know

  • Every reply is kept for 6 hours in the script cache, so reopening or recalculating the sheet reuses it instead of searching again.
  • SPECSTREAM_EXTRACT keeps up to 50,000 characters, the most a cell holds. Pass a smaller number as the second argument to keep less.
  • Errors read in plain words in the cell: a missing key, a key SpecStream did not accept, or a page that could not be read.

Tested

node tests/run.js runs Code.gs in Node with stand ins for UrlFetchApp (real HTTP through curl), CacheService, PropertiesService, Utilities and SpreadsheetApp, against a local stub of the API's reply shapes with a null answer, null titles and dates and empty cells: the no key message, the fast tier, the cache on recalculation, the 50,000 character cap and the text format on import. SPECSTREAM_LISTS runs live. node --check < Code.gs passes.

Prices

Price
Free credit on sign-up $2, which is 2,000 fast searches, no card
Fast search $1 per 1,000
Default search tier $5 per 1,000
Extract API, page text as Markdown $0.80 per 1,000 pages
Monthly Pro Pass $49 a month: 5,000 ready list rows a month and $49 of API credit

License

MIT

About

Google Sheets Apps Script: =SPECSTREAM_SEARCH, =SPECSTREAM_EXTRACT and public data list formulas for live web search and page text in your sheet. Paste one Code.gs. $1 per 1,000 fast searches.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages