Skip to the content

Scraper API

Web

web.documentAvailable

PDF document

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.

Give it the address of a public PDF, how many of its pages to read (up to 500), and whether to read scanned pages with OCR.

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

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

POST/v1/scrapers/web.document/runs

{
"input": {
"url": "https://www.federalreserve.gov/releases/h41/current/h41.pdf",
"max_pages": 1
}
}

sent, and answered

a record of the run29 fields

{
url: "https://www.federalreserve.gov/releases/h41/current/h41.pdf"
final_url: "https://www.federalreserve.gov/releases/h41/current/h41.pdf"
status: 200
content_type: "application/pdf"
bytes: 190004
sha256: "02b69213c7e62b96d49913bb7372da7b23de10e427eaabb5118652781226b439"
title: null
author: null
subject: null
… 20 more fields

ok1 unit a run

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

federalreserve.gov
The page PDF document reads, as a browser shows it
The page this scraper reads, photographed in a browser on 25 November 2026. It belongs to its publisher, who has no part in this service.

What it is used for

Pull figures out of filings
Read a quarterly report or a statistical release and take its statements from tables, row by row with the page they came from, instead of copying numbers by hand.
Feed documents to a language model
Give a model the markdown of a report, with its headings and tables kept, and cite the page from pages when it quotes one.
Know when a document changed
Read the same address on a schedule and compare sha256 and modified_at. A new version shows at once, and pages says what it now says.

What you send

The address of a public PDF, how many of its pages to read (up to 500), and whether to read scanned pages with OCR. These are its 4 inputs, as its schema has them.

urlstring Required
The PDF's address. The file is known by its content, whatever type the server names.
max_pagesinteger Optional
Read the first this many pages: 100 unless you say otherwise, up to 500. A longer document is read that far and marked truncated.Default 100
ocrboolean Optional
true (the default) reads up to ten scanned pages that have no text layer with OCR, in English. false lists them without reading them.Default true
timeout_snumber Optional
Seconds for the whole run: fetching the file and reading it.Default 60

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.document/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"url":"https://www.federalreserve.gov/releases/h41/current/h41.pdf","max_pages":1}}'

# 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.document", {
    "url": "https://www.federalreserve.gov/releases/h41/current/h41.pdf",
    "max_pages": 1,
})
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.document", {
  url: "https://www.federalreserve.gov/releases/h41/current/h41.pdf",
  max_pages: 1,
});
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.document", map[string]any{"url": "https://www.federalreserve.gov/releases/h41/current/h41.pdf", "max_pages": 1})
	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.document", Map.of("url", "https://www.federalreserve.gov/releases/h41/current/h41.pdf", "max_pages", 1));
        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.document --input url=https://www.federalreserve.gov/releases/h41/current/h41.pdf --input max_pages=1

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

What comes back

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. A record has 29 fields. One we could not read is null, never an empty string or a zero.

A record web.document returned
{
  "url": "https://www.federalreserve.gov/releases/h41/current/h41.pdf",
  "final_url": "https://www.federalreserve.gov/releases/h41/current/h41.pdf",
  "status": 200,
  "content_type": "application/pdf",
  "bytes": 190004,
  "sha256": "02b69213c7e62b96d49913bb7372da7b23de10e427eaabb5118652781226b439",
  "title": null,
  "author": null,
  "subject": null,
  "keywords": null,
  "creator": "Microsoft Office Word",
  "producer": "Aspose.Words for .NET 21.3.0",
  "created_at": "2023-03-16T13:38:00Z",
  "modified_at": "2026-10-21T16:04:00Z",
  "pdf_version": "1.7",
  "page_count": 11,
  "pages_read": 1,
  "encrypted": false,
  "tagged": false,
  "restrictions": [],
  "markdown": "# FEDERAL RESERVE statistical release\n\nH.4.1\n\n## Factors Affecting Reserve Balances of Depository Institutions and Condition Statement of Federal Reserve Banks November 19, 2026\n\n1. Factors Affecting Reserve Balances of Depository … [truncated]",
  "text_length": 2085,
  "pages": [
    {
      "number": 1,
      "width": 612,
      "height": 792,
      "text": "FEDERAL RESERVE statistical release\nH.4.1\nFactors Affecting Reserve Balances of Depository Institutions and\nCondition Statement of Federal Reserve Banks November 19, 2026\n1. Factors Affecting Reserve Balances of Depository Institutions … [truncated]",
      "text_source": "text",
      "scanned": false,
      "ocr_confidence": null,
      "image_cover": 0.012,
      "word_count": 344
    }
  ],
  "tables": [
    {
      "page": 1,
      "header": [
        "Reserve Bank credit, related items, and reserve balances of depository institutions at Federal Reserve Banks",
        "Averages of daily figures Week ended Nov 18, 2026",
        "Averages of daily figures Change from week ended Nov 11, 2026"
      ],
      "rows": [
        [
          "Reserve Bank credit",
          "6,705,670",
          "-1,792"
        ],
        [
          "Securities held outright1",
          "6,472,783",
          "+3,620"
        ],
        [
          "U.S. Treasury securities",
          "4,586,939",
          "+3,645"
        ]
      ],
      "bbox": [
        35.2,
        273.9,
        571.7,
        618.1
      ],
      "confidence": "high",
      "issues": [
        "heading_spans_columns"
      ]
    }
  ],
  "outline": [],
  "unread_scans": [],
  "unreadable_pages": [],
  "truncated": true,
  "fetched_at": "2026-11-25T06:04:10.365601Z"
}

