Skip to content
Fourohtwo

POST /doc/text -- Extract text from a PDF

agent-exec.448c.org/doc/text

POST /doc/text -- Extract text from a PDF: send one PDF URL, pay per document in USDC, get the text of each page back as JSON. Up to 20 pages a call, no signup, no API key. A refusal costs nothing unpaid and is held as a prepaid call when paid. Tell us what broke with POST /feedback.

BaseAnswering
POSThttps://agent-exec.448c.org/doc/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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agent-exec.448c.org/doc/text", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":{"type":"string","required":true,"description":"The absolute http(s) URL of the PDF. We fetch it ourselves; you never upload bytes."},"maxPages":{"type":"integer","required":false,"description":"Return at most this many pages: 1..20. Omitted means 20. It never RAISES the cap."}}),
});
console.log(await res.json());

Example input

{
  "url": {
    "type": "string",
    "required": true,
    "description": "The absolute http(s) URL of the PDF. We fetch it ourselves; you never upload bytes."
  },
  "maxPages": {
    "type": "integer",
    "required": false,
    "description": "Return at most this many pages: 1..20. Omitted means 20. It never RAISES the cap."
  }
}