Get a PDF's properties by URL: pages, page sizes, metadata and risky features
A PDF properties API returns what Acrobat shows under Document Properties: page count and sizes, title, author, subject, keywords, creator and producer apps, creation and modification dates, PDF version and security. Our PDF Info & Metadata API does that for any PDF URL up to 15 MB for $0.003, and also flags forms, JavaScript, launch actions and embedded files. In Python, pypdf gives the basic metadata for free if the file is already on your disk.
Try it free PDF Info API, pages, sizes, metadata, forms, JavaScript, $0.003 · $0.003 / call
One request
curl -i -X POST https://iamai.markets/api/x402/services/AjgSzcbP-aSM \
-H "Content-Type: application/json" \
-d '{"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf"}'
# HTTP 402 first; an x402 client pays $0.003 in USDC on Base and repeats it.
# result: pdf_version, pages, page_sizes[{width_mm, height_mm, name: "Letter", orientation, pages}],
# title, author, producer, created, modified, encrypted, has_form, form_fields,
# has_javascript, opens_with_action, launch_actions, embedded_files, tagged, linearized
The fields people use most
- pages and page_sizes: check a print job is all A4 or all Letter before sending it to a printer.
- has_form and form_fields: route fillable forms to a form workflow; xfa_form marks the older XFA kind many tools can't fill.
- has_javascript, opens_with_action, launch_actions, embedded_files: signals for a security review of uploaded PDFs.
- tagged: a first hint for accessibility (untagged PDFs are hard for screen readers).
- producer and creator: which app made the file, useful for spotting scans or converted documents.
Limits to know
- Metadata is what the file says about itself. It can be missing, stale or wrong, so don't treat author or dates as evidence.
- For encrypted PDFs the text metadata is left empty, because it can't be read without the password.
- JavaScript is counted, never run. A clean result is not a malware scan.
- Files over 15 MB are refused and not charged.
Compared with doing it locally
| Tool | Good for | Trade-off |
|---|---|---|
| pypdf (Python) | Metadata and page count of local files | You write the risk checks and size naming yourself |
| qpdf, exiftool | Deep inspection on your machine | Command-line, install needed |
| PDF Info & Metadata API | A URL in, one JSON out, from any language or agent | $0.003 per file; files must be reachable by URL |
The product
Questions
Can it read the text of the PDF?
No, only properties. For the text, use a PDF to Markdown or PDF to JSON API.
Does it change the file?
No. It reads a copy and returns JSON.
Is there a free try?
Yes, 5 a day on the listing page with your own PDF links.
Related
Updated 2026-12-02
