{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "schemaVersion": "1.0",
  "name": "DOM Harvest & Table Grid Edge API",
  "humanReadableId": "apikeg/dom-harvest",
  "agentVersion": "1.0.0",
  "description": "Turn noisy HTML tables, repeating product grids, and JSON-LD into clean typed JSON with >90% LLM token reduction. Dumping raw 300KB HTML into an LLM burns $0.05-$0.30 in context tokens and truncates past item 20; DIY regex/table parsers break on multi-row thead colspan + rowspan merges. DOM Harvest extracts all 500 items deterministically in <20ms for $0.001-$0.002.",
  "provider": {
    "name": "API Keg",
    "url": "https://apikeg.com"
  },
  "capabilities": {
    "mcpVersion": "2025-06-18",
    "x402Version": 2,
    "streaming": false,
    "supportedMessageParts": [
      "json",
      "text"
    ]
  },
  "supportedInterfaces": [
    {
      "url": "https://dom-harvest.apikeg.com/mcp",
      "protocolBinding": "MCP-STREAMABLE-HTTP",
      "protocolVersion": "2025-06-18"
    },
    {
      "url": "https://dom-harvest.apikeg.com/openapi.json",
      "protocolBinding": "OPENAPI-REST",
      "protocolVersion": "3.1.0"
    },
    {
      "url": "https://dom-harvest.apikeg.com/.well-known/api-catalog",
      "protocolBinding": "RFC9727-LINKSET",
      "protocolVersion": "1.0"
    }
  ],
  "defaultInputModes": [
    "application/json"
  ],
  "defaultOutputModes": [
    "application/json",
    "text/markdown",
    "text/html"
  ],
  "skills": [
    {
      "id": "harvest_page_structures",
      "name": "Auto-Harvest Tables, Repeating Cards & Metadata",
      "description": "Zero-selector structural HTML harvester: extracts canonical/OpenGraph/Twitter metadata, Schema.org JSON-LD, normalized 2D tables (resolving multi-header rowspan/colspan merges + cell links), and repeating sibling card collections across 100-500 items without truncation. Why call instead of DIY: Compresses 250KB+ noisy DOMs by >90% tokens without dropping items 21-500 or misaligning colspan/rowspan financial columns; runs deterministically in <20ms at $0.002. Pricing: $0.002 USD per HTML page structure harvest (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.",
      "tags": [
        "web-scraping",
        "data-extraction",
        "context-compression",
        "developer-tools"
      ],
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.002",
        "unitDescription": "per HTML page structure harvest"
      },
      "documentationUrl": "https://dom-harvest.apikeg.com/tools/harvest-page-structures"
    },
    {
      "id": "extract_by_schema",
      "name": "Extract Records by Declarative CSS Schema",
      "description": "Deterministic CSS-selector record extractor supporting descendant/child/attribute/group selectors, relative URL resolution against baseUrl, numeric currency/comma coercion, boolean flags, inner HTML serialization, and multi-value arrays. Why call instead of DIY: Eliminates brittle ad-hoc cheerio/regex glue code and runs identically at the Cloudflare edge in <10ms for $0.001. Pricing: $0.001 USD per declarative CSS-schema extraction (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.",
      "tags": [
        "web-scraping",
        "data-extraction",
        "context-compression",
        "developer-tools"
      ],
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.001",
        "unitDescription": "per declarative CSS-schema extraction"
      },
      "documentationUrl": "https://dom-harvest.apikeg.com/tools/extract-by-schema"
    }
  ]
}