Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    PlaybooksResearch

    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.

    Id
    knowledge-base-crawl
    Version
    1.0.0
    Category
    Research
    Status
    Beta: it works, and may still change in a minor version
    Saved, it runs
    daily, weekly, monthly
    Unit cap
    300 by default, 1 to 5000

    Reads the pages of a website or documentation from the address you give, following its links or its sitemap, and returns each page as Markdown without menus, headers and footers, with its title, description, language and word count. Each page's content is fingerprinted, so a saved playbook run daily or weekly returns only the pages that are new or whose content changed since the last run, and the pages that are gone, which is what keeps a search or chat index of the site up to date. Pages that the site's robots.txt rules forbid are not read.

    Use when someone wants a website or its documentation as Markdown for an AI assistant or search index, kept up to date.

    Run it with POST /v1/formulas/knowledge-base-crawl/runs. How runs work is in Running a playbook; what a run costs is below.

    Parameters

    The fields of params, the Basics first. Only the required ones must be given; every other has a default. A field that is not listed is refused. The OpenAPI document has them as the type KnowledgeBaseCrawlParams.

    Parameters of Knowledge Base Crawl
    ParameterTypeRequired or defaultWhat it is
    start_urlBasicsstringrequiredStart address. The address of the site or the documentation, such as https://docs.example.com/guide/. Only pages of the same site are read.up to 500 characters.
    max_pagesBasicsinteger50Most pages read. Each page read is one unit. Following links reads at most 100 pages a run; with a sitemap, up to 2000.at least 1, at most 2000.
    include_pathsBasicslist of strings[]Only these sections. Read only pages whose path starts with one of these, such as /docs/. Leave empty for the whole site below the start address.up to 20, each up to 200 characters.
    sitemap_urlBasicsstring""Sitemap. To read the pages a sitemap lists instead of following links, its address (https://example.com/sitemap.xml) or the site's bare address. Only listed pages under the start address are read.up to 500 characters.
    exclude_pathsFilterslist of strings[]Leave out these sections. Pages whose path starts with one of these are not read, such as /blog/ or /changelog/.up to 20, each up to 200 characters.
    max_depthFiltersinteger3Link depth. How many links away from the start address a page may be when links are followed.at least 0, at most 10.
    whole_pageFiltersbooleanfalseKeep menus, headers and footers. Off, each page's Markdown is its main content only, which is what an index wants.
    min_wordsFiltersinteger20Least words on a page. Leaves out near-empty pages, such as redirects and section stubs.at least 0, at most 5000.
    report_removedOutputbooleantrueReport pages that are gone. A saved playbook also returns the pages the last run read that this one did not find. Turn it off when the site has more pages than a run reads.
    max_resultsOutputinteger500Most rows. The run stops at this many pages, changed ones first.at least 1, at most 2000.

    Presets

    Ready-made answers to start from: give them as params, with any of your own beside them.

    The uv documentation (25 pages) uv-docs

    JSON
    {
      "start_url": "https://docs.astral.sh/uv/",
      "max_pages": 25
    }

    The FastAPI tutorial (100 pages) fastapi-docs

    JSON
    {
      "start_url": "https://fastapi.tiangolo.com/tutorial/",
      "max_pages": 100
    }

    One documentation section docs-section

    JSON
    {
      "include_paths": [
        "/docs/"
      ],
      "max_pages": 100
    }

    Deep crawl (100 pages, 5 links deep) deep-crawl

    JSON
    {
      "max_pages": 100,
      "max_depth": 5
    }

    Light weekly check (25 pages) changes-only-light

    JSON
    {
      "max_pages": 25,
      "report_removed": false
    }

    Columns

    The columns of each row’s data, in order; rows also carry a score from 0 to 100, and come best first. A value that is not known is null.

    Columns of Knowledge Base Crawl
    ColumnLabelTypeShown by default
    urlPageurlyes
    titleTitlestringyes
    changeChange since last runstringyes
    markdownMarkdownstringno
    word_countWordsintegeryes
    descriptionDescriptionstringno
    languageLanguagestringno
    depthLinks from the startintegerno
    last_modifiedLast modified (sitemap)dateno
    canonical_urlCanonical addressurlno
    truncatedCut shortbooleanno
    fingerprintContent fingerprintstringno
    scoreScorenumberno

    Example request

    # Start the run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/formulas/knowledge-base-crawl/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"params":{"start_url":"https://docs.astral.sh/uv/","max_pages":25,"include_paths":[],"sitemap_url":"","exclude_paths":[],"max_depth":3,"whole_page":false,"min_words":20,"report_removed":true,"max_results":500},"unit_cap":300}'
    
    # Follow it until it ends, then read its rows, with the id the first call answered
    curl "https://api.enrichednow.com/v1/formula-runs/$RUN_ID?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    curl "https://api.enrichednow.com/v1/formula-runs/$RUN_ID/rows?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start the run, wait for it to end, and get its rows
    params = {
        "start_url": "https://docs.astral.sh/uv/",
        "max_pages": 25,
        "include_paths": [],
        "sitemap_url": "",
        "exclude_paths": [],
        "max_depth": 3,
        "whole_page": False,
        "min_words": 20,
        "report_removed": True,
        "max_results": 500,
    }
    result = client.run_formula("knowledge-base-crawl", params, unit_cap=300)
    print(result.run.id, result.run.status, result.run.rows_total, result.run.units_spent)
    
    # Read its rows, best first: pages are fetched as you go
    for row in result:
        print(row.data)

    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 the run, wait for it to end, and get its rows
    const params = {
      start_url: "https://docs.astral.sh/uv/",
      max_pages: 25,
      include_paths: [],
      sitemap_url: "",
      exclude_paths: [],
      max_depth: 3,
      whole_page: false,
      min_words: 20,
      report_removed: true,
      max_results: 500,
    };
    const { run, rows } = await client.runFormula("knowledge-base-crawl", params, { unitCap: 300 });
    console.log(run.id, run.status, run.rows_total, run.units_spent);
    
    // Read its rows, best first: pages are fetched as you go
    for await (const row of rows) console.log(row.data);

    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(), 30*time.Minute)
    	defer cancel()
    
    	// Start the run, wait for it to end, and get its rows
    	params := map[string]any{"start_url": "https://docs.astral.sh/uv/", "max_pages": 25, "include_paths": []any{}, "sitemap_url": "", "exclude_paths": []any{}, "max_depth": 3, "whole_page": false, "min_words": 20, "report_removed": true, "max_results": 500}
    	run, rows, err := client.RunFormula(ctx, "knowledge-base-crawl", params, &enrichednow.RunFormulaParams{UnitCap: 300})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RowsTotal, run.UnitsSpent)
    
    	// Read its rows, best first: pages are fetched as you go
    	for rows.Next() {
    		fmt.Println(string(rows.Current().Data))
    	}
    	if err := rows.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.FormulaResult;
    import com.enrichednow.FormulaRunOptions;
    import com.enrichednow.models.FormulaRow;
    import java.util.List;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start the run, wait for it to end, and get its rows
            FormulaResult result = client.runFormula("knowledge-base-crawl", Map.of("start_url", "https://docs.astral.sh/uv/", "max_pages", 25, "include_paths", List.of(), "sitemap_url", "", "exclude_paths", List.of(), "max_depth", 3, "whole_page", false, "min_words", 20, "report_removed", true, "max_results", 500), FormulaRunOptions.builder().unitCap(300).build());
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().rowsTotal() + " " + result.run().unitsSpent());
    
            // Read its rows, best first: pages are fetched as you go
            for (FormulaRow row : result.rows()) {
                System.out.println(row.data());
            }
        }
    }

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

    enrichednow formulas run knowledge-base-crawl --params-json '{"start_url":"https://docs.astral.sh/uv/","max_pages":25,"include_paths":[],"sitemap_url":"","exclude_paths":[],"max_depth":3,"whole_page":false,"min_words":20,"report_removed":true,"max_results":500}' --unit-cap 300

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

    {
      "name": "run_formula",
      "arguments": {
        "formula_id": "knowledge-base-crawl",
        "params": {
          "start_url": "https://docs.astral.sh/uv/",
          "max_pages": 25,
          "include_paths": [],
          "sitemap_url": "",
          "exclude_paths": [],
          "max_depth": 3,
          "whole_page": false,
          "min_words": 20,
          "report_removed": true,
          "max_results": 500
        }
      }
    }

    It starts a full run with the answers the sample rows below were made with and the default unit cap, waits for it, and reads its rows a page at a time. The key is read from an environment variable. The MCP tab is the same run asked of an agent connected to the MCP server, which runs a preview first.

    Example response

    The data of the first 3 rows a real run returned with these answers on 2026-11-24: it ended ok with 25 rows, after 1 scraper calls charged 25 units. Text over 160 characters is cut here and ends with … [truncated]; the API returns every value whole.

    JSON
    [
      {
        "url": "https://docs.astral.sh/uv/",
        "title": "uv",
        "change": "new",
        "markdown": "# uv\n\nAn extremely fast Python package and project manager, written in Rust.\n\nShows a bar chart with benchmark results.\n\nShows a bar chart with benchmark … [truncated]",
        "word_count": 753,
        "description": "uv is an extremely fast Python package and project manager, written in Rust.",
        "language": "en",
        "depth": 0,
        "last_modified": null,
        "canonical_url": "https://docs.astral.sh/uv/",
        "truncated": false,
        "fingerprint": "3a212d50c10f2dab",
        "score": 20
      },
      {
        "url": "https://docs.astral.sh/uv/getting-started/",
        "title": "Getting started | uv",
        "change": "new",
        "markdown": "# Getting started\n\nTo help you get started with uv, we'll cover a few important topics:\n\n- [Installing … [truncated]",
        "word_count": 64,
        "description": "uv is an extremely fast Python package and project manager, written in Rust.",
        "language": "en",
        "depth": 1,
        "last_modified": null,
        "canonical_url": "https://docs.astral.sh/uv/getting-started/",
        "truncated": false,
        "fingerprint": "bdbeb526b1f056b6",
        "score": 20
      },
      {
        "url": "https://docs.astral.sh/uv/getting-started/installation/",
        "title": "Installation | uv",
        "change": "new",
        "markdown": "# Installing uv\n\n## Installation methods\n\nInstall uv with our standalone installers or your package manager of choice.\n\n### Standalone installer\n\nuv provides a … [truncated]",
        "word_count": 740,
        "description": "uv is an extremely fast Python package and project manager, written in Rust.",
        "language": "en",
        "depth": 1,
        "last_modified": null,
        "canonical_url": "https://docs.astral.sh/uv/getting-started/installation/",
        "truncated": false,
        "fingerprint": "12f4aee7f46b7fe9",
        "score": 20
      }
    ]

    Each row also has its id, its score, when it was first seen and its evidence: where each value came from. The run and its rows are described in Running a playbook.

    Pricing

    A run costs the units of the work it does, and nothing on top: each scraper call it makes is charged at that scraper's rate, when the call ends ok or partial. It never spends past its unit cap: 300 units unless you give another (at least 1, at most 5000).

    With the answers above, a run is estimated at about 25 units for about 25 rows, and at most 25: 1 search across 1 source, about 25 rows. An estimate for no history; POST /v1/formulas/knowledge-base-crawl/estimate gives yours, free.

    A preview, mode: preview, is the first 10 rows, charged at what they cost: about 25 units with the answers above. POST /v1/formulas/knowledge-base-crawl/estimate with mode: preview gives yours, free.

    How a playbook is charged has the rule for every playbook.