# Ai Website Compliance Inspector (`azhalm/ai-website-compliance-inspector`) Actor

Effortlessly detect high‑risk regulatory or compliance red flags on business websites using AI-powered screening.

- **URL**: https://apify.com/azhalm/ai-website-compliance-inspector.md
- **Developed by:** [Almustafa Azhari](https://apify.com/azhalm) (community)
- **Categories:** AI, Automation, Other
- **Stats:** 20 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## AI Website Compliance Inspector Actor

**Effortlessly detect high‑risk regulatory or compliance red flags on business websites using AI-powered screening.**

***

### What is AI Website Compliance Inspector Actor?

This Actor inspects business websites provided by users and pinpoints **high‑risk compliance issues** (e.g., missing
disclosures, misleading claims, unauthorized regulated activities). It returns a structured JSON report, detailing the
issue and associated regulatory implication (e.g., GDPR, MiFID II, KYC, anti‑money laundering).

***

### Why use this Actor?

Ideal for compliance teams, auditors, or service providers who need quick insight into potential regulatory flags on
business websites. It:

- Automates initial compliance review efforts,
- Provides clarity on legal liabilities,
- Supports auditing workflows with actionable insights.

***

### Use Cases

- **Auditing** your business website for compliance gaps.
- **Pre‑onboarding checks** for new business clients.
- Monitoring **regulatory exposure** across partner websites, especially in finance, data privacy, or e‑commerce.
- Flagging **potentially deceptive content** before public release or investments.

***

### Input

Provide JSON input with the following schema:

- `url`: *(string)* The webpage URL to review.
- `business_details`: *(object)* Contextual details about the business (e.g., name, incorporation date).
- `max_depth`: *(int)* Optional. The maximum depth for crawling links on the page (default is 1).
- `max_pages`: *(int)* Optional. The maximum number of pages to crawl (default is 1).
- `allowed_domains`: *(array of strings)* Optional. List of domains to restrict crawling to (default is empty).

```json
{
  "url": "https://example.com/terms-and-conditions",
  "business_details": {
    "name": "Example Corp",
    "incorporation_date": "2020-01-01"
  }
}
```

### Output

The Actor returns a structured JSON report with the following schema:

- `url`: *(string)* The URL that was inspected.
- `title`: *(string)* The title of the inspected webpage.
- `issues`: *(array)* List of identified compliance issues.
  - `description`: *(string)* Description of the compliance issue.
  - `implication`: *(string)* Implication of the issue (e.g., potential legal risk, regulatory breach).
  - `severity`: *(string)* Severity level of the issue (e.g., low, medium, high).

```json
{
  "url": "https://example.com/terms-and-conditions",
  "title": "Terms and Conditions - Example Corp",
  "issues": [
    {
      "description": "Missing GDPR data processing disclosure.",
      "implication": "Potential breach of GDPR Article 13.",
      "severity": "high"
    },
    {
      "description": "Misleading claim about product effectiveness.",
      "implication": "Possible violation of advertising standards.", 
      "severity": "high"
    }
  ]
}
```

### How it works

1. Scrapes and extracts clean text content from the provided URL.
2. Sends the content and business context to an AI model for compliance analysis.
3. The AI model returns structured compliance findings.
4. Outputs are stored and accessible via Apify Dataset.

### How much does it cost?

This Actor will cost you **$0.005 per page**. The cost is based on the number of pages crawled and processed, which is
typically low for most business websites.

### Help & support

This actor is under active development. If you encounter any issues or have suggestions, please open an issue on
the [submit an issue](https://console.apify.com/actors/z4NhIRGurWgKqE2m2/issues)

Thank you for using the AI Website Compliance Inspector Actor! We hope it helps streamline your compliance review
processes.

# Actor input Schema

## `url` (type: `string`):

The URL of the website to inspect for compliance.

## `max_depth` (type: `integer`):

The maximum number of links starting from the start URL that the crawler will recursively descend. The start URLs have a depth of 0, the pages linked directly from the start URLs have a depth of 1, and so on.

This setting is useful to prevent accidental crawler runaway. By setting it to 0, the Actor will only crawl start URL.

## `max_pages` (type: `integer`):

The maximum number pages to crawl. It includes the start URL, pagination pages, pages with no content, etc. The crawler will automatically finish after reaching this number. This setting is useful to prevent accidental crawler runaway.

## `allowed_domains` (type: `array`):

A list of domains to restrict the crawler to. If empty, the crawler will restrict itself to the domain of the start URL. This setting is useful to prevent accidental crawler runaway.

## `business_details` (type: `object`):

Details about the business to be used in the compliance inspection.

## Actor input object example

```json
{
  "url": "https://www.paypal.com/ae/legalhub/paypal/upcoming-policies-full",
  "max_depth": 1,
  "max_pages": 1,
  "business_details": {
    "name": "Paypal",
    "incorporation_date": "1998-12-01"
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "url": "https://www.paypal.com/ae/legalhub/paypal/upcoming-policies-full",
    "business_details": {
        "name": "Paypal",
        "incorporation_date": "1998-12-01"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("azhalm/ai-website-compliance-inspector").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "url": "https://www.paypal.com/ae/legalhub/paypal/upcoming-policies-full",
    "business_details": {
        "name": "Paypal",
        "incorporation_date": "1998-12-01",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("azhalm/ai-website-compliance-inspector").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "url": "https://www.paypal.com/ae/legalhub/paypal/upcoming-policies-full",
  "business_details": {
    "name": "Paypal",
    "incorporation_date": "1998-12-01"
  }
}' |
apify call azhalm/ai-website-compliance-inspector --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,azhalm/ai-website-compliance-inspector"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/z4NhIRGurWgKqE2m2/builds/r8IIo9mtHJFgCHDu1/openapi.json
