Skip to content
Fourohtwo

Structured scraping in one call

agents.204-168-199-108.sslip.io/v1/page/extract

Structured scraping in one call: give a URL (we fetch it, robots-safe, cached) or HTML you already have, plus a map of field name → CSS selector. Returns JSON with each field's text, or an attribute with 'selector@attr' (links and images made absolute), or all matches with '[]'. Also returns match counts and which fields found nothing, so the agent can fix selectors. Example selectors: {"title":"h

BaseSolanaaws:baseAnswering
GEThttps://agents.204-168-199-108.sslip.io/v1/page/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://agents.204-168-199-108.sslip.io/v1/page/extract?base_url=https%3A%2F%2Fshop.example.com%2Fp%2F1&html=%3Ch1%3E+Acme+Widget+Pro+%3C%2Fh1%3E%3Cspan+class%3D%22price%22%3E%2449.00%3C%2Fspan%3E%3Cul%3E%3Cli+class%3D%22f%22%3EFast%3C%2Fli%3E%3Cli+class%3D%22f%22%3ESmall%3C%2Fli%3E%3C%2Ful%3E%3Ca+href%3D%22%2Fdocs%22%3EDocs%3C%2Fa%3E%3Cimg+src%3D%22%2Fi.png%22%3E&selectors=%7B%22title%22%3A%22h1%22%2C%22price%22%3A%22.price%22%2C%22features%22%3A%22li.f%5B%5D%22%2C%22links%22%3A%22a%40href%5B%5D%22%2C%22image%22%3A%22img%40src%22%2C%22sku%22%3A%22.sku%22%7D");
console.log(await res.json());

Example input

{
  "base_url": "https://shop.example.com/p/1",
  "html": "<h1> Acme Widget Pro </h1><span class=\"price\">$49.00</span><ul><li class=\"f\">Fast</li><li class=\"f\">Small</li></ul><a href=\"/docs\">Docs</a><img src=\"/i.png\">",
  "selectors": "{\"title\":\"h1\",\"price\":\".price\",\"features\":\"li.f[]\",\"links\":\"a@href[]\",\"image\":\"img@src\",\"sku\":\".sku\"}"
}