{"success":true,"data":{"id":"svc_pdfextract_15","slug":"pdf-extract","name":"PDF Text Extraction","description":"Extract all text from a PDF. Send as pdf_base64 (base64-encoded PDF, max ~10 MB decoded). Returns text (full concatenated text), pages array (per-page text + char_count), page_count, and metadata (title, author, creator). Encode with: Buffer.from(pdfBytes).toString('base64'). Ideal for RAG pipelines, document QA, or LLM ingestion.","category":"text","endpoint":"https://agentsvc.io/api/v1/proxy/pdf-extract","price_usdc":0.004,"latency_p99_ms":1500,"input_schema":{"type":"object","required":["pdf_base64"],"properties":{"pdf_base64":{"type":"string","description":"Base64-encoded PDF file content. Decode a PDF file to base64 and pass it here. Max ~10 MB (unencoded)."},"max_pages":{"type":"integer","default":50,"description":"Maximum number of pages to extract. Default: 50. Use to limit processing time for large PDFs."}}},"output_schema":{"type":"object","required":["text","page_count","extracted_at"],"properties":{"text":{"type":"string","description":"Full extracted text from all pages, joined with newlines. Preserves paragraph structure where possible."},"page_count":{"type":"integer","description":"Total number of pages in the PDF"},"pages":{"type":"array","description":"Per-page text content (first max_pages pages)","items":{"type":"object","properties":{"page":{"type":"integer","description":"Page number (1-based)"},"text":{"type":"string","description":"Extracted text for this page"},"char_count":{"type":"integer","description":"Number of characters on this page"}}}},"metadata":{"type":"object","description":"PDF document metadata (if available)","properties":{"title":{"type":"string"},"author":{"type":"string"},"subject":{"type":"string"},"creator":{"type":"string"},"producer":{"type":"string"},"creation_date":{"type":"string"}}},"file_size_bytes":{"type":"integer","description":"Size of the decoded PDF in bytes"},"extracted_at":{"type":"string","format":"date-time","description":"ISO 8601 timestamp of extraction"}},"example":{"text":"Quarterly Financial Report Q1 2026\n\nExecutive Summary\nTotal revenue increased by 23% year-over-year...","page_count":12,"pages":[{"page":1,"text":"Quarterly Financial Report Q1 2026\n\nExecutive Summary","char_count":54},{"page":2,"text":"Table of Contents\n1. Revenue Overview\n2. Cost Analysis","char_count":58}],"metadata":{"title":"Q1 2026 Financial Report","author":"Finance Department","creator":"Adobe Acrobat"},"file_size_bytes":245760,"extracted_at":"2026-04-10T14:00:00.000Z"}},"is_active":true,"provider":"agentsvc.io","tags":["pdf","text","extract","parse","document","ocr","rag","llm"],"method":"POST","example_input":{"pdf_base64":"<base64 of a PDF>","max_pages":10},"price_atomic":"4000","price_display":"$0.004 USDC","try_url":"https://agentsvc.io/api/v1/try/pdf-extract","try_limit_per_day":1,"info_url":"https://agentsvc.io/api/v1/services/pdf-extract","page_url":"https://agentsvc.io/services/pdf-extract","curl_example":"curl -X POST https://agentsvc.io/api/v1/proxy/pdf-extract -H \"Content-Type: application/json\" -d '{\"pdf_base64\":\"<base64 of a PDF>\",\"max_pages\":10}'","status":{"ok":true,"latency_ms":12,"checked_at":"2026-10-05T09:35:11.955Z"}},"payment":{"protocol":"x402","x402_versions_accepted":[1,2],"scheme":"exact","network":"eip155:8453","network_v1":"base","chain_id":8453,"asset":"USDC","asset_contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","asset_decimals":6,"eip712_domain":{"name":"USD Coin","version":"2","chainId":8453,"verifyingContract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"pay_to":"0x622efA6Ceb83a5b6EdBC931332f4db68B7f74F27","facilitator":"https://facilitator.payai.network","request_header_v2":"PAYMENT-SIGNATURE","request_header_v1":"X-PAYMENT","requirements_v2":"base64 JSON in the PAYMENT-REQUIRED response header of the 402","requirements_v1":"JSON body of the 402 (accepts[0])","receipt_header":"PAYMENT-RESPONSE (and X-PAYMENT-RESPONSE): base64 JSON with transaction hash","accounts_required":false,"api_keys_required":false,"settlement":"per call, on-chain, after the service succeeded. Failed calls are never charged."},"links":{"catalog":"https://agentsvc.io/api/v1/services","openapi":"https://agentsvc.io/openapi.json","llms_txt":"https://agentsvc.io/llms.txt","llms_full_txt":"https://agentsvc.io/llms-full.txt","agents_md":"https://agentsvc.io/AGENTS.md","skill_md":"https://agentsvc.io/SKILL.md","status":"https://agentsvc.io/api/v1/status","docs":"https://agentsvc.io/docs","mcp_server":"https://agentsvc.io/mcp-server.mjs","discovery":"https://agentsvc.io/.well-known/x402","agent_card":"https://agentsvc.io/.well-known/agent-card.json"}}