{"openapi":"3.1.0","info":{"title":"PDF to Text API","version":"1.0.0","description":"Extract text from PDF documents: the complete document text, the text of every page separately, the document metadata (page count, title, author, subject, keywords, creator, producer, creation and modification dates, PDF version, encryption and outline flags), and a full in-document search that returns the matching pages with hit counts and context snippets. Supply a PDF by public URL, base64 or a raw binary request body; only public http/https URLs are accepted and private or internal hosts are blocked. Pure server-side computation (pdf.js, no third-party upstream, no per-page cloud cost). Ideal for document indexing and search, data extraction and ETL, invoice and contract processing, archiving and content pipelines.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/pdftext-api","description":"oanor gateway"}],"tags":[{"name":"PDF"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/extract":{"get":{"operationId":"get_v1_extract","tags":["PDF"],"summary":"Extract full + per-page text","description":"","parameters":[{"name":"url","in":"query","required":false,"description":"PDF URL (or base64/raw body)","schema":{"type":"string"},"example":"https://example.com/doc.pdf"},{"name":"base64","in":"query","required":false,"description":"Base64 PDF data","schema":{"type":"string"}},{"name":"pages","in":"query","required":false,"description":"Include per-page text (default true)","schema":{"type":"string"},"example":"true"},{"name":"max_chars","in":"query","required":false,"description":"Cap returned text length","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/info":{"get":{"operationId":"get_v1_info","tags":["PDF"],"summary":"PDF metadata","description":"","parameters":[{"name":"url","in":"query","required":false,"description":"PDF URL (or base64/raw body)","schema":{"type":"string"}},{"name":"base64","in":"query","required":false,"description":"Base64 PDF data","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/search":{"get":{"operationId":"get_v1_search","tags":["PDF"],"summary":"Search text inside the PDF","description":"","parameters":[{"name":"q","in":"query","required":true,"description":"Search query","schema":{"type":"string"},"example":"invoice"},{"name":"url","in":"query","required":false,"description":"PDF URL (or base64/raw body)","schema":{"type":"string"}},{"name":"base64","in":"query","required":false,"description":"Base64 PDF data","schema":{"type":"string"}},{"name":"case_sensitive","in":"query","required":false,"description":"Exact case","schema":{"type":"string"},"example":"false"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK"},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":7000,"rps_limit":2,"hard_limit":true},{"slug":"basic","name":"Basic","price_cents_month":980,"monthly_call_quota":85000,"rps_limit":5,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":2950,"monthly_call_quota":600000,"rps_limit":15,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":7400,"monthly_call_quota":3000000,"rps_limit":40,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/pdftext-api"}