Skip to content

About

Excel Power Query (M) and Office Scripts that pull live web search, page text and SpecStream public data lists into Excel and Power BI. Refreshable, leading zeros kept.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Excel Power Query and Office Scripts for live web search and public data lists

Ready to paste Power Query (M) queries and Office Scripts that pull SpecStream data into Excel: live web search results, any page as Markdown, and the rows of public data lists, refreshable like any other query. SpecStream is 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.

Power Query (Excel for Windows and Mac, Power BI)

Data, Get Data, From Other Sources, Blank Query, Advanced Editor, then paste a file from power-query/ and change the values at its top.

File Gives you Key Price
SpecStreamListSample.pq a list's 10 newest rows, every column as text no free
SpecStreamFindLists.pq public data lists that match your words: page, title, rows, price, link no free
SpecStreamWebSearch.pq live search results: title, URL, snippet, published yes $1 per 1,000 searches
SpecStreamExtract.pq the main text of up to 20 pages, PDFs or Office files as Markdown yes $0.80 per 1,000 pages
SpecStreamListRows.pq every row of a list since a date, up to a spending cap you set, cursor followed yes per row; a row you already had comes again free
SpecStreamKey.pq a parameter query named SpecStreamKey that holds your key

For the queries with a key, first create a blank query named SpecStreamKey from SpecStreamKey.pq with your key in it. Get a key under Agents & API at specstream.ai/workspace; a new account gets $2 of credit with no card, which is 2,000 fast searches. When Excel asks how to connect to https://api.specstream.ai, choose Anonymous: the queries send the key in the Authorization header themselves.

Every query calls Web.Contents on the fixed address https://api.specstream.ai with RelativePath and Query, the form that Power BI's scheduled refresh accepts. The keyed queries read SpecStream's error message, so a missing key or used up credit shows in plain words instead of a bare HTTP error.

SpecStreamListRows.pq is the one to schedule: set Page, Since and MaxCents, and each refresh pays only for rows that are new to you. The Monthly Pro Pass includes 5,000 ready list rows a month.

Office Scripts (Excel on the web and Windows, Microsoft 365)

Automate, New Script, paste a file from office-scripts/, save.

Script How to run it Key
SpecStreamSearch.ts type a question in a cell, select it, run: the answer and results land on a SpecStream Search sheet yes
SpecStreamListSample.ts type a list page such as /data/business-registrations/texas in a cell, select it, run: its newest rows land on a new sheet no

The search script reads your key from cell B1 of a sheet named SpecStream Settings. Both scripts format the cells as text before writing, so ZIP codes, SEC CIKs and entity numbers keep their leading zeros. SpecStream's API answers the browser origin Office Scripts run from, so fetch works from Excel. Microsoft allows outside calls from Excel itself, not from Power Automate flows.

Lists to start with

List Rows on Dec 2, 2026 Page
Public companies that file annual reports with the SEC 6,761 /data/public-companies
US bank failures since 1934 4,119 /data/bank-failures
Crowdfunding raises filed with the SEC (Form C) 9,225 /data/crowdfunding
New US business registrations from 9 open data portals 248,153 /data/business-registrations

Every list: specstream.ai/data.

Tested

  • Power Query: every .pq file lexes and parses with Microsoft's M parser, @microsoft/powerquery-parser (node tests/parse-m.mjs), which rejects a broken file. The no key requests they make were run live with the same address and query.
  • Office Scripts: node tests/run-office-scripts.mjs type checks each script with TypeScript 5 in strict mode against the ExcelScript signatures from Microsoft's reference, then runs it with a mock workbook against a local stub of the API's reply shapes (null answer, null title and date) and checks the key message, the fast tier, the cells written and the text format.

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

Related data and plans

License

MIT

About

Excel Power Query (M) and Office Scripts that pull live web search, page text and SpecStream public data lists into Excel and Power BI. Refreshable, leading zeros kept.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages