# Raw HTML and Rendered Text Check (`merciful_goldenlarch/raw-vs-rendered-page-check`) Actor

Find whether a phrase is in a page’s live raw HTML or only in a saved browser-rendered DOM. Compare both sources and see which evidence was unavailable.

- **URL**: https://apify.com/merciful_goldenlarch/raw-vs-rendered-page-check.md
- **Developed by:** [Toolshed](https://apify.com/merciful_goldenlarch) (community)
- **Categories:** SEO tools, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 page checks

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

## Raw HTML and Rendered Text Check

Check whether a phrase is in the initial HTML of a webpage or appears only in browser-rendered text. Supply an authorized HTTPS URL and a saved browser DOM to compare both sources. The [Toolshed raw HTML and browser text guide](https://toolshed-guides.vercel.app/html/) explains the input and the sample result.

Click Start with no fields to check a live Quotes to Scrape practice page and a saved Chromium excerpt. The demo checks the author's name, which the page puts in JavaScript data before it renders into the page.

For your own page, enter its final HTTPS URL, enter the phrase you want to find, and confirm you have permission to retrieve the page. The Actor fetches the raw HTML and checks its document text. If you have a browser capture for the same page, you can paste it into the optional field to compare the two. Dates and capture hashes are shown separately so you can tell how old the browser evidence is.

To make a rendered capture, open your authorized public page in Chrome and run this in DevTools Console. Paste the copied JSON into the Actor's rendered capture field. Use a capture from the same release and within 24 hours. Keep only public content you are allowed to share.

```js
const html = document.documentElement.outerHTML;
const status = performance.getEntriesByType('navigation')[0]?.responseStatus;
copy(JSON.stringify({
  pageUrl: location.href,
  capturedAt: new Date().toISOString(),
  html: html.slice(0, 200000),
  partial: html.length > 200000,
  ...(status >= 100 && status <= 599 ? { httpStatus: status } : {})
}));
```

The Actor fetches raw HTML but does not run page JavaScript. Missing text in an unavailable or partial capture stays inconclusive. Results measure evidence in the supplied documents and do not imply browser visibility, search indexing, or AI crawler access.

[Practice source](https://toscrape.com/)

### Result and next step

Every result includes recommended_action. HTTP-200 pages with recognized access-challenge headings or challenge-form markers are unavailable evidence, so they produce unknown presence rather than a missing-content finding. This checks captures, not search indexing or ranking.

### Read the findings

The default result view shows a readable finding, the affected item, what the evidence means and what to do next. Switch to **Evidence and source fields** for the underlying records. Download **REVIEW.csv** to work in a spreadsheet, or **REVIEW.html** for a plain report. Suggested actions are checks for you to perform; the Actor has not executed them. Existing API evidence fields are retained alongside the reading layer.

If the run budget cannot deliver every result row, the run fails rather than silently returning a complete-looking partial dataset. Check **Dataset delivery status** in Output, reduce the input or increase the run budget, and start a new run. A successful dataset-delivery check confirms storage, not source accuracy or full workflow compatibility.

# Actor input Schema

## `pageUrl` (type: `string`):

Leave blank for the live Quotes to Scrape demo. Use the final HTTPS page URL without parameters.

## `permissionConfirmed` (type: `boolean`):

Confirm permission for a custom page. No confirmation is needed for the built-in practice page.

## `checkText` (type: `string`):

Check one phrase of up to 200 characters. The demo checks Albert Einstein if you leave this blank.

## `renderedCapture` (type: `object`):

Paste the page URL, capture time, HTML and optional partial or HTTP status fields. Leave blank for a raw-only custom check.

## Actor input object example

```json
{
  "pageUrl": "",
  "permissionConfirmed": false,
  "checkText": ""
}
```

# Actor output Schema

## `result` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `reviewCsv` (type: `string`):

No description

## `reviewHtml` (type: `string`):

No description

## `deliveryStatus` (type: `string`):

No description

# 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("merciful_goldenlarch/raw-vs-rendered-page-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("merciful_goldenlarch/raw-vs-rendered-page-check").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 '{}' |
apify call merciful_goldenlarch/raw-vs-rendered-page-check --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,merciful_goldenlarch/raw-vs-rendered-page-check"
        }
    }
}
```

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/r7ftWZXORRezQC5ik/builds/0KM7aIwseZnhZdGRU/openapi.json
