Download the PHP package webbamboo/seoresearch-serp-sdk without Composer
On this page you can find all versions of the php package webbamboo/seoresearch-serp-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webbamboo/seoresearch-serp-sdk
More information about webbamboo/seoresearch-serp-sdk
Files in webbamboo/seoresearch-serp-sdk
Package seoresearch-serp-sdk
Short Description Google search API for PHP. No proxies, no CAPTCHA solving and no parsing results, our API does all the work you just handle your business logic.
License MIT
Homepage https://seoresearch.net
Informations about the package seoresearch-serp-sdk
Google SERP Results in PHP
SEOResearch SERP API enables you to scrape Google search results straight from your code. It requires a free registration at Seoresearch.net
Quick start
For composer (Packagist).
Load the dependency in your script:
Get your api key and secret from https://app.seoresearch.net/user/profile
Usage
You can check out the examples folder for usage examples. The workflow is the following
- You create a SERP request - This adds your SERP query to our system and one of our bots will process it in up to 10 minutes, depending on the current load. You can provide an "Endpoint" parameter where our server can POST the results once they are dono, or you can manually query the serper
- Get SERP results - You query our API with the ID you've received in the previous method
Instantiate the api object with your api key and secret
Get SERP history
Create SERP request
Get SERP results
Webhook
Anatomy of a SERP object
In order to populate a Serp object you can set the following properties: location, endpoint, mobile, keyword. You can see more about how that works in the Create SERP request section. Methods:
- fromId(Sdk $sdk, $id) - Queries the API and hydrates the Serp object with the data. Takes an SDK object and Serp ID as a parameter.
- fromData($apiData) - Hydrates a Serp object from API response string
- sendToApi(Sdk $sdk) - Creates the actual Serp object in the API and updates the Serp object with the ID of the created resource