Extract structured JSON from a web page or text with fields you define
agentsvc.io/api/v1/proxy/page-extract
Extract structured JSON from a web page or text with fields you define: send url (or text) and fields like {"price": "price in EUR as number", "in_stock": {"type": "boolean"}}, get back exactly those fields, typed and validated against a JSON schema. Types: string, number, integer, boolean, string[], number[]. Fields the content does not state come back as null instead of being guessed. Up to 25 f
POST
https://agentsvc.io/api/v1/proxy/page-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://agentsvc.io/api/v1/proxy/page-extract", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"url":"https://www.zalando.de/zalando-impressum/","fields":{"city":"city of the registered office","vat_id":"VAT ID","company":"legal company name","register_number":"commercial register number"}}),
});
console.log(await res.json());Example input
{
"url": "https://www.zalando.de/zalando-impressum/",
"fields": {
"city": "city of the registered office",
"vat_id": "VAT ID",
"company": "legal company name",
"register_number": "commercial register number"
}
}