Skip to the content

Scraper API

Web

web.crawlAvailable

Website to Markdown

The site's pages as clean Markdown, one record for each page.

Give it a start page on a public website.

1 unit a record, for runs that return data. Runs that fail cost nothing. How units work

Counted
1 unit a record
Inputs
11, 1 required
Record
17 fields
A run takes
up to 5 minutes
Records kept
7 days
Measured
its success, on the status page

POST/v1/scrapers/web.crawl/runs

{
"input": {
"url": "https://docs.widgetlib.org/en/stable/index.html",
"max_pages": 10
}
}

sent, and answered

a record of the run17 fields

{
url: "https://docs.widgetlib.org/en/stable/quickstart.html"
final_url: "https://docs.widgetlib.org/en/stable/quickstart.html"
status: 200
content_type: "text/html"
title: "Quickstart — widgetlib 2.4 documentation"
description: null
language: "en"
canonical_url: null
markdown: "# Quickstart\n\nInstall `widgetlib` with pip:\n\n```console\n$ pip ins…
… 8 more fields

ok1 unit a record

A record this scraper returned for this input. The first 9 of its 17 fields are set down here; the whole record is below.

docs.python.org
The page Website to Markdown reads, as a browser shows it
The page this scraper reads, photographed in a browser on 18 November 2026. It belongs to its publisher, who has no part in this service.

What it is used for

Read a whole documentation site
Start from one address and get each page it links to as Markdown, up to the number of pages you set, each with its depth from the start.
Prepare a site for search
Crawl a site into records with a title, a description, the text and its links, ready to be split and indexed for retrieval.
Audit a site's content
List a site's pages with their status, canonical address, word count and language, and find the thin, the broken and the duplicated.

What you send

A start page on a public website. These are its 11 inputs, as its schema has them.

main_content_onlyboolean Optional
Write the page's own content only: no navigation, page header or footer, sidebars or cookie banners. False writes the whole page body.Default true
include_linksboolean Optional
Write links as [text](address); false keeps their text only.Default true
include_imagesboolean Optional
Write images as ![alt](address); false keeps their alt text only.Default false
urlstring Required
The start page: http or https, on a public host name.
max_pagesinteger Optional
Stop after this many pages (records).Default 10
max_depthinteger Optional
How many links away from the start page a page may be; 0 reads the start page only. Pages from the sitemap count as 1.Default 3
include_pathslist of strings Optional
Read only pages whose path starts with one of these (/docs/), or matches one with * (/blog/*/comments). The start page is always read.
exclude_pathslist of strings Optional
Never read pages whose path starts with or matches one of these.
followstring Optional
links: every link on the site's pages, and its sitemap. next_page: only each page's link to the next page of its list (next_url: rel=next, or a link labelled Next, › or »), one page after the other: for a directory, search results or an archive split over pages. max_depth does not apply to next_page.Default links
same_site_onlyboolean Optional
Only the start page's site is crawled; this cannot be turned off.Default true
max_secondsinteger Optional
The time budget of the whole crawl, in seconds.Default 300

A request, ready to send

It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.

# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/web.crawl/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"url":"https://docs.widgetlib.org/en/stable/index.html","max_pages":10}}'

# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
from enrichednow import EnrichedNow

client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY

# Start a run, wait for it to end, and get its records
result = client.scrape("web.crawl", {
    "url": "https://docs.widgetlib.org/en/stable/index.html",
    "max_pages": 10,
})
print(result.run.id, result.run.status, result.run.record_count)

# Read its records: pages are fetched as you go
for record in result.records:
    print(record)

Install it with pip install enrichednow, then save as run.py and run python3 run.py

import EnrichedNow from "enrichednow";

const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY

// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("web.crawl", {
  url: "https://docs.widgetlib.org/en/stable/index.html",
  max_pages: 10,
});
console.log(run.id, run.status, run.record_count);

// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);

Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

package main

import (
	"context"
	"fmt"
	"log"
	"time"

	enrichednow "github.com/enrichednow/enrichednow-go"
)

func main() {
	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
	if err != nil {
		log.Fatal(err)
	}
	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
	defer cancel()

	// Start a run, wait for it to end, and get its records
	run, records, err := client.Scrape(ctx, "web.crawl", map[string]any{"url": "https://docs.widgetlib.org/en/stable/index.html", "max_pages": 10})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(run.ID, run.Status, run.RecordCount)

	// Read its records: pages are fetched as you go
	for records.Next() {
		fmt.Println(string(records.Current()))
	}
	if err := records.Err(); err != nil {
		log.Fatal(err)
	}
}

Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;

public class Run {
    public static void main(String[] args) {
        EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY

        // Start a run, wait for it to end, and get its records
        ScrapeResult result = client.scrape("web.crawl", Map.of("url", "https://docs.widgetlib.org/en/stable/index.html", "max_pages", 10));
        System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());

        // Read its records: pages are fetched as you go
        for (Map<String, Object> record : result.records()) {
            System.out.println(record);
        }
    }
}

Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

enrichednow run web.crawl --input url=https://docs.widgetlib.org/en/stable/index.html --input max_pages=10

Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

What comes back

The site's pages as clean Markdown, one record for each page. A record has 17 fields. One we could not read is null, never an empty string or a zero.

A record web.crawl returned
{
  "url": "https://docs.widgetlib.org/en/stable/quickstart.html",
  "final_url": "https://docs.widgetlib.org/en/stable/quickstart.html",
  "status": 200,
  "content_type": "text/html",
  "title": "Quickstart — widgetlib 2.4 documentation",
  "description": null,
  "language": "en",
  "canonical_url": null,
  "markdown": "# Quickstart\n\nInstall `widgetlib` with pip:\n\n```console\n$ pip install widgetlib\n```\n\n## Your first widget\n\n```python\nfrom widgetlib import Widget\n\nw = Widget(size=3)\nprint(w.render())  # ``<widget size=3>``\n```\n\nNote\n\nSee [the API … [truncated]",
  "text_length": 299,
  "word_count": 46,
  "links": [
    {
      "url": "https://docs.widgetlib.org/en/stable/api.html",
      "text": "API reference",
      "same_site": true
    },
    {
      "url": "https://docs.widgetlib.org/en/stable/index.html",
      "text": "Home",
      "same_site": true
    }
  ],
  "metadata": {
    "open_graph": {},
    "json_ld": []
  },
  "truncated": false,
  "depth": 1,
  "fetched_at": "2026-11-19T18:07:42.164737Z"
}

The scraper returned this record for the input above, reading a page built for its tests, not the live site.

Values shortened for this page: markdown: 466 characters, the first 230 shown; links: 3 items, the first 2 shown.

The fields of a record

urlstring
The address that was asked for.
final_urlstring
The address that answered, after redirects.
statusinteger
The HTTP status of the answer.
content_typestring or null
The media type of the answer, e.g. text/html.
titlestring or null
The page's title.
descriptionstring or null
The page's meta description.
languagestring or null
The language the page declares (e.g. en, de-CH); null when it declares none.
canonical_urlstring or null
The canonical address the page names for itself.
markdownstring
The page's content as Markdown.
text_lengthinteger
Characters of plain text in the content that was written.
word_countinteger
Words of plain text in the content that was written.
linkslist of objects
The links on the whole page, once each (the first 2000).Each holds url, text, same_site.
next_urlstring or null
The address of the next page of the list this page shows (a directory, search results, an archive), when the page links to one on its own site: rel=next, or a link labelled Next, › or ». Null otherwise. web.crawl with follow: next_page reads these pages one after the other.
metadataobject
What the page declares about itself in structured form: its Open Graph properties and its JSON-LD objects. Both are empty when it declares none.Holds open_graph, json_ld.
truncatedboolean
True when the page was longer than 5000000 bytes and was cut there.
depthinteger or null
web.crawl only: links between the start page and this one.
fetched_atdatetime
When the page was fetched, in UTC.

The whole schema, in its reference

Units and limits

Counted per record
Billed per record: a run that returns data costs 1 unit for each record it returns.
A miss costs nothing
A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
What bounds a run
A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.

What it does not do

  • No JavaScript is run. A page that builds its content in the browser is not read.
  • It reads the start page's site only, and it obeys the site's robots.txt.

The bounds its schema sets

max_pages
1 to 100; 10 unless you say otherwise
max_depth
0 to 10; 3 unless you say otherwise
include_paths
at most 20 items
exclude_paths
at most 20 items
follow
links, next_page; links unless you say otherwise
max_seconds
10 to 900; 300 unless you say otherwise

Scraper API pricing: how units workThe five ways a run ends

Questions

What does Website to Markdown return?

The site's pages as clean Markdown, one record for each page. A record has 17 fields, among them url, final_url, status, content_type, title and description. A value that could not be read is null, never an empty string or a zero.

What do I send?

A start page on a public website. The input url is required. Optional: main_content_only, include_links, include_images, max_pages, max_depth, include_paths, exclude_paths, follow, same_site_only and max_seconds.

How is it counted?

Billed per record: a run that returns data costs 1 unit for each record it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.

How much does one run return?

Its schema sets these bounds: max_pages 1 to 100 (10 unless you say otherwise); max_depth 0 to 10 (3 unless you say otherwise); include_paths at most 20 items; exclude_paths at most 20 items; follow links, next_page (links unless you say otherwise); max_seconds 10 to 900 (300 unless you say otherwise). A run may take up to 5 minutes.

What does it not do?

No JavaScript is run. A page that builds its content in the browser is not read. It reads the start page's site only, and it obeys the site's robots.txt.

How long are the records kept, and in what format do they come?

Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.

Can an AI assistant call it?

Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id web.crawl and the same input. It costs what the same API call costs.

Used in these playbooks

A playbook runs Website to Markdown as one of its steps and hands back the finished list. Its runs of this scraper cost what they cost here, and the playbook adds nothing.

  • Local business

    Directory to Leads

    The businesses a directory lists, each with its website and the email that site publishes, checked.

  • Research

    Knowledge Base Crawl

    A site's or docs' pages as clean Markdown, one row a page; saved, it returns only the pages that are new, changed or gone.

Web

Public web pages: as the server sends them, after their scripts ran, as Markdown or as a picture, and what is in them. A domain's registration and its DNS records.

  • Web page

    web.fetch

    The address of a public web page. The status, headers and body its server sent.

  • The address of a public web page. The page as clean Markdown, with its title, description, links and metadata.

  • PDF document

    web.document

    The address of a public PDF, how many of its pages to read (up to 500), and whether to read scanned pages with OCR. Each page's text in reading order, the whole document as Markdown, its tables as rows and columns with their page, and its title, author and dates.

  • The address of an RSS, Atom or JSON feed. Each entry of the feed: its title, link, summary and content as plain text, author, categories, dates, image and attached files.

  • Sitemap

    web.sitemap

    A sitemap's address, or a website's address to find its sitemap from robots.txt. Every address the sitemap lists, with the last-modified date, change frequency, priority, images, language versions and news details it states.

  • The address of a public web page that builds its content with JavaScript. The page's HTML after a browser has loaded it and run its scripts.

  • The address of a public web page, and your own CSS or XPath rules, each with a name. One record with what each rule selected, under its name: text, an attribute, HTML, a list, or an object of fields.

  • The address of a public news or blog article. Its title, authors, dates, section and tags, the body as text and as Markdown, the lead image, the site and the language.

  • The address of a public web page. The technologies it reveals, each with its category, version where shown, and the evidence it was recognised by.

  • Product page

    web.product

    The address of a product's page in any online shop. The product the page declares: name, brand, description, category, price and price range, list price, currency, availability, condition, rating and reviews, images, SKU, GTIN and part number, and each offer or variant.

  • Web page screenshot

    web.screenshot

    The address of a public web page, and what to take: the window, the whole page or one element, on a desktop, tablet or phone. A PNG or JPEG of the page, to download from the address in the record, with its size, format and checksum.

  • The address of a public web page, a phone or a desktop, and how many times to load it (one to three). Load timings, Core Web Vitals, page weight by file type, the largest files, a 0 to 100 score and plain findings such as "3.1 MB of JavaScript".

  • A domain name. Its registrar, creation, update and expiry dates, statuses, name servers, DNSSEC, and the registrant where the registry publishes one.

  • A host name. Its DNS records: addresses, aliases, mail servers, name servers, TXT, SOA, CAA and, when asked, SRV.

  • Website contacts

    web.contacts

    A company's domain. The contact details its own website publishes: e-mail addresses, phone numbers, social profiles and postal address.

Web on the line-up

Where
Worldwide

Run it on an input of your own.

Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.

Used with other scrapers for:Web data for AI agents