DocParse
Upload a file or pass a URL. Get text, per-page text, metadata and page counts back as JSON. Built on unpdf inside a Worker: no queue, no cold start bill, no 30 second timeout.
$ curl -s -X POST "https://docparse.ayamk.in/v1/pdf/text" -H "content-type: application/json" -d '{"url":"https://arxiv.org/pdf/1706.03762v7"}' | jq '.pageCount, .words'{
"pageCount": 15,
"characters": 41288,
"words": 6842,
"truncated": false,
"metadata": { "title": "Attention Is All You Need", "producer": "pdfTeX" },
"pages": [
{ "page": 1, "text": "Provided proper attribution is provided..." },
{ "page": 2, "text": "1 Introduction Recurrent neural networks..." }
...7 endpoints, one key
Every route below is described in the OpenAPI document. Import it into Postman or generate a client.
| Method | Path | What it does |
|---|---|---|
| POST | /v1/pdf/text | Full text plus per-page text, page count and metadata. |
| POST | /v1/pdf/info | Page count, metadata, encryption flag. Cheapest call. |
| POST | /v1/pdf/pages | Extract only the pages you name: 1,3,5-7. |
| POST | /v1/docx/text | Extract text, headings, lists and tables from a .docx. |
| POST | /v1/html/text | Readable article text from a URL or raw HTML. |
| POST | /v1/html/markdown | HTML to clean markdown. |
| GET | /v1/formats | Supported inputs and limits. |
What you actually get back
curl -s -X POST "https://docparse.ayamk.in/v1/pdf/text" -H "content-type: application/json" -d '{"url":"https://arxiv.org/pdf/1706.03762v7"}' | jq '.pageCount, .words'
{
"pageCount": 15,
"characters": 41288,
"words": 6842,
"truncated": false,
"metadata": { "title": "Attention Is All You Need", "producer": "pdfTeX" },
"pages": [
{ "page": 1, "text": "Provided proper attribution is provided..." },
{ "page": 2, "text": "1 Introduction Recurrent neural networks..." }
],
"durationMs": 626
}
Built for the boring part
No job queue
Extraction happens in the request. A 15 page paper comes back in ~600ms, so your ingestion loop stays synchronous.
Two ways to send a file
multipart/form-data for direct uploads, or a JSON URL for files already in storage. Same response shape either way.
Bounded by design
8MB input, 100 pages per request, explicit truncation flags. Predictable cost, no surprise bills when someone uploads a 900 page scan.
Priced per request, not per seat
All plans are managed by the RapidAPI marketplace, which applies a marketplace fee before payout. Annual and custom limits are available on request.
Where this earns its place
RAG ingestion
Invoice and contract parsing
Resume screening
Support ticket attachment reading
Questions we get asked
Can it read scanned PDFs?
It extracts whatever text layer exists. A pure image scan has none, so you get an empty string and a warning. Add your own OCR step if you need one.
What is the largest file I can send?
8MB or 100 pages per request, whichever comes first. Larger documents should be split or fetched page ranges with /v1/pdf/pages.
Do you keep my documents?
No. The body is processed in memory and discarded when the response is returned. Nothing is written to storage.
Does it handle password protected PDFs?
It reports them as encrypted with a 422 and a clear message. Decryption is not supported.
Subscribe to DocParse
Free tier included. The listing is published on the RapidAPI marketplace; the key works against every endpoint on this page.