Skip to content
GET /v1/extract

Extract full + per-page text

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/pdftext-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/pdftext-api/v1/extract" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/pdftext-api/v1/extract", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/pdftext-api/v1/extract");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/pdftext-api/v1/extract",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "text": "Dummy PDF file\n\n-- 1 of 1 --\n\n",
        "pages": 1,
        "characters": 30,
        "page_texts": [
            {
                "page": 1,
                "text": "Dummy PDF file",
                "characters": 14
            }
        ],
        "word_count": 8
    },
    "meta": {
        "timestamp": "2026-05-31T03:47:45.053Z",
        "request_id": "cc9847e6-2178-418e-b677-e020c9c81d70"
    },
    "status": "ok",
    "message": "Text extracted",
    "success": true
}