Extraction

PDF Text Extraction

Extract text and metadata from PDF documents. Supports page-specific extraction and returns structured content. Price: $0.004.

post/pdf

Request

  • Base URL: https://api.weblens.dev
  • URL: https://api.weblens.dev/pdf
  • Auth: API key in header Payment-Signature

Request body

urlstring uri required

The URL to process

pagesnumber[]

Page numbers to extract (omit for every page)

Example request

{
  "url": "https://raw.githubusercontent.com/mozilla/pdf.js-sample-files/master/tracemonkey.pdf",
  "pages": [
    1,
    2
  ]
}

Response

Text and metadata out of a PDF, page by page.

urlstring
metadataobject

PDF metadata

fullTextstring

All pages concatenated

extractedAtstring
requestIdstring

Changes

No recorded changes to this operation across all 1 revision of this API.