# DataDome Public Page Observer (`codingfrontend/datadome-web-scraper`) Actor

Observe target-owned public HTML pages and record bounded page fields when direct HTTP exposes them; return truthful access-boundary diagnostics for DataDome or other challenge responses. No login, proxy rotation, JavaScript challenge solving, or protected-content bypass is performed.

- **URL**: https://apify.com/codingfrontend/datadome-web-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 93.1% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

### What does DataDome Web Scraper do?

DataDome Web Scraper reads ordinary public HTML pages and extracts page identity, complete main text and HTML, document sections, images, tables, code examples, and published metadata. On DataDome’s public status pages, it also collects service health, nested endpoints, and linked event timelines. It can be used with [DataDome's public website](https://datadome.co/) or another public website that permits your requests. If a site returns an access challenge, a non-HTML response, or a request error, the Actor records no page row for that URL and writes the details to the run log.

The Actor is a bounded public-page observer. It does not sign in, use rotating proxies, solve CAPTCHAs, execute challenge scripts, or retrieve protected content.

### Why use it?

- Capture a small set of public pages for content reviews or reference checks.
- Review complete documentation sections, diagrams, tables, and code examples without collecting unrelated navigation.
- Track published service-group health and scheduled events with their own timeline updates.
- Run the Actor from the Apify Console, API, or a schedule, then use Apify's dataset and integration tools to work with saved pages.
- See whether requested pages were accessible in the run log and summary without mixing request diagnostics into page records.

### How to run the Actor

1. Open the Actor and select **Input**.
2. Enter one or more public page URLs, then choose a page limit and request settings if needed.
3. Select **Start** to run the Actor.
4. Open the **Results** dataset to view saved pages. Open **Output summary** to see the run status and saved-record count.

### Input

Every input field is optional. If `startUrls` is omitted, the Actor uses `https://datadome.co`. If you provide `startUrls`, it must be a non-empty list of absolute public HTTP(S) URLs. Duplicate input URLs are removed. Supplied page URLs are processed in the order supplied and have priority within the `maxPages` budget. Any remaining page budget can fetch linked DataDome status-event details. Each unique event detail is fetched once; matching final page identities are saved once. There are no search, filter, or sorting options; this Actor reads the URLs you provide.

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `startUrls` | Array of URL strings | Optional | `["https://datadome.co"]` | Public HTTP(S) pages to read. The list must contain at least one URL when provided. URLs with credentials and local or private network targets are rejected. |
| `maxPages` | Integer | Optional | `1` | Total page budget, including supplied URLs and optional linked status-event details. Must be from `1` to `20`. Retries use `maxRetries` separately. With no remaining budget, listing data is saved without fetching event timelines. |
| `timeoutSecs` | Integer | Optional | `30` | Timeout for each page request, in seconds. Must be from `5` to `120`. |
| `maxRetries` | Integer | Optional | `1` | Number of retries for supported transient failures and timeouts. Must be from `0` to `2`. Access challenges are not retried. |

#### Copyable input examples

Read one documentation page with the default timeout and retry settings:

```json
{
  "startUrls": ["https://docs.datadome.co/docs/getting-started"],
  "maxPages": 1
}
```

Read a detailed integration guide and the status page, allowing one additional request for a linked event timeline:

```json
{
  "startUrls": [
    "https://docs.datadome.co/docs/javascript-tag",
    "https://status.datadome.co/"
  ],
  "maxPages": 3,
  "timeoutSecs": 45,
  "maxRetries": 2
}
```

Make a single attempt with a shorter timeout:

```json
{
  "startUrls": ["https://docs.datadome.co/docs/getting-started"],
  "maxPages": 1,
  "timeoutSecs": 10,
  "maxRetries": 0
}
```

### Output

The dataset contains only validated page records. These two complete record examples are **illustrative**, including all example names, values, and links. They are not verified live results. Together they show every supported public field and nested structure. Documentation fields and status-page fields apply to different page types; unavailable values are omitted.

#### Documentation record

```json
{
  "sourceId": "https://docs.example.org/integration",
  "url": "https://docs.example.org/integration",
  "title": "Integration guide",
  "description": "Connect your application.",
  "canonicalUrl": "https://docs.example.org/integration",
  "headings": [
    "Installation"
  ],
  "links": [
    {
      "url": "https://docs.example.org/diagram.png",
      "text": ""
    }
  ],
  "bodyText": "Installation Connect your application. Integration flow Component Route Tag /tags.js initialize();",
  "language": "en",
  "siteName": "Example Organization",
  "article": {
    "type": "TechArticle",
    "headline": "Integration guide",
    "dateModified": "2026-05-06T15:41:23.000Z",
    "title": "Integration guide"
  },
  "breadcrumbs": [
    {
      "name": "Documentation",
      "url": "https://docs.example.org/"
    }
  ],
  "previewImage": {
    "url": "https://docs.example.org/preview.png",
    "width": 1200,
    "height": 630
  },
  "contentHtml": "<h2>Installation</h2><p>Connect your application.</p><figure><a href=\"https://docs.example.org/diagram.png\"><img src=\"https://docs.example.org/diagram.png\" alt=\"Integration diagram\" title=\"diagram.png\" width=\"800\" height=\"450\"></a><figcaption>Integration flow</figcaption></figure><table><thead><tr><th>Component</th><th>Route</th></tr></thead><tbody><tr><td>Tag</td><td>/tags.js</td></tr></tbody></table><pre><code>initialize();\n</code></pre>",
  "sections": [
    {
      "heading": "Installation",
      "level": 2,
      "anchor": "installation",
      "text": "Connect your application. Integration flow Component Route Tag /tags.js initialize();",
      "html": "<p>Connect your application.</p><figure><a href=\"https://docs.example.org/diagram.png\"><img src=\"https://docs.example.org/diagram.png\" alt=\"Integration diagram\" title=\"diagram.png\" width=\"800\" height=\"450\"></a><figcaption>Integration flow</figcaption></figure><table><thead><tr><th>Component</th><th>Route</th></tr></thead><tbody><tr><td>Tag</td><td>/tags.js</td></tr></tbody></table><pre><code>initialize();\n</code></pre>"
    }
  ],
  "images": [
    {
      "url": "https://docs.example.org/diagram.png",
      "alt": "Integration diagram",
      "title": "diagram.png",
      "width": 800,
      "height": 450,
      "caption": "Integration flow"
    }
  ],
  "tables": [
    {
      "headers": [
        "Component",
        "Route"
      ],
      "rows": [
        [
          "Tag",
          "/tags.js"
        ]
      ]
    }
  ],
  "codeBlocks": [
    {
      "code": "initialize();\n",
      "language": "javascript"
    }
  ]
}
```

#### Service status record

```json
{
  "sourceId": "https://status.datadome.co/",
  "url": "https://status.datadome.co/",
  "title": "DataDome Service Status",
  "headings": [
    "Overview"
  ],
  "links": [
    {
      "url": "https://status.datadome.co/details/c0123456789abc",
      "text": "View Event Details"
    }
  ],
  "bodyText": "Overview Example service Good Service api-example-1 Good Service",
  "contentHtml": "<h1>Overview</h1><p>Example service Good Service</p><p>api-example-1 Good Service</p>",
  "serviceStatus": {
    "overallStatus": "All Systems are Online",
    "websiteUrl": "https://datadome.co/",
    "supportUrl": "https://docs.datadome.co/docs/support",
    "components": [
      {
        "id": "p1234",
        "name": "Example service",
        "status": "Good Service",
        "components": [
          {
            "name": "api-example-1",
            "status": "Good Service"
          }
        ]
      }
    ],
    "events": [
      {
        "id": "c0123456789abc",
        "url": "https://status.datadome.co/details/c0123456789abc",
        "title": "Scheduled maintenance",
        "status": "Scheduled",
        "startsAt": "2026-10-15 05:30 UTC",
        "endsAt": "2026-10-15 06:30 UTC",
        "createdAt": "Thu, 01 Oct 2026 08:00:00 +0000",
        "postedAt": "Thu, 01 Oct 2026 09:00:00 +0000",
        "publishedAt": "Thu, 01 Oct 2026 08:00:00 +0000",
        "description": "Dashboard maintenance is scheduled. Start Time: 2026-10-15 05:30 UTC End Time: 2026-10-15 06:30 UTC",
        "descriptionHtml": "<p>Dashboard maintenance is scheduled.</p><p>Start Time: 2026-10-15 05:30 UTC</p><p>End Time: 2026-10-15 06:30 UTC</p>",
        "updates": [
          {
            "status": "Scheduled",
            "updatedAt": "Thu, 01 Oct 2026 09:00:00 +0000",
            "text": "Dashboard maintenance is scheduled. Start Time: 2026-10-15 05:30 UTC End Time: 2026-10-15 06:30 UTC",
            "html": "<p>Dashboard maintenance is scheduled.</p><p>Start Time: 2026-10-15 05:30 UTC</p><p>End Time: 2026-10-15 06:30 UTC</p>"
          }
        ]
      }
    ]
  }
}
```

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `sourceId` | String | Required | Canonical URL when declared by the page; otherwise the final page URL. |
| `url` | URL string | Required | Final public page URL that returned HTML. |
| `title` | String | Optional | Complete page title. |
| `description` | String | Optional | Complete description metadata. |
| `canonicalUrl` | URL string | Optional | Canonical URL explicitly declared by the page. |
| `headings` | Array of strings | Optional | Up to 30 level-one through level-three headings from the main content, in source order. |
| `links` | Array of objects | Optional | Up to 80 unique main-content page destinations; each has `url` and `text`. Image-only links have empty text. Page fragments are removed for deduplication. |
| `bodyText` | String | Optional | Complete cleaned main-content text, without a character limit or unrelated navigation. |
| `language` | String | Optional | Language declared on the HTML document. |
| `siteName` | String | Optional | Site name declared in Open Graph metadata. |
| `article` | Object | Optional | Page-matched article metadata from public JSON-LD. |
| `breadcrumbs` | Array of objects | Optional | Published breadcrumb labels and links when available. |
| `previewImage` | Object | Optional | Open Graph preview image and published numeric dimensions. |
| `contentHtml` | String | Optional | Complete main HTML, retaining semantic content and safe URLs while removing scripts, controls, implementation attributes, and comments. |
| `sections` | Array of objects | Optional | Direct main-content headings with their complete following text and HTML. Nested callouts and subheadings remain within that section HTML. |
| `images` | Array of objects | Optional | All unique main-content images, with available alternative text, titles, dimensions, and captions. Navigation logos are excluded. |
| `tables` | Array of objects | Optional | Main-content table headers and ordered rows/cells. Span information also remains in `contentHtml`. |
| `codeBlocks` | Array of objects | Optional | All published main-content code examples, with whitespace preserved. |
| `serviceStatus` | Object | Optional | Published business service health, grouped endpoints, and events on `status.datadome.co`. |

#### Nested document fields

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `links[].url`, `links[].text` | String | Required within a link | Public destination and source link text. |
| `article.type` | String | Required within an article | Published schema.org article type, such as `TechArticle`. |
| `article.title` | String | Optional | Visible article-header title, which may differ from the SEO headline. |
| `article.headline` | String | Optional | Source JSON-LD article headline. |
| `article.dateModified` | Date-time string | Optional | Source modification date; it is not a scrape timestamp. |
| `breadcrumbs[].name` | String | Required within a breadcrumb | Published label. |
| `breadcrumbs[].url` | URL string | Optional | Destination when the source supplies one. |
| `previewImage.url`, `images[].url` | URL string | Required within an image | Public image URL. |
| `previewImage.width`, `previewImage.height` | Positive integer | Optional | Published numeric pixel dimensions. |
| `images[].alt`, `images[].title`, `images[].caption` | String | Optional | Source alternative text, title, and associated figure caption. Explicit blank alternative text is preserved. |
| `images[].width`, `images[].height` | Positive integer | Optional | Published numeric pixel dimensions; missing and `auto` dimensions are omitted. |
| `sections[].heading`, `sections[].level` | String, integer | Required within a section | Source heading and its level from 1 to 6. |
| `sections[].anchor` | String | Optional | Native source section identifier. |
| `sections[].text`, `sections[].html` | String | Optional | Complete text and cleaned HTML until the next direct heading. |
| `tables[].headers` | Array of strings | Optional | Source header cells in order. |
| `tables[].rows` | Array of arrays of strings | Optional | Source rows and their cells, preserving association and order. |
| `codeBlocks[].code` | String | Required within a code block | Complete published code example. |
| `codeBlocks[].language` | String | Optional | Language label explicitly supplied by the source. |

#### Nested service status fields

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `serviceStatus.overallStatus` | String | Optional | Published service health, such as “All Systems are Online.” |
| `serviceStatus.websiteUrl`, `serviceStatus.supportUrl` | URL string | Optional | Website and support links supplied by the status page. |
| `serviceStatus.components` | Array of objects | Optional | Published service groups. Each group requires `name`; `id`, `status`, and nested `components` are optional. |
| `serviceStatus.components[].id` | String | Optional | Native source service-group identifier. |
| `serviceStatus.components[].name`, `serviceStatus.components[].status` | String | Required name; optional status | Source service-group name and health label, with no inferred geography. |
| `serviceStatus.components[].components` | Array of objects | Optional | All source endpoints in the group, including entries revealed by expanding the group. Each has required `name` and optional `status`. |
| `serviceStatus.events` | Array of objects | Optional | Unique events with linked detail URLs visible on the requested page. |
| `serviceStatus.events[].id`, `.url`, `.title` | String | Required within an event | Native business event ID, detail URL, and source title. |
| `serviceStatus.events[].status` | String | Optional | Published event state, such as Scheduled; it is not scraper status. |
| `serviceStatus.events[].startsAt`, `.endsAt` | String | Optional | Explicit start/end values, preserved in the source format without guessed time zones. |
| `serviceStatus.events[].createdAt`, `.postedAt`, `.publishedAt` | String | Optional | Separately labeled business timestamps from archive, listing, or detail pages, preserved as published. |
| `serviceStatus.events[].description`, `.descriptionHtml` | String | Optional | Complete event description in text and cleaned HTML. |
| `serviceStatus.events[].updates` | Array of objects | Optional | All timeline updates from a fetched matching detail page, in source order. |
| `serviceStatus.events[].updates[].status`, `.updatedAt`, `.text`, `.html` | String | Optional | Source state, timestamp, complete description, and cleaned HTML for that update. |

Text, sections, tables, images, and code examples are not truncated. Only the convenient `headings` and `links` lists retain their 30-entry and 80-entry limits; the complete underlying content remains in `bodyText` and `contentHtml`. Headings and link text are limited to 500 and 300 characters respectively. HTML entities are decoded in text. Missing optional fields and arrays are omitted rather than filled with placeholders.

When `maxPages` permits, the Actor follows linked event details on the same DataDome status site, verifies the event identity, and adds its full timeline without another dataset row. If that request fails, the listing data is retained and the run reports limited results. Reaching the page budget is normal completion. Event archive pages can be supplied directly; earlier months and documentation navigation links are not followed automatically. Metadata dates and service/event states are business data. Request details remain in the run log.

Content that appears only after JavaScript runs, signed-in dashboard data, and challenge-protected pages are unavailable. The Actor does not infer missing authors, contacts, prices, geography, or image dimensions.

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Run status

- **SUCCEEDED** means at least one valid page record was saved.
- **SUCCEEDED with `isPartial: true`** means valid pages were saved and a page request, linked event detail, or storage operation failed.
- **FAILED** means no valid page record was saved, including when every page was blocked, empty, non-HTML, or invalid.
- Reaching the requested `maxPages` limit is normal completion and does not make a run partial.

Blocked pages and request failures appear in the run log. They do not appear as rows in the business dataset.

### Output summary

The **Output summary** link opens `OUTPUT_SUMMARY` in the run's default **Key-value store**. The summary is separate from the page dataset and contains exactly these fields:

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `status` | String | Required | `SUCCEEDED` when at least one page record was saved; otherwise `FAILED`. |
| `itemsStored` | Non-negative integer | Required | Number of validated page records whose dataset writes completed during the run. |
| `isPartial` | Boolean | Required | Whether a collection or linked-detail failure affected a run that saved at least one page record. |

Illustrative summary:

```json
{
  "status": "SUCCEEDED",
  "itemsStored": 1,
  "isPartial": false
}
```

### Tips and access limits

- Start with a small `maxPages` value. The Actor requests URLs serially and applies the timeout and retry limits to each page. Include room in `maxPages` for event details if you need timeline updates.
- Use pages you are allowed to access, and follow the target website's terms. A site may block automated requests or change its page structure.
- Challenge pages are not bypassed. A blocked page can therefore produce no dataset record.
- This Actor can consume Apify compute units while it runs. Usage depends on page count, response times, retries, and your Apify plan; check your account for current pricing.

### Support

For questions or an issue with the Actor, use the **Issues** tab. Use the Apify API tab for programmatic runs and access to the dataset and key-value store.

# Actor input Schema

## `startUrls` (type: `array`):

Absolute public HTTP(S) URLs to read. If omitted, the Actor uses https://datadome.co/. When more URLs are supplied than maxPages, the first unique URLs are used.

## `maxPages` (type: `integer`):

Maximum number of unique URLs to process during the run.

## `timeoutSecs` (type: `integer`):

Per-page public request timeout.

## `maxRetries` (type: `integer`):

Bounded retries for transient HTTP statuses/timeouts; DataDome/access-control responses are never retried.

## Actor input object example

```json
{
  "startUrls": [
    "https://datadome.co"
  ],
  "maxPages": 1,
  "timeoutSecs": 30,
  "maxRetries": 1
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing page URLs and content from public HTML responses.

## `runSummary` (type: `string`):

Three-field run summary stored in the default key-value store as OUTPUT_SUMMARY.

# 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 = {
    "startUrls": [
        "https://datadome.co"
    ],
    "maxPages": 1,
    "timeoutSecs": 30,
    "maxRetries": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/datadome-web-scraper").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 = {
    "startUrls": ["https://datadome.co"],
    "maxPages": 1,
    "timeoutSecs": 30,
    "maxRetries": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("codingfrontend/datadome-web-scraper").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 '{
  "startUrls": [
    "https://datadome.co"
  ],
  "maxPages": 1,
  "timeoutSecs": 30,
  "maxRetries": 1
}' |
apify call codingfrontend/datadome-web-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,codingfrontend/datadome-web-scraper"
        }
    }
}
```

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/AcIxHsiQ0x5IBhqcL/builds/jNzpWSi7cqMY7vVmG/openapi.json
