arrow_back All endpoints

PDF Metadata Reader

POST/api/v1/tools/pdf-metadata2 credits per callpdfmetadatadocument

Reads a PDF's document information dictionary and returns its metadata along with page count and encryption status. Only the metadata is parsed - page content is never rendered - so this stays cheap regardless of how large the document is.

receipt_long
Why 2 credits?

Parses only the PDF's header and information dictionary rather than rendering pages, but the file still has to be uploaded and read, which is why it sits above the one-credit floor.

Any HTTP client works. Replace the key with one from your dashboard.

bash
curl -X POST https://toolkitbackend-j69m.onrender.com/api/v1/tools/pdf-metadata \
  -H "Authorization: Bearer tb_live_<your_api_key>" \
  -H "Content-Type: application/json" \
  -d '{
  "fileUrl": "https://example.com/doc.pdf"
}'

Input

FieldTypeRequiredDefaultDescription
fileUrlstringrequired- Publicly reachable URL of the PDF to inspect.

Output

FieldTypeDescription
titlestringDocument title, or null when unset.
authorstringDocument author, or null when unset.
subjectstringDocument subject, or null when unset.
producerstringSoftware that produced the file.
pageCountintegerNumber of pages.
encryptedbooleanTrue when the document is password protected.

Try it

Sends a real POST /api/v1/tools/pdf-metadata from your browser and charges 2 credits to your account.

Sign in to run this endpoint. New accounts start with free credits.