Loading...
Loading...
Query 10 Google verticals (search, news, images, videos, places, maps, shopping, scholar, patents, autocomplete) as structured data via @microlink/google. Use when users need to fetch Google search results programmatically, scrape Google SERP data, build search-powered features, retrieve Google News or Shopping data, get place/map coordinates, find academic papers, or work with any Google vertical through a unified Node.js API.
npx skill4agent add kikobeats/skills microlink-googleconst google = require('@microlink/google')({
apiKey: process.env.MICROLINK_API_KEY
})
const page = await google('Lotus Elise S2')
console.log(page.results)queryawait google('annual report filetype:pdf')
await google('security updates site:github.com')
await google('"machine learning" site:arxiv.org')const page = await google(query, options?)| Option | Type | Default | Values |
|---|---|---|---|
| | | |
| | | ISO 3166-1 alpha-2 country code |
| | — | |
| | — | Results per page |
const page = await google('node.js frameworks')resultsknowledgeGraph?peopleAlsoAsk?relatedSearches?titleurldescriptionhtml()title?type?website?image?description?descriptionSource?descriptionLink?attributes?const page = await google('artificial intelligence', { type: 'news' })titleurldescriptiondatepublisherimage?html()const page = await google('northern lights', { type: 'images' })titleurlimage { url, width, height }thumbnail { url, width, height }google?creator?credit?html()const page = await google('cooking tutorial', { type: 'videos' })titleurldescriptionimage?video?duration?duration_pretty?publisher?channel?date?html()const page = await google('coffee shops denver', { type: 'places' })titleaddresslatitudelongitudephone?url?cidhtml()const page = await google('apple store new york', { type: 'maps' })titleaddresslatitudelongituderating?ratingCount?price? { level }type?types?url?phone?description?opening?thumbnail?cidfid?place?html()const page = await google('macbook pro', { type: 'shopping' })titleurlpublisherprice { symbol, amount }image?rating? { score, total, reviews? }id?html()const page = await google('transformer architecture', { type: 'scholar' })titleurldescriptionpublisheryearcitationspdf?idhtml()const page = await google('touchscreen gestures apple', { type: 'patents' })titledescriptionurlpriorityfilinggrant?publicationinventorassigneelanguagepdf?thumbnail?figures?id?html()const page = await google('how to', { type: 'autocomplete' })valueurlhtml().next()const page1 = await google('query')
const page2 = await page1.next()let page = await google('node.js frameworks')
while (page) {
for (const result of page.results) {
console.log(result.title)
}
page = await page.next()
}url.html()const { results } = await google('node.js frameworks')
const html = await results[0].html().html()