Search by

Omnicrawl's Zyte API, under any PHP host: pages fetched over HTTP with the target's headers, behind omnicrawl's gate - and only for targets declared under a licence (one's own site, written permission), because Zyte's ban avoidance cannot be turned off and may override the User-Agent. No browser mod

1.x-dev 2026-11-10 07:18 UTC

This package is not auto-updated.

Last update: 2026-11-10 17:35:46 UTC


README

Zyte API for omnisense/omnicrawl, under any PHP host. Pages over HTTP (POST /v1/extract) with the target's headers - for targets declared as one's own site or with written permission only, because Zyte's ban avoidance cannot be turned off.

It is reached through omnicrawl's gate only: every address is admitted first (the target's declaration, robots.txt read by the core, TDM reservations, the host's limits), the service is called after, and what it brings back is checked again and made a record with its provenance. Read what omnicrawl refuses to do, and why.

$registry = new Registry([new ZyteFactory($http)], [
    'zyte' => ['factory' => 'zyte', 'options' => ['api_key' => 'ZYTE_API_KEY']],
], $gate);

The key goes by reference: ZYTE_API_KEY names an environment variable (or a secret of the SecretsInterface given to the factory), never the key itself. Its usage policy is policy.json (limits, terms, what they say of lawful use), read on the day it says. See docs/index.md.

Tested on recorded answers written from the service's documentation; no test calls the service.

MIT licence.