TREG HUB · 0% COMMISSION QUICKJS

Scrape-Anything on treg hub: 0%-Commission QuickJS Wrapper With Dual $0 Billing Guards

Target Query: treg hub web scraping tool zero commission quickjs · Category: Agent Integration · Verified Rate: $0.015/hit ($0 on miss) · Updated: 2026-12-02

Direct Answer: The `scrape-anything-verified-extract` `treg hub` package wraps `https://scrape.fastmesh.dev/v1/extract` and `/v1/sitemap` in a deterministic ES2020 QuickJS script with **0% platform commission**. It enforces dual-layer protection: pre-flight SSRF filtering blocks loopback/private/metadata targets before any network call, and `ctx.charge()` is invoked ONLY when `resp.ok && resp.schema_valid && !resp.blocked_reason` and extracted data is strictly non-empty (`15,000` micros = `$0.015` verified hit, `$0` on miss).

Engineering Mechanics & Deterministic Guardrails

Deterministic `check.json` Test Suite Matrix (`treg_hub/`)

Test Case IDScenario TestedExpected `billed_micros``ctx.charge()` Calls
`verified_hit_bills_15000_micros`Schema-passing JSON extraction with receipt`15000` (`$0.015`)`1`
`fake_200_captcha_zero_charge`Cloudflare Turnstile / CAPTCHA HTTP 200 shell`0` (`$0.00`)`0`
`schema_mismatch_zero_charge`Missing required field (`schema_valid: false`)`0` (`$0.00`)`0`
`ssrf_loopback_422_zero_charge``http://127.0.0.1:9005/health` pre-flight block`0` (`$0.00`)`0` (0 upstream calls)
`ssrf_cloud_metadata_422_zero_charge``http://169.254.169.254/latest/meta-data/` block`0` (`$0.00`)`0` (0 upstream calls)
`empty_payload_zero_charge`Empty extracted payload `{rows: [], text: ''}``0` (`$0.00`)`0`
Zero-Friction Integration Coverage Across Developer & Autonomous Agent Surfaces REST JSON API (/v1/extract, /sitemap, /batch) OpenAPI 3.1 Native Remote MCP Server (/mcp) 6 Flat Tools treg hub QuickJS Package (0% Fee) $0.015 / $0 Miss Causal Bazaar Public Toll Card 15,000 micros Creem Prepaid Packs ($15/$59/$199) $0/mo Recurring Hard Budget Lock (max_cost_micros) Per-Request Cap

`scrape-anything-verified-extract` Output Contract

{
  "type": "object",
  "required": [
    "ok",
    "mode",
    "status",
    "schema_valid",
    "blocked_reason",
    "billed_micros",
    "charged_usd",
    "chargeable"
  ],
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "mode": {
      "type": "string",
      "enum": [
        "extract",
        "sitemap"
      ]
    },
    "status": {
      "type": "integer"
    },
    "schema_valid": {
      "type": "boolean"
    },
    "blocked_reason": {
      "type": [
        "string",
        "null"
      ]
    },
    "billed_micros": {
      "type": "integer",
      "minimum": 0
    },
    "charged_usd": {
      "type": "number",
      "minimum": 0
    },
    "chargeable": {
      "type": "boolean"
    }
  }
}

Any extracted payload violating required keys, types, bounds, or regex patterns returns schema_valid: false, exact validation_errors, and billed_micros: 0.

Executable REST, Remote /mcp & treg hub Snippets

# Publish or test locally with treg CLI
treg tool add scrape-anything-api --base-url https://scrape.fastmesh.dev
treg hub run ./treg_hub

treg call scrape-anything-verified-extract --data '{"mode":"extract","url":"https://docs.python.org/3/","json_schema":{"type":"object","required":["title"],"properties":{"title":{"type":"string"}}}}'

Hard guarantee: fake-200 CAPTCHA/Turnstile shells, login walls, encrypted PDFs, empty results, schema mismatches, and SSRF HTTP 422 blocks always return billed_micros: 0.

Test Schema-Validated Extraction Live in 5 Seconds

Paste any public URL, HTML table, JSON-LD, CSV, or fake-200 shell at scrape.fastmesh.dev or top up once with never-expiring Creem prepaid credits ($15 Starter / $59 Growth / $199 Scale — $0/mo recurring).

Frequently Asked Questions

Why does `run.js` re-check `schema_valid`, `blocked_reason`, and non-empty data even though the server checks them too?

Defense in depth. Even if an upstream proxy returned an unexpected empty object with HTTP 200, `run.js` independently refuses to invoke `ctx.charge()` and returns `billed_micros: 0`.

What commission does `treg hub` charge on `scrape-anything-verified-extract`?

0% seller commission (`seller_commission_pct: 0`), so callers pay exact transparent micro-USD rates with zero middleman markup.

Can I run sitemap discovery through the same `treg hub` tool?

Yes. Set `"mode": "sitemap"` and pass any public `robots.txt`, `sitemap.xml`, RSS, or Atom URL.

Related Structured Extraction Guides

Explore all 32 Scrape-Anything Technical Guides or inspect the machine-readable llms.txt index.