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 |
- In your sheet, open Extensions, Apps Script.
- Replace the contents of
Code.gswithCode.gsfrom this repo, and save. - 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).
- Import a data list sample: asks for a list page such as
/data/business-registrations/texasand 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.
- Every reply is kept for 6 hours in the script cache, so reopening or recalculating the sheet reuses it instead of searching again.
SPECSTREAM_EXTRACTkeeps 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.
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.
| 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 |
- SpecStream for Google Sheets: specstream.ai/integrations/google-sheets
- Search API: specstream.ai/search-api
- Extract API: specstream.ai/extract-api
- Prices: specstream.ai/pricing
MIT