# HAW Web to Markdown & JSON (`martinhida/haw-web-to-markdown-json`) Actor

Turn public web pages into clean Markdown, text, links, headings, and metadata.

- **URL**: https://apify.com/martinhida/haw-web-to-markdown-json.md
- **Developed by:** [Hidalgo Martin](https://apify.com/martinhida) (community)
- **Categories:** AI, Developer tools, Automation
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$6.00 / 1,000 page-processeds

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?

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

## HAW Web to Markdown & JSON

Turn public web pages into clean Markdown, text, links, headings, and metadata. The Actor uses bounded deterministic processing and returns traceable evidence rather than unsupported claims.

### Use cases

- AI-agent and RAG workflows
- scheduled site quality monitoring
- SEO and content operations
- developer automation pipelines
- auditable data exports

### Input

Supply public/authorized URLs or bounded data shown in `example-input.json`. Inputs expose conservative limits for items, concurrency, timeout, response bytes, and total charge.

### Output

Results are written to the default dataset with timestamps, extraction methods, source references where applicable, and explicit error records. See `fixtures/sample-output.json` for shape.

### Pricing

PAY\_PER\_EVENT: **$0.006 per `page-processed`**. Failed records are never charged. The buyer-controlled total-charge cap stops further billable output.

### API and automation

Run from Apify Console, API, schedules, webhooks, MCP-capable clients, or agent workflows. The default dataset exposes JSON, JSONL, CSV, and other standard Apify exports.

### Limits and responsible use

Use only public or explicitly authorized inputs. Robots.txt is respected by default for crawling; override only for sites you own or are authorized to test. SSRF defenses block localhost, private networks, and metadata services. There is no CAPTCHA, login, paywall, access-control, or anti-bot bypass. No credentials are collected, no forms are submitted, and no paid third-party API is used. Results are automated evidence, not legal certification.

### FAQ

**Does it require a paid API key?** No. Hidden external paid services are not used.

**When am I charged?** Only after a successful value record is stored; error records are free.

**Can it access private or gated sites?** No. Private networks, authentication barriers, and gated content are out of scope.

**Can I automate it?** Yes, through standard Apify APIs, schedules, webhooks, and integrations.

Keywords: HAW Tools, ai, developer\_tools, automation, haw web to markdown & json, deterministic automation, public data.

# Actor input Schema

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

Public HTTP(S) URLs supplied by the user for bounded processing.

## `maxItems` (type: `integer`):

Hard cap on output records for this run.

## `concurrency` (type: `integer`):

Maximum parallel public network requests.

## `timeoutMs` (type: `integer`):

Hard timeout for each network request or browser navigation.

## `maxResponseBytes` (type: `integer`):

Maximum accepted bytes for any network response.

## `respectRobots` (type: `boolean`):

Honor robots.txt directives for public crawling.

## `authorizedRobotsOverride` (type: `boolean`):

Enable only for a site you own or are explicitly authorized to test.

## `maxTotalChargeUsd` (type: `number`):

Buyer protection cap in US dollars for successful value events.

## Actor input object example

```json
{
  "maxItems": 100,
  "concurrency": 5,
  "timeoutMs": 30000,
  "maxResponseBytes": 5000000,
  "respectRobots": true,
  "authorizedRobotsOverride": false,
  "maxTotalChargeUsd": 25
}
```

# Actor output Schema

## `datasetUrl` (type: `string`):

No description

## `datasetItemsUrl` (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("martinhida/haw-web-to-markdown-json").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("martinhida/haw-web-to-markdown-json").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 martinhida/haw-web-to-markdown-json --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,martinhida/haw-web-to-markdown-json"
        }
    }
}

```

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/y0U655XEvZQH4hQ0l/builds/fU8LNkb2JG1kABelG/openapi.json
