google-search-suggestions-api
v1.0.0
Published
A lightweight API to fetch Google search suggestions for a given query.
Maintainers
Readme
Google Search Suggestions API
This project provides a simple API to fetch Google search suggestions for a given query. It is designed to be used as an npm package or as a standalone module.
Features
- Fetches search suggestions from Google.
- Lightweight and easy to use.
- Compatible with modern JavaScript (ES Modules).
Prerequisites
- Node.js: This project was last tested successfully on Node.js version
v22.12.0. Please ensure you are using this version or a compatible one.
Installation
To install this package, use npm:
npm install google-search-suggestions-apiUsage
You can use this package in your Node.js project to fetch search suggestions. Below is an example:
import { getSearchSuggestions } from "google-search-suggestions-api";
(async () => {
const query = "javascript";
const suggestions = await getSearchSuggestions(query);
console.log(suggestions);
})();Output
The getSearchSuggestions function returns an array of search suggestions for the given query.
License
This project is licensed under the ISC License.
