PHPackages                             outscraper/outscraper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. outscraper/outscraper

ActiveLibrary[API Development](/categories/api)

outscraper/outscraper
=====================

PHP bindings for the Outscraper API

v4.2.5(2mo ago)1822.2k↓13%7[1 issues](https://github.com/outscraper/outscraper-php/issues)MITPHPPHP &gt;=7.4

Since Nov 20Pushed 2mo agoCompare

[ Source](https://github.com/outscraper/outscraper-php)[ Packagist](https://packagist.org/packages/outscraper/outscraper)[ Docs](https://outscraper.com/)[ RSS](/packages/outscraper-outscraper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)DependenciesVersions (28)Used By (0)

Outscraper PHP Library
======================

[](#outscraper-php-library)

The library provides convenient access to the [Outscraper API](https://app.outscraper.com/api-docs) from applications written in the PHP language. Allows using [Outscraper's services](https://outscraper.com/services/) from your code.

[API Docs](https://app.outscraper.com/api-docs)

[![screencast](https://camo.githubusercontent.com/6129b42141404a56e88cb9ac0111636ea4d271fdff565b58551848a0a2a11671/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f76312e59326c6b505463354d4749334e6a45784d7a5530596a526a593255794d444d785a446c6c4e6a4e694d5445304d5467334d574978596d457a4f44686d596a59795a6a4e6a59695a6a6444316e2f41683738696d743847326d5347416671506d2f67697068792e676966)](https://camo.githubusercontent.com/6129b42141404a56e88cb9ac0111636ea4d271fdff565b58551848a0a2a11671/68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f76312e59326c6b505463354d4749334e6a45784d7a5530596a526a593255794d444d785a446c6c4e6a4e694d5445304d5467334d574978596d457a4f44686d596a59795a6a4e6a59695a6a6444316e2f41683738696d743847326d5347416671506d2f67697068792e676966)

Installation
------------

[](#installation)

### Composer

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require outscraper/outscraper
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once('vendor/autoload.php');
```

### Manual Installation

[](#manual-installation)

If you do not wish to use Composer, you can download the [latest release](https://github.com/outscraper/outscraper-php/releases). Then, to use the bindings, include the `init.php` file.

```
require_once('/path/to/outscraper-php/init.php');
```

[Link to the PHP package page](https://packagist.org/packages/outscraper/outscraper)

Initialization
--------------

[](#initialization)

```
$client = new OutscraperClient("SECRET_API_KEY");
```

[Link to the account page to create the API key](https://app.outscraper.com/account/api)

Google Maps Scraper
-------------------

[](#google-maps-scraper)

Scrape Google Mpas results bu query "asian restaurants Berlin, Germany".

```
$results = $client->google_maps_search(['asian restaurants Berlin, Germany'], 'en', 'DE');

print_r($results);
```

Google Maps Reviews Scraper
---------------------------

[](#google-maps-reviews-scraper)

Scrape Google Mpas reviews from Statue of Liberty National Monument.

```
$results = $client->google_maps_reviews([
    'https://www.google.com/maps/place/Statue+of+Liberty+National+Monument/@40.6892494,-74.0466891,17z/data=!3m1!4b1!4m5!3m4!1s0x89c25090129c363d:0x40c6a5770d25022b!8m2!3d40.6892494!4d-74.0445004'
], limit: 10, sort: 'newest');
// you can use direct links, IDs, or names as input for query

print_r($results);
```

Scrape Emails &amp; Contacts from domains.

```
$results = $client->emails_and_contacts([
    'outscraper.com'
]);

print_r($results);
```

[More examples](https://github.com/outscraper/outscraper-php/tree/master/examples)

Contributing
------------

[](#contributing)

Bug reports and pull requests are welcome on GitHub at .

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance84

Actively maintained with recent releases

Popularity38

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 53.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~91 days

Recently: every ~67 days

Total

18

Last Release

85d ago

Major Versions

v1.6.0 → v2.0.02022-10-10

v2.0.1 → v3.0.02023-01-31

v3.2.0 → v4.0.02024-11-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/aa6d05de4712d150cbda0840690f5989bbfd76655024712667a09f9cb39e099e?d=identicon)[outscraper](/maintainers/outscraper)

---

Top Contributors

[![vlad-stack](https://avatars.githubusercontent.com/u/60986120?v=4)](https://github.com/vlad-stack "vlad-stack (17 commits)")[![kseniia-maiesh](https://avatars.githubusercontent.com/u/106063826?v=4)](https://github.com/kseniia-maiesh "kseniia-maiesh (8 commits)")[![Stepbus](https://avatars.githubusercontent.com/u/73597994?v=4)](https://github.com/Stepbus "Stepbus (6 commits)")[![pdalexis](https://avatars.githubusercontent.com/u/7503558?v=4)](https://github.com/pdalexis "pdalexis (1 commits)")

---

Tags

google-apigoogle-maps-apigoogle-maps-scrapinggoogle-rating-apigoogle-reviews-apigoogle-scrapinggoogle-serp-apiphpscraperscrapingscraping-pythonscraping-websitesserp-apigoogleextractorgoogle mapsscraperwebscraperGoogle Maps scraperGoogle Reviews scraperscrape google mapsoutscraper

### Embed Badge

![Health badge](/badges/outscraper-outscraper/health.svg)

```
[![Health](https://phpackages.com/badges/outscraper-outscraper/health.svg)](https://phpackages.com/packages/outscraper-outscraper)
```

###  Alternatives

[outscraper/google-maps-scraper-php

PHP bindings for the Outscraper API

185.1k](/packages/outscraper-google-maps-scraper-php)[google/apiclient

Client library for Google APIs

9.8k191.4M997](/packages/google-apiclient)[google/apiclient-services

Client library for Google APIs

1.3k180.5M51](/packages/google-apiclient-services)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)[revolution/laravel-google-sheets

Google Sheets API v4

4483.1M6](/packages/revolution-laravel-google-sheets)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
