For the complete documentation index, see llms.txt. This page is also available as Markdown.

Node.js SDK

The official Node.js SDK makes it easy to integrate the SERPHouse API into any Node.js application.

Instead of manually creating HTTP requests, the SDK handles authentication, request formatting, and response parsing so you can focus on building your application.

The SDK provides access to:

  • Google SERP API

  • Bing SERP API

  • Yahoo SERP API

  • Domains

  • Languages

  • Locations

  • Account information


Requirements

  • Node.js 16+

  • npm or yarn


Installation

Install the SDK using npm.

or with Yarn


Get Your API Key

Create a SERPHouse account and generate an API key from your dashboard.


Initialize the Client

Using environment variables is recommended.


Quick Start

Perform a live Google search.


Available Services

The SDK exposes the following services.

Service
Description

client.serp

Google, Bing & Yahoo SERP APIs

client.domains

Supported domains

client.languages

Supported languages

client.locations

Search locations

client.account

Account information


SERP API

Retrieve search results immediately.


Schedule searches for asynchronous processing.


Check Search Status


Get Search Results

Retrieve raw HTML.


Domains

Retrieve all supported search domains.


Languages

Retrieve supported languages.

Retrieve Bing languages.


Locations

Search available locations.


Account

Retrieve account details.


Error Handling

Handle API errors using try...catch.


Using Async/Await

All SDK methods return Promises.


Environment Variables

Store your API key securely.


Complete Example


Support

If you encounter any issues while installing, configuring, or using the SERPHouse Node.js SDK, we're here to help.

  • Contact the SERPHouse support team for assistance.

  • Report bugs or request features by opening an issue on the GitHub repository.

GitHub Repository:

https://github.com/SERPHouse/serphouse-nodejs

Last updated