Use when an agent needs the key facts of a document, not just its text
1gateway.dev/v1/docs/extract
Use when an agent needs the key facts of a document, not just its text: Korean HWP/HWPX, PDF, DOCX or web page. Input: url via GET, or POST a file (multipart 'file', raw body, or JSON contentBase64+filename). Output: fixed-schema JSON title, title_en, document_type, date, org, amounts, english_overview, tables (rows, header columns, merged cells, records). Bad input or model outage refused before
GET
https://1gateway.dev/v1/docs/extractUptime100% of 2 checks 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://1gateway.dev/v1/docs/extract?type=html&url=https%3A%2F%2Fexample.com%2F");
console.log(await res.json());Example input
{
"type": "html",
"url": "https://example.com/"
}