Skip to content
Fourohtwo

Use when an agent needs specific fields from a web page as JSON

1gateway.dev/v1/web/extract

Use when an agent needs specific fields from a web page as JSON. Input: url, schema (URL-encoded JSON Schema, object root, max 30 properties, depth 3, 3,000 chars). Output: JSON data validated against the schema (null when not on the page), title, finalUrl. SSRF-safe; noai pages refused; bad schema refused before payment. Fixed schema: /v1/docs/extract. Example: ?url=https://example.com/&schema={"

BaseMonadPolygonArbitrumSolanaAnswering
GEThttps://1gateway.dev/v1/web/extract

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://1gateway.dev/v1/web/extract?schema=%7B%22type%22%3A%22object%22%2C%22properties%22%3A%7B%22title%22%3A%7B%22type%22%3A%22string%22%7D%2C%22links%22%3A%7B%22type%22%3A%22array%22%2C%22items%22%3A%7B%22type%22%3A%22string%22%7D%7D%7D%2C%22required%22%3A%5B%22title%22%5D%7D&url=https%3A%2F%2Fexample.com%2F");
console.log(await res.json());

Example input

{
  "schema": "{\"type\":\"object\",\"properties\":{\"title\":{\"type\":\"string\"},\"links\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"title\"]}",
  "url": "https://example.com/"
}

More from Web ExtractProvider status