Harvest-Anything / Extraction Guides / Embedded JSON-LD, Microdata, Dirty Tables & PDFs

Projecting Embedded JSON-LD, Microdata & Dirty Key-Value Tables to Custom JSON Schema

Merge embedded Schema.org JSON-LD blocks, HTML Microdata attributes, and messy key-value spec tables into one strictly typed JSON object with per-field confidence.

Mode (embedded_pdf_schema)$0.05 / hit
10% Cache Recheck$0.005
Fake-200 / 422 Charge$0.00
Verified Receipt Prefixea39f1fa48a14907

Why Existing Scrapers & Subscriptions Break Here

Real-world product and catalog pages scatter attributes across JSON-LD <script> tags (sometimes with trailing commas or @graph arrays), Microdata attributes, and HTML spec tables.

Downstream databases reject records when numeric prices arrive as strings or integer lead times arrive inside HTML table cells.

Harvest-Anything extracts all embedded layers, coerces types strictly to your JSON Schema (e.g., price: 1290.0 number, lead_time_days: 14 integer), and attaches line citations.

Built for E-Commerce Enrichment & Agent Workflow Developers: Harvest-Anything runs purely on Python 3 standard library parsers with strict pre-fetch SSRF HTTP 422 blocking, composite anti-fake-200 interception, 7d-30d adaptive archive caching, and zero customer payload resale.

Verified Extraction Output Breakdown (Observed Receipt: 50000 micros)

Extracted Attribute Observed Value / Outcome Provenance / Line Ref Confidence
name & sku (JSON-LD)Industrial Flow Meter X200 / FM-X200Line 1 json_ld0.97
price & currency1290.0 USD (typed number)Line 1 json_ld0.97
lead_time_days (HTML KV)14 (coerced to integer)Dirty table row0.88
Billed Amount$0.05 (50,000 micros)schema_valid: true1.00

Pricing Benchmark vs Incumbents

Provider Pricing Model Verified Cost & Friction Harvest-Anything Advantage
Harvest-Anything Pay-per-verified-harvest (Creem $9/$29/$99/$299 packs, 0% treg hub commission) $0.05 live / $0.005 recheck; $0 on fake-200, empty, or 422 Deterministic JSON Schema, field confidence, 1-based line refs, Streamable MCP
Incumbent Benchmark Annual seats, monthly floors, or metered raw proxy GBs Apify ($19-$999/mo + Compute Units + proxy bandwidth); Bright Data ($250/100k dataset minimum) Zero monthly minimum, zero sales gate, zero charge on soft-blocks

Run via HTTP REST (POST /harvest)

curl -sS -X POST https://harvest.fastmesh.dev/harvest \
  -H "Content-Type: application/json" \
  -d '{"url": "https://catalog.example.com/spec-sheet.html", "mode": "embedded_pdf_schema", "schema": {"type": "object", "required": ["name", "sku", "price", "currency", "lead_time_days"]}}'

Run via Native Streamable MCP (POST /mcp)

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "harvest_extract",
    "arguments": {
      "url": "https://catalog.example.com/spec-sheet.html",
      "mode": "embedded_pdf_schema",
      "schema": {
        "type": "object",
        "required": [
          "name",
          "sku",
          "price",
          "currency",
          "lead_time_days"
        ]
      }
    }
  }
}

Run via Treg Hub (0% Seller Commission)

treg call harvest-anything --data '{"url": "https://catalog.example.com/spec-sheet.html", "mode": "embedded_pdf_schema", "schema": {"type": "object", "required": ["name", "sku", "price", "currency", "lead_time_days"]}}'

Observed HarvestReceipt JSON Output

{
  "ok": true,
  "status_code": 200,
  "mode": "embedded_pdf_schema",
  "url": "https://catalog.example.com/spec-sheet.html",
  "extracted": {
    "name": "Industrial Flow Meter X200",
    "sku": "FM-X200",
    "price": 1290.0,
    "currency": "USD",
    "lead_time_days": 14,
    "_meta": {
      "json_ld_count": 1,
      "microdata_count": 0,
      "dirty_table_count": 1,
      "pdf_block_count": 0
    }
  },
  "field_confidence": {
    "name": 0.97,
    "sku": 0.97,
    "price": 0.97,
    "currency": 0.97,
    "lead_time_days": 0.88
  },
  "source_line_refs": {
    "name": {
      "line": 1,
      "end_line": 1,
      "snippet": "<html><head><script type='application/ld+json'>{\"@context\":\"https://schema.org\",\"@type\":\"Product\",\"name\":\"Industrial Flow Meter X200\",\"sku\":\"FM-X200\",\"price\":1290.00,\"currency\":\"US",
      "source_kind": "json_ld"
    },
    "sku": {
      "line": 1,
      "end_line": 1,
      "snippet": "<html><head><script type='application/ld+json'>{\"@context\":\"https://schema.org\",\"@type\":\"Product\",\"name\":\"Industrial Flow Meter X200\",\"sku\":\"FM-X200\",\"price\":1290.00,\"currency\":\"US",
      "source_kind": "json_ld"
    },
    "price": {
      "line": 1,
      "end_line": 1,
      "snippet": "<html><head><script type='application/ld+json'>{\"@context\":\"https://schema.org\",\"@type\":\"Product\",\"name\":\"Industrial Flow Meter X200\",\"sku\":\"FM-X200\",\"price\":1290.00,\"currency\":\"US",
      "source_kind": "json_ld"
    },
    "currency": {
      "line": 1,
      "end_line": 1,
      "snippet": "<html><head><script type='application/ld+json'>{\"@context\":\"https://schema.org\",\"@type\":\"Product\",\"name\":\"Industrial Flow Meter X200\",\"sku\":\"FM-X200\",\"price\":1290.00,\"currency\":\"US",
      "source_kind": "json_ld"
    },
    "lead_time_days": {
      "line": 1,
      "end_line": 1,
      "snippet": "lead_time_days: 14",
      "source_kind": "kv_line"
    }
  },
  "schema_valid": true,
  "cache_hit": false,
  "cache_tier": "live",
  "billed_micros": 50000,
  "zero_bill_reason": null,
  "sha256_receipt": "ea39f1fa48a14907172bceb55253737a5559383bdf96f9e4960c778426c1c7c0"
}

Frequently Asked Questions

Which JSON Schema types are enforced during projection?

string, number, integer, boolean, array, object, required properties, and enum constraints are validated deterministically.

How does field_confidence reflect mixed sources?

Direct JSON-LD matches score higher (e.g., 0.97) while dirty HTML key-value table coercions carry calibrated lower scores (e.g., 0.88) so agents know provenance.

Are internal extraction traces stripped before returning to callers?

Yes. Both the HTTP API and treg_hub/run.js strip sensitive trace keys and credentials.

Try Now in 5 Seconds (No Signup) Browse All 22 Guides llms.txt OpenAPI 3.1