The scraper returned this record for the input above, reading a saved copy of the page, not the live site.

Values shortened for this page: markdown: 2,513 characters, the first 230 shown; pages[0].text: 2,085 characters, the first 235 shown; tables[0].header: 5 items, the first 3 shown; tables[0].rows: 29 items, the first 3 shown; tables[0].rows[0]: 5 items, the first 3 shown; tables[0].rows[1]: 5 items, the first 3 shown; tables[0].rows[2]: 5 items, the first 3 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 the server named, e.g. application/pdf; servers also send PDFs as application/octet-stream.
bytesinteger
The file's size in bytes.
sha256string
The SHA-256 of the file, to tell whether it changed since a previous read.
titlestring or null
The title in the file's metadata.
authorstring or null
The author in the file's metadata.
subjectstring or null
The subject in the file's metadata.
keywordsstring or null
The keywords in the file's metadata, as written.
creatorstring or null
The program the document was made with, from the metadata (e.g. Microsoft Word).
producerstring or null
The program that wrote the PDF, from the metadata.
created_atdatetime or null
When the file says it was created.
modified_atdatetime or null
When the file says it was last changed.
pdf_versionstring or null
The PDF version the file declares, e.g. 1.7.
page_countinteger
Pages in the document.
pages_readinteger
Pages read: all of them, or the first max_pages.
encryptedboolean
True when the file is encrypted but opens without a password (an owner password that restricts printing or copying). A file that needs a password to open is not read.
taggedboolean
True when the file declares itself tagged (structured for screen readers).
restrictionslist of strings
What the file's owner does not allow, as its permission flags say: print, modify, copy_text, annotate, fill_forms, accessibility, assemble, print_high_quality. Empty when everything is allowed (a file that is not encrypted). Reported, not acted on: the file is read either way.
markdownstring
The pages read, as Markdown: headings, paragraphs, lists and tables.
text_lengthinteger
Characters of text in the pages read (each page has its own word_count).
pageslist of objects
Each page read, with its text in reading order.Each holds number, width, height, text, text_source, scanned, ocr_confidence, image_cover, word_count.
tableslist of objects
The tables read from the pages, in page order, each with its confidence (high only when every label, heading and figure was placed without a guess) and its issues.
outlinelist of objects
The document's outline (its bookmarks), when it has one; the first 500 entries.Each holds level, title, page.
unread_scanslist of integers
Scanned pages without a text layer that were not read: OCR was not asked for, the limit of pages read with OCR was reached, or OCR found no text.
unreadable_pageslist of integers
Pages the document lists but that cannot be loaded (a damaged page tree); they have no entry in pages.
truncatedboolean
True when not every page was read (max_pages, or the text limit).
fetched_atdatetime
When the file was fetched, in UTC.

The whole schema, in its reference

Units and limits

Counted per request
Billed per request: a run that returns data costs 1 unit, however many records 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

  • PDFs only, up to 10 MB. A file that needs a password is not read, and costs nothing.
  • A table is read from the alignment of its text: a cell that spans columns is put in the first of them, and a heading over two columns is written over the first.
  • OCR is English only and covers ten scanned pages a document. A scan that carries its own OCR text is read from that text, which can hold the original's errors.

The bounds its schema sets

max_pages
1 to 500; 100 unless you say otherwise
timeout_s
15 to 120; 60 unless you say otherwise

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

Questions

What does PDF document return?

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. A record has 29 fields, among them url, final_url, status, content_type, bytes and sha256. A value that could not be read is null, never an empty string or a zero.

What do I send?

The address of a public PDF, how many of its pages to read (up to 500), and whether to read scanned pages with OCR. The input url is required. Optional: max_pages, ocr and timeout_s.

How is it counted?

Billed per request: a run that returns data costs 1 unit, however many records 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 500 (100 unless you say otherwise); timeout_s 15 to 120 (60 unless you say otherwise). A run may take up to 5 minutes.

What does it not do?

PDFs only, up to 10 MB. A file that needs a password is not read, and costs nothing. A table is read from the alignment of its text: a cell that spans columns is put in the first of them, and a heading over two columns is written over the first. OCR is English only and covers ten scanned pages a document. A scan that carries its own OCR text is read from that text, which can hold the original's errors.

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.document and the same input. It costs what the same API call costs.

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.

  • 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.

  • A start page on a public website. The site's pages as clean Markdown, one record for each page.

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.