PDF to Markdown & Text Extractor

Turn PDF links into clean Markdown (headings, lists, tables), plain text, per-page text, metadata, links and token-sized RAG chunks with page numbers. Bulk URLs, scanned and failed files are free.

$1.50 per 1,000 records, once live runs open

You pay only for the records you get. Zero records cost zero.

See the sample
Ready-made, maintained by usSamples onlyRecords, 30 fieldsv1.0

Get this data

Download the sample, or ask for live runs. Calls from your code and Google Sheets work once live runs open.

Samples only

Live runs for this API open soon.

The sample records further down show what it returns. The fields, inputs and price here are the ones live runs will use.

For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
Live runs for this API open soon.
Until then this call answers 503 backend_unavailable and charges nothing. The examples show the call as it will work.
Endpoint
POSThttps://pullrow.dev/v1/apis/pdf-to-markdown-extractor/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
A key is free to create. No card.
curl
curl -X POST "https://pullrow.dev/v1/apis/pdf-to-markdown-extractor/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "pdf_urls": [
      "https://arxiv.org/pdf/1706.03762"
    ]
  },
  "max_items": 50
}'

Inputs

Send them as input in the request body. Leave one out to use its default.

pdf_urlslistrequired
Direct links to PDF files (reports, papers, filings, manuals, brochures). One row per PDF.
example: https://arxiv.org/pdf/1706.03762
outputslist
Markdown (headings, lists, simple tables), plain text, per-page text and Markdown, and token-sized chunks ready for a vector database. Metadata and links are always included.
default: markdown, text, chunksone of: markdown, text, pages, chunks
row_per_pageyes/no
Save one row per page instead of one row per PDF (handy for very large PDFs or page-level search). Price is the same.
default: false
page_rangetext
Only read these pages, e.g. "1-5, 8, 20-". Empty = all pages (up to the per-PDF page limit).
max_pages_per_pdfnumber
Stop reading a PDF after this many pages. The first 30 pages of every PDF are included in the PDF price.
default: 300

What's in each record

30 fields: 29 here, 1 technical one under Technical details.

Basics

  • Status

    Example ok

  • Message

    Plain-English reason for a skipped link.

  • File name

    Example 1706.03762

  • File size bytes

    Example 2,215,244

  • Title

    Title (metadata, else the largest text on page 1)

    Example Attention Is All You Need

  • Title source

    Metadata, xmp or first-page.

    Example first-page

  • Author

    Author from the PDF metadata.

  • Subject
  • Keywords
  • Creator

    Creating application.

    Example LaTeX with hyperref

  • PDF producer

    Example pdfTeX-1.40.25

  • Language

    Language from the metadata.

  • Page count

    Pages in the PDF.

    Example 15

  • Pages read

    Example 15

  • Page number
  • Word count

    Example 5,788

  • Char count

    Characters of text.

  • Markdown

    Example # Attention Is All You Need | Ashish Vaswani∗ | Noam Shazeer∗ | ... ### Abstract The dominant sequence transduction…

  • Plain text

    Example Attention Is All You Need ...

  • Per-page text and Markdown
  • Chunks

    RAG chunks: index, heading, text, tokens, pageStart, pageEnd.

    Example 1 item: Index: 2 · Heading: Attention Is All You Need > Abstract · Text: ### Abstract The dominant sequence transduction models are based on complex recurrent ...

  • Chunk count

    Number of chunks.

    Example 34

  • Pages needing OCR

    Pages with no text layer (scanned)

  • Truncated

    Why reading stopped early, if it did.

  • Extracted

    When the row was made.

Dates

  • Created

    Creation date (ISO)

    Example Apr 10, 2024

  • Modified

    Modification date (ISO)

  • Link

    The link you gave.

    Example arxiv.org/pdf/1706.03762

  • Links

    Links found in the PDF.

    Example 1 item: Page: 10 · Link: https://github.com/tensorflow/tensor2tensor

Technical detailsField names and types for developers, and the 1 field hidden above

Hidden by default

This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.

  • Error code errorCodeWhy the link was not read.

Field names and types

The names your code reads in each record. "Filled" counts how many of the 1 sample record carry the field.

Field nameTypeShown on this page asFilled
urllinkLink1 of 1
statustextStatus1 of 1
errorCodetextError code (hidden)0 of 1
messagetextMessage0 of 1
fileNametextFile name1 of 1
fileSizeBytesnumberFile size bytes1 of 1
titletextTitle1 of 1
titleSourcetextTitle source1 of 1
authortextAuthor0 of 1
subjecttextSubject0 of 1
keywordstextKeywords0 of 1
creatortextCreator1 of 1
producertextPDF producer1 of 1
createdAtdate and timeCreated1 of 1
modifiedAtdate and timeModified0 of 1
languagetextLanguage0 of 1
pageCountnumberPage count1 of 1
pagesReadnumberPages read1 of 1
pagenumberPage number0 of 1
wordCountnumberWord count1 of 1
charCountnumberChar count0 of 1
markdowntextMarkdown1 of 1
texttextPlain text1 of 1
pageslistPer-page text and Markdown0 of 1
chunkslistChunks1 of 1
chunkCountnumberChunk count1 of 1
linkslistLinks1 of 1
pagesNeedingOcrlistPages needing OCR0 of 1
truncatedtextTruncated0 of 1
extractedAttextExtracted0 of 1

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordTitlePlain textStatusMessageFile nameFile size bytesTitle sourceAuthorSubjectKeywordsCreatorPDF producerLanguagePage countPages readPage numberWord countChar countMarkdownPer-page text and MarkdownChunksChunk countPages needing OCRTruncatedExtractedCreatedModifiedLinkLinks
1Attention Is All You NeedAttention Is All You Need ...ok—1706.037622,215,244first-page———LaTeX with hyperrefpdfTeX-1.40.25—1515—5,788—# Attention Is All You Need | Ashish Vaswani∗ | Noam Shazeer∗ | ... ### Abstract The dominant sequence transduction models ...—1 item: Index: 2 · Heading: Attention Is All You Need > Abstract · Text: ### Abstract The dominant sequence transduction models are based on complex recurrent ...34———Apr 10, 2024—arxiv.org/pdf/1706.037621 item: Page: 10 · Link: https://github.com/tensorflow/tensor2tensor

Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.

Reliability

Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.

Incidents and repairs

How it is kept working What a repair can't do

A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.

  • You pay only for records returned. A run that returns none costs nothing.

Version history

A run uses the live version unless the request names another one with version.