# Evidence-First Website Facts Extractor (`jacksu/evidence-website-facts-extractor`) Actor

Extract source-linked pricing, FAQ, feature, policy, docs, company, or custom fact packs from public websites for AI agents and research workflows.

- **URL**: https://apify.com/jacksu/evidence-website-facts-extractor.md
- **Developed by:** [jack su](https://apify.com/jacksu) (community)
- **Categories:** AI, SEO tools, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 useful fact pack 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/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

## Evidence-First Website Facts Extractor

Extract compact, source-linked fact packs from public websites for AI agents,
sales research, SEO audits, competitive research, RAG preparation, and due
diligence workflows.

This Actor is intentionally evidence-first. It returns direct website snippets
with source URLs and diagnostics. It does not use a private API, infer facts
without evidence, enrich private individuals, or act as a broad unbounded AI
web crawler.

### Input

```json
{
  "urls": ["https://apify.com"],
  "factPack": "features",
  "customTerms": [],
  "maxPagesPerSite": 8,
  "maxFactsPerSite": 20,
  "requestTimeoutSecs": 20
}
```

Supported `factPack` values:

- `pricing`
- `faq`
- `features`
- `policies`
- `docs`
- `company`
- `custom`

For `custom`, provide `customTerms` such as `["SOC 2", "API", "enterprise"]`.

### Output

Each website produces one fact-pack record with:

- direct facts and evidence snippets;
- source URLs for every fact;
- the sanitized starting URL plus the site origin used as the crawl boundary;
- matched terms;
- pages scanned;
- confidence and completeness scores;
- missing fields and diagnostics;
- uncharged error records for blocked or failed sites.

### Pricing

- `$0.00005` when a run starts.
- `$0.005` for each useful evidence-complete website fact pack.
- Failed, weak partial, duplicate, and empty records do not trigger
  `useful-fact-pack-result`.
- There is no `apify-default-dataset-item` charge, so writing an error record
  does not create a result fee.

### Safety

- Public HTTP and HTTPS pages only.
- URLs with credentials, query parameters, or fragments are rejected.
- Clean path URLs such as `/pricing`, `/docs`, or `/privacy` are preserved as
  starting pages so users can target a specific fact page.
- Account, invite, reset, unsubscribe, or token-like paths are rejected and
  redacted to the site origin.
- Local and private-network addresses are blocked.
- Redirects must stay on the requested website.
- Each HTML page is limited to 3 MB.
- Crawling is bounded by `maxPagesPerSite`.

# Actor input Schema

## `urls` (type: `array`):

Public HTTP or HTTPS website URLs without credentials, query parameters, or fragments.

## `factPack` (type: `string`):

The type of evidence-linked facts to extract.

## `customTerms` (type: `array`):

Optional words or phrases to match. Required for useful custom fact packs.

## `maxPagesPerSite` (type: `integer`):

Maximum number of same-domain HTML pages scanned for each website.

## `maxFactsPerSite` (type: `integer`):

Maximum number of facts returned for each website.

## `requestTimeoutSecs` (type: `integer`):

Maximum time in seconds to wait for each page request.

## Actor input object example

```json
{
  "urls": [
    "https://apify.com"
  ],
  "factPack": "features",
  "customTerms": [],
  "maxPagesPerSite": 8,
  "maxFactsPerSite": 20,
  "requestTimeoutSecs": 20
}
```

# Actor output Schema

## `results` (type: `string`):

Evidence-linked fact-pack records produced by this run.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("jacksu/evidence-website-facts-extractor").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("jacksu/evidence-website-facts-extractor").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 '{}' |
apify call jacksu/evidence-website-facts-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=jacksu/evidence-website-facts-extractor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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