Download the PHP package zanysoft/laravel-serpapi without Composer
On this page you can find all versions of the php package zanysoft/laravel-serpapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zanysoft/laravel-serpapi
More information about zanysoft/laravel-serpapi
Files in zanysoft/laravel-serpapi
Package laravel-serpapi
Short Description Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com
License MIT
Homepage http://github.com/zanysoft/laravel-serpapi
Informations about the package laravel-serpapi
laravel-serpapi
Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com
This is where your description should go.
Installation
You can install the package via composer:
Configuration
You can publish the config file with:
This is the contents of the published config file:
Get "your api key" from https://serpapi.com/dashboard
Usage
Then you can start coding something like:
Alternatively, you can search:
- Bing using
SerpApi::BingSearch()
- Baidu using
SerpApi::BaiduSearch()
- Ebay using
SerpApi::EbaySearch()
- Yahoo using
SerpApi::YahooSearch()
- Yandex using
SerpApi::YandexSearch()
- Walmart using
SerpApi::WalmartSearch()
- Youtube using
SerpApi::YoutubeSearch()
- HomeDepot using
SerpApi::Search($engine)
- Apple App Store using
SerpApi::Search($engine)
- Naver using
SerpApi::NaverSearch()
See the playground to generate your code. https://serpapi.com/playground
Examples
Search API capability
Location API
it prints the first 3 location matching Austin (Texas, Texas, Rochester)
Account API
it prints your account information.
Search Google Images
this code prints all the images links
Conclusion
SerpApi supports all the major search engines. Google has the more advance support with all the major services available: Images, News, Shopping and more.. To enable a type of search, the field tbm (to be matched) must be set to:
- isch: Google Images API.
- nws: Google News API.
- shop: Google Shopping API.
- any other Google service should work out of the box.
- (no tbm parameter): regular Google search. The field tbs allows to customize the search even more.
The full documentation is available here.
License
The MIT License (MIT). Please see License File for more information.