Skip to content
Fourohtwo

pdf.plainapi.workers.dev/text

Extract the text of a PDF by URL and return it as Markdown, ready for an LLM. Input: url of a public PDF (http or https). Output: JSON with markdown split by page, title (from PDF metadata when present), token count and file size. Text-based PDFs up to 10 MB; scanned image-only PDFs return little text (no OCR). $0.002 per file, no API key, failed fetches are not charged.

BaseAnswering
GEThttps://pdf.plainapi.workers.dev/text

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://pdf.plainapi.workers.dev/text?url=https%3A%2F%2Farxiv.org%2Fpdf%2F1706.03762");
console.log(await res.json());

Example input

{
  "url": "https://arxiv.org/pdf/1706.03762"
}