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

PHP SDK

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

It provides a clean interface for:

  • Google SERP searches

  • Scheduled SERP jobs

  • Account information

  • Supported domains

  • Languages

  • Locations

Instead of manually building HTTP requests, you interact with PHP methods while the SDK handles authentication and API communication.


Requirements

  • PHP 7.2+

  • Composer


Installation

Install using Composer.


Get your API Key

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

Initialize the Client

That's all that's required before calling any endpoint.


Retrieve Google search results instantly.


Instead of waiting for results immediately, schedule a search.


Check Search Status


Get Search Result

Return HTML instead of JSON:


Domains


Languages

For Bing:


Locations


Account


Working with Responses

Every SDK call returns a Responses object.

Retrieve the HTTP status code:

Retrieve the API response:

Retrieve the error message:


Exception Handling

The SDK throws dedicated exception classes for common API errors.

Supported exceptions include:

  • SERPHouseUnauthorizedException

  • SERPHouseRateLimitExceededException

  • SERPHousePaymentRequiredException

  • SERPHouseNotFoundException

  • SERPHouseServerErrorException


Support

If you encounter any issues while installing, configuring, or using the SERPHouse PHP 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-php

Last updated