# Domain Trust Check (`wiggly_book/domain-trust-check`) Actor

Surface-level website trust check for small businesses and agencies. Checks HTTPS, basic security headers, privacy policy/contact/terms pages, and returns a plain-English summary.

- **URL**: https://apify.com/wiggly\_book/domain-trust-check.md
- **Developed by:** [Mack](https://apify.com/wiggly_book) (community)
- **Categories:** SEO tools, Developer tools, Automation
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$20.00 / 1,000 domain checkeds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Domain Trust Check — Apify Actor

A **surface-level trust check**, not a full security audit.

**By FromTheScope** — lightweight privacy/security tools for small businesses and agencies.

### What it does

Give it a domain and it returns a structured report showing:

- **HTTPS** — Is it working? Does HTTP redirect to HTTPS?
- **Security headers** — HSTS, CSP, X-Frame-Options, Referrer-Policy, Permissions-Policy
- **Reachable pages** — privacy policy, contact page, terms of service
- **Risk flags** — clear warnings about missing security basics
- **Plain English summary** — one sentence that tells you what's good and what's not

### What it does not do

- No deep vuln scanning
- No JS-rendered page crawling
- No login handling
- No full compliance review
- No guarantee that a site is safe, legit, or trustworthy

### Input

```json
{
  "domains": ["example.com", "your-business.com"]
}
```

### Output (one item per domain)

```json
{
  "domain": "example.com",
  "https_works": true,
  "http_redirects": false,
  "status_code": 200,
  "title": "Example Domain",
  "security_headers": {
    "strict-transport-security": { "present": false },
    ...
  },
  "reachable_pages": { "privacy": false, "contact": false, "terms": false },
  "risk_flags": [
    "HTTP does not redirect to HTTPS",
    "Missing security headers: HSTS, CSP",
    "No privacy policy found"
  ],
  "plain_english": "Domain uses HTTPS (status 200) — HTTP does NOT redirect to HTTPS — 0/5 security headers detected — 0/3 common pages reachable — ⚠ 4 issues found"
}
```

### Use cases

- **Agencies** — run a quick trust check before onboarding clients
- **Small businesses** — check if your own site looks credible
- **Freelancers** — audit prospects before quoting
- **OSINT/Research** — quick domain signal check

### Cost

This actor uses plain HTTP requests — no headless browser — so it's one of the cheapest actors to run. A typical check costs pennies.

### Pricing

- **$0.02 per domain checked**
- One run can check multiple domains
- Cheap enough for quick spot checks, useful enough for agencies and small businesses

### Example

```bash
python3 cli.py your-site.com
```

Example summary:

> HTTPS works, HTTP redirects to HTTPS, 3/5 headers present, privacy policy found — 2 minor issues

### Limitations

- Some sites will time out or block requests
- Sites with odd routing may need tuning
- `neverssl.com`-style HTTP-only domains can be slow

# Actor input Schema

## `domains` (type: `array`):

List of domains to check (e.g. example.com)

## Actor input object example

```json
{
  "domains": [
    "example.com"
  ]
}
```

# 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 = {
    "domains": [
        "example.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("wiggly_book/domain-trust-check").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 = { "domains": ["example.com"] }

# Run the Actor and wait for it to finish
run = client.actor("wiggly_book/domain-trust-check").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "domains": [
    "example.com"
  ]
}' |
apify call wiggly_book/domain-trust-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=wiggly_book/domain-trust-check",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/85kFVzxLrWMeqivav/builds/I4eURMkW6zfkgNMSU/openapi.json
