UNPKG

outscraper

Version:

The library provides convenient access to the Outscraper API. Allows using Outscraper's services from your code. See https://outscraper.com for details.

18 lines (13 loc) 415 B
const Outscraper = require('./index'); const outscraper = new Outscraper('YOUR_API_KEY'); async function test() { try { const history = await outscraper.getRequestsHistory(); console.log('History:', history); const searchResults = await outscraper.googleSearch('test query'); console.log('Search Results:', searchResults); } catch (error) { console.error('Error:', error); } } test();