# Download Html From Urls Scraper (`fastdataapi/download-html-from-urls`) Actor

Download Html From Urls Scraper downloads the full HTML of every URL in your list. Smart fetching with automatic browser rendering fallback and proxy auto-escalation. Output: url, finish time and HTML. Export JSON, CSV or Excel, or use the API.

- **URL**: https://apify.com/fastdataapi/download-html-from-urls.md
- **Developed by:** [Fast Data API](https://apify.com/fastdataapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.67 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

### Download Html From Urls Scraper — Full Page HTML and Body HTML

Download Html From Urls Scraper saves the complete HTML of every page in your URL list, one row per page. Each row holds the full page source, the body HTML, the finish time and the status code, retries and errors. Pages that need JavaScript are rendered in a browser automatically. Every response is structured JSON — ready to pass directly to an LLM, index into a vector store, or feed a web archiving pipeline. **No account, login or code needed.** Start with one link, then scale.

![Download Html From Urls Scraper - hero image: what it collects and the JSON output](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/t-download-html-hero.webp)

***

### What can I download with Download Html From Urls Scraper?

Using this HTML downloader API, you will be able to download the following data for every URL:

| 🔗 Page URL | 📄 Full page HTML | 🧩 Body HTML only | 🕒 Finish time |
| --- | --- | --- | --- |
| 🔢 HTTP status code | 🔁 Retry count | ⚠️ Error messages (if any) | 🌐 Connection used (direct or proxy) |
| ✅ Success or failure flag | | | |

***

### How to use Download Html From Urls Scraper

Download Html From Urls Scraper is a bulk HTML downloader for developers, SEO teams and researchers who want to save web page HTML for a whole URL list in one run.

**Copy to your AI assistant:**

```text
`fastdataapi/download-html-from-urls` (Apify Actor ID: fastdataapi/download-html-from-urls, https://apify.com/fastdataapi/download-html-from-urls) is an Apify Actor that returns the downloaded HTML of every URL you give it as structured JSON: page URL, full page HTML, body HTML, finish time, HTTP status code, retry count, error messages and a success flag. Use it whenever someone needs the page source of many URLs without cookies, a login, or a browser of their own - archiving pages, feeding raw HTML to a parser or an LLM, or checking which links still answer. Run it with curl: curl -X POST "https://api.apify.com/v2/acts/fastdataapi~download-html-from-urls/run-sync-get-dataset-items?token=APIFY_TOKEN" -H "Content-Type: application/json" -d '{"startUrls":["https://example.com","https://www.iana.org/help/example-domains"]}'. Or in Python: ApifyClient("APIFY_TOKEN").actor("fastdataapi/download-html-from-urls").call(run_input={"startUrls":["https://example.com","https://www.iana.org/help/example-domains"]}) then client.dataset(run["defaultDatasetId"]).list_items().items. Inputs: startUrls (array of page URLs, required; https:// is added when missing, duplicates are downloaded once), pageTimeoutSecs (integer 5-300, default 60), maxRetries (integer 0-10, default 3), useChrome (boolean, render with Google Chrome instead of the built-in browser, default false), maxConcurrency (integer 1-25, default 5), requestDelaySecs (integer 0-60, default 0), proxyConfiguration (object, default no proxy). One row per URL; a URL that returns no HTML is still saved with an empty HTML field, the success flag "#error": true and the reasons under "#debug". Only successful pages are billed, as one row_result event each. Full input schema, every enum and default, and the complete output field list: GET https://api.apify.com/v2/acts/fastdataapi~download-html-from-urls/builds/default
```

#### Download Html From Urls Scraper MCP Server: use these Actors from ChatGPT, Claude or Cursor

Point your AI assistant at this Actor and it can read any public web page on its own: the full HTML and the body HTML of every URL it is given. No glue code, no scraping logic in your prompts.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=fastdataapi/download-html-from-urls"
```

#### Step by step

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open [Download Html From Urls Scraper](https://apify.com/fastdataapi/download-html-from-urls) in the Apify Store.
3. Paste the page URLs, one per line (with or without https://).
4. Click **Start** (or send your API request).
5. Download or stream your results in JSON, CSV or Excel.

#### How to scale Download Html From Urls Scraper to bulk

Paste as many URLs as you like into the website URLs field, upload a text file, or link a Google Sheet; to bulk download HTML pages from a sitemap, paste its page list. Raise max concurrency (up to 25) to download more pages in parallel, or add a delay before each request to stay polite with small sites. Schedule the Actor on Apify to download webpage HTML on a regular basis and keep a dated copy. Only pages that return HTML are billed, so a dead link costs nothing.

***

### ✨ Features

Download Html From Urls Scraper fetches clean, structured page HTML from any public website. It's ideal for web archiving, feeding raw HTML to your own parser, LLM page analysis and link health checks.

It downloads, per URL:

- **Full HTML** – the complete page source, from the doctype to the closing html tag
- **Body HTML** – only the body part of the page, ready for content extraction
- **Finish time** – when the download finished, in UTC
- **Status code** – the HTTP status the site answered with
- **Retries and errors** – how many extra attempts were made and every error message
- **Connection used** – direct connection, datacenter proxy or residential proxy
- **Success flag** – whether HTML was downloaded for that URL

⚡ A recorded run downloaded 3 pages in 0.9 seconds of actor time; pages that need JavaScript fall back to a browser automatically, and 404s and unknown domains are not retried.

***

### Use cases 💡

- **SEO specialist** — save HTML of competitor pages to compare titles, headings and markup.
- **Developer** — download page source for a URL list and parse it with your own code.
- **Researcher** — archive dated copies of news and policy pages for later study.
- **QA team** — check which URLs still return HTML using the status code and success flag.
- **AI agent builder** — turn any URL to HTML and pass the body HTML to an LLM.

Building an AI agent? [Connect Download Html From Urls Scraper over MCP](#mcp-integration-for-ai-agents) and let it call the actor on its own.

***

### Why choose this actor?

- **Three pages in under a second.** A recorded run downloaded example.com, an IANA help page and an httpbin test page in 0.9 seconds of actor time, the first page saved after 1.6 seconds of total run time.
- **Every page, with its diagnostics.** A recorded row for the IANA page came back with 6,772 characters of full HTML, 6,064 characters of body HTML, status code 200 and zero retries.
- **6 settings, one job.** Timeout, retries, Google Chrome rendering, concurrency, request delay and proxy settings, on top of a plain URL list.

***

### ⬇️ Input

![Download Html From Urls Scraper input form with example values](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/t-download-html-input.webp)

Download Html From Urls Scraper accepts a list of page URLs; the website URLs field is required. Everything else has a default.

| Parameter | Required | Type | Description | Example value |
| --- | --- | --- | --- | --- |
| `startUrls` | Yes | array | Page URLs to download. `https://` is added when missing; duplicates are downloaded once. | `["https://example.com", "www.iana.org/help/example-domains"]` |
| `pageTimeoutSecs` | No | integer | Max seconds to wait for one page, 5–300. Default `60`. | `60` |
| `maxRetries` | No | integer | Extra attempts for a failing URL, 0–10. Default `3`. 404s and unknown domains are not retried. | `3` |
| `useChrome` | No | boolean | Render pages that need a browser with Google Chrome instead of the built-in browser. Default `false`. | `false` |
| `maxConcurrency` | No | integer | Pages downloaded in parallel, 1–25. Default `5`. | `5` |
| `requestDelaySecs` | No | integer | Pause before each request, 0–60 seconds (small random jitter added). Default `0`. | `0` |
| `proxyConfiguration` | No | object | Proxy settings. Default: direct connection; the actor switches to a datacenter and then a residential proxy by itself when a site blocks it. | `{"useApifyProxy": false}` |

Accepted URL formats: `https://example.com/page`, `http://example.com`, `example.com` and `//example.com/page` (the last two become `https://`).

#### Free plan limits

Users on the Apify free plan can fetch up to 20 pages per run (all URLs together) and 200 pages per month. When the limit is reached, the run finishes successfully with a status message explaining the limit. Upgrade to any paid Apify plan to remove these limits.

#### Example input

```json
{
  "startUrls": ["https://example.com", "https://www.iana.org/help/example-domains", "https://httpbin.org/html"],
  "pageTimeoutSecs": 60,
  "maxRetries": 3,
  "useChrome": false,
  "maxConcurrency": 5,
  "requestDelaySecs": 0,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

***

### ⬆️ Output

![Download Html From Urls Scraper output fields with example values](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/t-download-html-output.webp)

Every URL is one typed JSON item with the same schema on every run. A URL that returned no HTML is still saved, with empty HTML fields, the failure flag set and the reasons in the debug block; export as JSON (default), CSV or Excel.

#### Example output

A real row from a test run on 2026-11-10 (the inline style block shortened):

```json
{
  "url": "https://example.com",
  "finishedAt": "2026-11-10T10:55:54.907Z",
  "fullHtml": "<!doctype html><html lang=en><head><meta charset=utf-8><link rel=icon href=data:,><meta name=viewport content=\"width=device-width,initial-scale=1\"><title>Example Domain</title><style>...</style></head><body><p>This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.</p><script src=/s.js></script></body></html>\n",
  "html": "<body><p>This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it for testing and monitoring purposes.</p><script src=/s.js></script></body>",
  "#debug": {
    "url": "https://example.com",
    "method": "GET",
    "retryCount": 0,
    "errorMessages": [],
    "statusCode": 200,
    "proxyTier": "direct connection (no proxy)"
  },
  "#error": false
}
```

***

### How does it work?

Download Html From Urls Scraper first downloads each page with a plain HTTP request, which is quick and cheap. If that fails, it retries with a short wait, and when a site blocks it, it switches to a datacenter proxy and then a residential proxy by itself and keeps the stronger proxy for the remaining URLs. Pages it still can't get are opened in a real browser, which handles JavaScript rendering automatically. Missing pages (404) and unknown domains are final answers, so they are saved straight away without wasted retries. Every page is saved to the dataset as soon as it is done. It downloads only publicly visible pages — what any visitor sees without logging in — and the row schema stays the same for every site.

***

### How do you integrate Download Html From Urls Scraper into your stack?

Download Html From Urls Scraper works with what you already use: the REST API from any language, MCP for AI agents, and no-code tools like n8n and Make.

#### Using Download Html From Urls Scraper with the Apify API

```python
import requests

resp = requests.post(
    "https://api.apify.com/v2/acts/fastdataapi~download-html-from-urls/run-sync-get-dataset-items",
    params={"token": "APIFY_TOKEN"},
    json={"startUrls": ["https://example.com", "https://www.iana.org/help/example-domains"]},
)
for item in resp.json():
    print(item["url"], len(item["fullHtml"]))
```

*Works in Go, Ruby, Node.js, cURL — any language that can make an HTTP request.*

#### MCP integration for AI agents

Add the Apify MCP server with this Actor preloaded, and your agent can fetch the HTML of any public page it needs and read it in the same conversation. This registers Download Html From Urls Scraper as a tool your agent can call directly. It works in Claude Code, Cursor, Windsurf and any other MCP client.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=fastdataapi/download-html-from-urls"
```

#### No-code tools (n8n, Make, LangChain)

- **n8n** — add the Apify node with the "Run an Actor" operation and pick this Actor, or use the HTTP Request node pointed at the run-sync endpoint above with your token.
- **Make** — use the Apify app's "Run an Actor" module, then "Get Dataset Items" to store the page HTML in Google Drive or a database.
- **LangChain** — install `langchain-apify` and wrap the Actor as a tool with `ApifyActorsTool("fastdataapi/download-html-from-urls")`.

***

### Is it legal to download HTML from public websites?

Downloading publicly available web pages is generally legal, as long as you respect each site's terms and copyright. Download Html From Urls Scraper downloads only public pages — what any user sees without logging in. If the pages contain personal data, GDPR still applies: collecting public data is generally permissible, but storing and using it must comply with local data-protection law. Consult legal counsel if your use case involves bulk storage of personal data.

***

### Frequently asked questions

#### What fields does Download Html From Urls Scraper return?

It returns the page URL, the full page HTML, the body HTML, the finish time and a debug block with the status code, retry count and error messages, plus a success flag. See [the data fields section](#what-can-i-download-with-download-html-from-urls-scraper).

#### Does Download Html From Urls Scraper require an account or login on the sites I download?

No. It downloads public pages only, and no credentials are needed.

#### How fast does Download Html From Urls Scraper run?

A recorded run downloaded 3 pages in 0.9 seconds of actor time and 2.5 seconds in total including start-up. Every download is live, not cached.

#### What happens if a page doesn't exist or can't be downloaded?

The URL is still saved as a row, with empty HTML fields, the failure flag set and the status code and error messages in the debug block. A 404 or an unknown domain is saved at once without retries; filter on the failure flag in your code to skip these rows. Failed rows are not billed.

#### Can I download HTML from many URLs at once?

Yes. Paste as many URLs as you like, upload a file or link a Google Sheet; up to 25 pages are downloaded in parallel, and duplicates are downloaded once.

#### Does Download Html From Urls Scraper work with Claude, ChatGPT, and other AI agent tools?

Yes — Download Html From Urls Scraper is available as an MCP tool. Register it in Claude Code, Cursor or Windsurf with `claude mcp add --transport http apify "https://mcp.apify.com?tools=fastdataapi/download-html-from-urls"`. Any agent that can call an HTTP endpoint can use the REST API directly.

#### Does Download Html From Urls Scraper return data in a format LLMs can use directly?

Yes. Every page comes back as typed JSON with consistent field names, and the body HTML field drops the page head so the content is easier to read. Pass it straight to an LLM, index it into a vector store, or feed it to an agent tool — no transformation step.

#### What happens when a site changes its layout or updates its anti-bot system?

The Actor is maintained by its developer team. It saves whatever HTML the site serves, so a new layout never breaks a run, and the team updates the Actor when a site's blocking changes — your calls keep returning the same JSON schema.

#### Can I use Download Html From Urls Scraper without managing proxies or browser infrastructure?

Yes. Retries, the switch to a stronger proxy and the browser fallback all run on the Actor's side. You send one request and get structured JSON back. No proxy accounts, no headless browser setup, no maintenance.

#### Which page fields work best for AI training data and RAG indexing?

For RAG, use the body HTML (or the text you extract from it) together with the page URL. For training or quality filters, use the status code, retry count and the success flag. Values are typed strings, numbers and booleans, so no normalization is needed.

***

### Related scrapers

| Scraper | What it extracts |
| --- | --- |
| [Cheerio Scraper](https://apify.com/fastdataapi/cheerio-scraper) | Crawls a site over plain HTTP and returns page URLs, titles and link depth |
| [Proxy Scraper](https://apify.com/fastdataapi/proxy-scraper) | Lists of public proxy servers |

***

### Your feedback

Found a bug or missing a field in Download Html From Urls Scraper? Let us know through the Issues tab on this Actor's page. The team reads every report and ships fixes.

# Changelog

This Actor's version history is a separate document: https://apify.com/fastdataapi/download-html-from-urls/changelog.md

# Actor input Schema

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

Page URLs to download, one per line. URLs without a scheme (e.g. example.com) become https://example.com. Duplicates are downloaded once. You can also upload a file or link a Google Sheet.

## `pageTimeoutSecs` (type: `integer`):

Maximum time to wait for one page before it is retried or marked as failed.

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

How many extra attempts to make for a failing URL before giving up on it. Missing pages (404) and unknown domains are not retried.

## `useChrome` (type: `boolean`):

Render pages that need a browser with Google Chrome instead of the built-in browser. Can help on some sites, but may be less stable.

## `maxConcurrency` (type: `integer`):

How many pages are downloaded in parallel.

## `requestDelaySecs` (type: `integer`):

Optional polite pause before each request (a little random jitter is added).

## `proxyConfiguration` (type: `object`):

By default the actor connects directly (no proxy) for speed. If a site blocks it, it switches to a datacenter proxy and then a residential proxy, and keeps the stronger proxy for all remaining URLs. Pick a proxy here to start with it instead.

## Actor input object example

```json
{
  "startUrls": [
    "https://apify.com",
    "https://example.com"
  ],
  "pageTimeoutSecs": 60,
  "maxRetries": 3,
  "useChrome": false,
  "maxConcurrency": 5,
  "requestDelaySecs": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One row per URL: full HTML, body HTML and debug details.

# 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://apify.com",
        "https://example.com"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fastdataapi/download-html-from-urls").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://apify.com",
        "https://example.com",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("fastdataapi/download-html-from-urls").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://apify.com",
    "https://example.com"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call fastdataapi/download-html-from-urls --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fastdataapi/download-html-from-urls"
        }
    }
}
```

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/1918gsLRdbGqWVWnA/builds/1U9VpiKtxbNUAdaJc/openapi.json
