PHPackages                             webhose/webhoseio-php - 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. webhose/webhoseio-php

ActiveLibrary[API Development](/categories/api)

webhose/webhoseio-php
=====================

Webz.io PHP SDK

101.1k4[2 issues](https://github.com/Webhose/webhoseio-PHP/issues)[1 PRs](https://github.com/Webhose/webhoseio-PHP/pulls)PHP

Since Dec 29Pushed 4y ago7 watchersCompare

[ Source](https://github.com/Webhose/webhoseio-PHP)[ Packagist](https://packagist.org/packages/webhose/webhoseio-php)[ RSS](/packages/webhose-webhoseio-php/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (3)Used By (0)

webz.io client for PHP
======================

[](#webzio-client-for-php)

A simple way to access the [Webz.io](https://webz.io) API from your PHP code:

```
// API Key from: https://webz.io/dashboard
Webz::config("API_KEY");

//Perform a "filterWebContent" query using "United States" as our keywords.
$params = array("q"=>"United States", "size"=>"3");
$result = Webz::query("filterWebContent", $params);

//Fetch the next results using the same terms.
$result = Webz::get_next();
```

API Key
-------

[](#api-key)

To make use of the webz.io API, you'll need an API key.

To get one, sign up at:

And your key will be available here:

Usage
-----

[](#usage)

To get started, you'll need to import the class and configure it with your API key:

```
require_once('webz.php');

// API Key from: https://webz.io/dashboard
Webz::config("API_KEY");
```

**API Endpoints**

The first parameter the query() function accepts is the API endpoint string. Available endpoints:

- filterWebContent - access to the news/blogs/forums/reviews API
- productFilter - access to data about eCommerce products/services
- darkFilter - access to the dark web (coming soon)

Now you can make a request and inspect the results:

```
//Helper method to print result:
function print_filterwebdata_titles($api_response)
{
    if($api_response == null)
    {
        echo "Response is null, no action taken.";
        return;
    }
    if(isset($api_response->posts))
        foreach($api_response->posts as $post)
        {
            echo "" . $post->title . "";
        }
}

//Perform a "filterWebContent" query using "United States" as our keywords.
$params = array("q"=>"United States", "size"=>"3");
$result = Webz::query("filterWebContent", $params);
print_filterwebdata_titles($result);
```

You can traverse the structure as you would any PHP array:

```
//Print more detailed information about the article:

$params = array("q"=>"United States", "size"=>"1");
$result = Webz::query("filterWebContent", $params);

foreach($result->posts as $post)
{
    echo "Site: " . $post->thread->site . "";
    echo "Categories:";
    echo "";
    foreach($post->thread->site_categories as $category) {
        echo "" . $category . "";
    }
    echo "";
}
```

Depending on the endpoint used, the resulting JSON array could provide "posts", "products", ... You can view the JSON in the browser to get a clearer picture of the return data. In order to view the data in the browser, we can enable a debug flag to expose the URL fed to cURL:

```
//If true, echoes the parameterised Webz API URL before executing request.
Webz::enable_debug(true);
```

Full documentation
------------------

[](#full-documentation)

- `Webz::config(api_key)`

    - api\_key - your API key
- `Webz::query(end_point_str, params)`

    - end\_point\_str
        - filterWebContent - access to the news/blogs/forums/reviews API
        - productFilter - access to data about eCommerce products/services
        - darkFilter - access to the dark web (coming soon)
    - params: A key value dictionary. [Read about the available parameters](https://docs.webz.io/).
- `Webz::get_next()` - Fetches the next page of results using the same parameters.
- `Webz::enable_debug(debug_enabled)`

    - debug\_enabled - boolean, If true, echoes the parameterised Webz API URL before executing requests.

Polling
-------

[](#polling)

It is possible to continue a search to fetch more results using the same parameters:

```
//Perform a "productFilter" query using "United Kingdom" as our keywords.
$params = array("q"=>"United Kingdom", "size"=>"1");
$result = Webz::query("productFilter", $params);
print_productsearch_titles($result);

//Fetch the next results using the same terms.
$result = Webz::get_next();
print_productsearch_titles($result);

$result = Webz::get_next();
print_productsearch_titles($result);

//...
//When $result is null, there are no more results available.
```

License
-------

[](#license)

The code of this repository is published under the MIT license

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8767057?v=4)[Ran Geva](/maintainers/rangeva)[@rangeva](https://github.com/rangeva)

---

Top Contributors

[![rangeva](https://avatars.githubusercontent.com/u/8767057?v=4)](https://github.com/rangeva "rangeva (4 commits)")[![yossi-h](https://avatars.githubusercontent.com/u/82390323?v=4)](https://github.com/yossi-h "yossi-h (4 commits)")[![kumaxim](https://avatars.githubusercontent.com/u/9776454?v=4)](https://github.com/kumaxim "kumaxim (3 commits)")[![shaiva16](https://avatars.githubusercontent.com/u/73995532?v=4)](https://github.com/shaiva16 "shaiva16 (1 commits)")

### Embed Badge

![Health badge](/badges/webhose-webhoseio-php/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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