simple-google-image-search
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Google Image Search

This is a simple library to get an image URL from a search string via Google search.

Prerequisites

  1. Create a new search engine here, check image search and copy your search engine key
  2. Create a new Google Custom Search API key here

Install

npm i -S simple-google-image-search

Usage

import {GoogleImageSearch} from 'simple-google-image-search';

const imageSearch = new GoogleImageSearch("your API key", "your search engine key");

// Get an image URL of a banana
imageSearch.getImageUrl('banana').then((res) => {
  console.log(res);
});

Dependents (0)

Package Sidebar

Install

npm i simple-google-image-search

Weekly Downloads

1

Version

1.2.0

License

ISC

Unpacked Size

4.18 kB

Total Files

5

Last publish

Collaborators

  • matthiasunt