Search by

websitecategorization / websitecategorizationapi

optimiser4

Website categorization API

Package info

github.com/optimiser4/websitecategorizationapi

Homepage

Documentation

pkg:composer/websitecategorization/websitecategorizationapi

Statistics

Installs: 0

Dependents: 0

Suggesters: 5

Stars: 2

Open Issues: 0

dev-main 2026-09-20 02:16 UTC

This package is auto-updated.

Last update: 2026-09-20 02:16:56 UTC


README

PHP client for the Website Categorization API, which classifies websites and texts into IAB content taxonomy categories using machine learning.

Usage

See websitecategorization/websitecategorizationapi/index.php for a working cURL example that posts a URL to the classification endpoint and prints the JSON response.

$curl = curl_init();
curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://www.websitecategorizationapi.com/api/iab/iab_category1_url.php',
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => 'query=www.microsoft.com&data_type=url',
  CURLOPT_RETURNTRANSFER => true,
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;

Our other services

We also provide a resume parsing API, the Resume Reader API turns PDF and DOCX resumes into structured JSON (work history, education, skills, contact data) for HR platforms and applicant tracking systems.

Text sent to a categorization endpoint from forms, tickets, or CRM records often includes customer identifiers that should never leave your perimeter unredacted. With a personally identifiable information detection service you can locate and mask names, emails, IBANs, and phone numbers in PHP applications with a single API call. Running PII redaction before any third-party processing is one of the simplest GDPR safeguards to retrofit into an existing codebase.

PHP backends that orchestrate AI agents need a fast answer to one question: is this URL safe for the agent to open? A page-type lookup API returns each domain's verified login, checkout, pricing, and documentation URLs so your code can enforce allow/deny rules before navigation. Adding AI agent web access control is one HTTP call per decision.

Related packages