{"uid":"cap__9eg1K8o4B_7hMbwHV5ue","slug":"machina-agent-services-pdf-extract-ec3258d0","name":"Machina Agent Services – PDF Extract","description":"x402-powered API services for AI agents","url":"https://mach402.dev/pdf/extract?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"http://json-schema.org/draft-07/schema#","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType"],"properties":{"body":{"type":"string","description":"Raw PDF bytes (Content-Type: application/pdf), max 50 pages"},"type":{"const":"http"},"method":{"const":"POST"},"bodyType":{"const":"json"}}},"output":{"type":"object","required":["type"],"properties":{"type":{"const":"json"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"markdown":"# Title\n\nContent...","page_count":12,"word_count":4200}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yqAipJlnWJEDo9JnhBdc-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts text content from a PDF file and returns it as Markdown with page and word counts","exampleAgentPrompt":"Can you extract all the text from this PDF and give it back to me as Markdown? It's about 12 pages long.","exampleUseCases":[{"title":"Research paper text extraction","prompt":"I have this academic PDF that's 20 pages long — can you pull out all the text as Markdown so I can search and quote from it easily?"},{"title":"Contract content parsing","prompt":"Extract the full text from this contract PDF for me so I can review it — return it in Markdown format with the page count."},{"title":"Report ingestion for downstream analysis","prompt":"I need to get the text out of this quarterly earnings PDF report so I can summarize it — can you extract it to Markdown and tell me how many words it has?"}],"resultDescription":"A JSON object containing the full extracted text formatted as Markdown (field: 'markdown'), the total number of pages in the PDF (field: 'page_count'), and the total word count of the extracted content (field: 'word_count').","failureModes":["PDF exceeds 50-page limit — request will be rejected","Malformed or corrupted PDF bytes — extraction will fail","Non-PDF content submitted as body — returns error","Empty or missing 'input.body' field — validation error","Encrypted/password-protected PDF — text cannot be extracted","Payment failure via x402 protocol — request not processed"],"whenToPreferThis":"Choose this endpoint when you need to extract raw text content from a PDF document and want it returned in clean Markdown format, especially if you also need metadata like page count and word count. It supports PDFs up to 50 pages. It uses the x402 micropayment protocol at $0.05 USDC per call, making it suitable for agent workflows where pay-per-use is preferred over subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T15:23:49.129Z","isFirstParty":false,"canonicalSlug":"machina-agent-services-pdf-extract-ec3258d0"}