In various posts such as this one, I’ve covered new entries to the REST library but it’s been kind of haphazard. Since I’m adding these regularly I figured I’d make a quick post like this for every new one.
Today’s API is “duckduckgo disambiguation” – a straightforward single query API, populating a spreadsheet with this result for an example query, ‘Santa’
Here’s the Excel code (included in cDataSet.xlsm downloadable from the ramblings site)
Public Sub testDuckDuckGo() generalQuery "duckduckgo", "duckduckgo", _ InputBox("Enter your duckduckgo query") End Sub
and the GAS version (included in a Google Spreadsheet) using the mcpher GAS library
function testDuckDuckGo() { mcpher.generalQuery ("duckduckgo", "duckduckgo", mcpher.InputBox("Enter your duckduckgo query")); }
The rest library is itself implemented as REST API and can be queried like this.
For more stuff like this, visit the ramblings site or the associated blog. If you have suggestion for particular API or contact me on our forum