{"uid":"cap_yPJn8X6M5NVuKXvYa2vvu","slug":"dotrockets-pdf-to-text-extractor-x402-f97f5d79","name":"dotrockets PDF to Text Extractor (x402)","description":"Machine-payable APIs for AI agents over x402: cosmic live data, AI-visibility scoring, website screenshots, and scrape-to-markdown. Pay per call in USDC on Base. No API keys, no signup.","url":"https://x402.dotrockets.com/v1/pdf?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["url"],"properties":{"ocr":{"type":"string","description":"auto (Default), 0 = nie, 1 = erzwingen"},"url":{"type":"string","description":"https://…/datei.pdf"},"maxPages":{"type":"number","description":"1-10 (Default 5)"}}},"responseSchema":{"type":"object","properties":{"text":{"type":"string"},"chars":{"type":"number"},"method":{"type":"string","description":"text | ocr"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.06","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.06/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UUf6LFigIwuwQTcoTaZDQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.06","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a PDF from a URL and extracts its text content, using OCR if needed, returning the extracted text and character count.","exampleAgentPrompt":"Can you grab the text from this PDF — https://example.com/report.pdf — extracting up to 5 pages, and use OCR automatically if needed?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the extracted text string, the total character count, and the method used (either 'text' for native PDF text extraction or 'ocr' for optical character recognition).","failureModes":["Invalid or unreachable PDF URL returns an error","PDF has more pages than maxPages limit — only first N pages extracted","OCR disabled but PDF is image-only — may return empty or minimal text","Payment failure via x402 if USDC balance is insufficient","PDF is password-protected or corrupted — extraction fails","maxPages out of range (not 1-10) may return validation error"],"whenToPreferThis":"Use this endpoint when you need to extract readable text from a remote PDF file, especially when the PDF may be image-based or scanned (OCR support). Ideal for AI agents that need to process PDF documents without managing API keys — pay per call in USDC via x402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:31:36.610Z","isFirstParty":false,"canonicalSlug":"dotrockets-pdf-to-text-extractor-x402-f97f5d79"}