Tools & Payable Endpoints (2)
$0.002 USD per HTML page structure harvest (x402 instant micropayment)
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 buy vs. 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.
POST https://dom-harvest.apikeg.com/v1/harvest-page-structures ·
Full Parameter Spec ·
Markdown Spec
$0.001 USD per declarative CSS-schema extraction (x402 instant micropayment)
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 buy vs. DIY: Eliminates brittle ad-hoc cheerio/regex glue code and runs identically at the Cloudflare edge in <10ms for $0.001.
POST https://dom-harvest.apikeg.com/v1/extract-by-schema ·
Full Parameter Spec ·
Markdown Spec
Quickstart: MCP, x402 & Optional Bearer API Key
1. Streamable HTTP MCP Config (com.apikeg/dom-harvest)
{
"mcpServers": {
"dom-harvest": {
"type": "streamable-http",
"url": "https://dom-harvest.apikeg.com/mcp"
}
}
}
Using a Monthly Stripe Plan? Get your per-email ak_live_... key at https://apikeg.com/account ($5 / $20 / $50 monthly tiers) and pass header Authorization: Bearer ak_live_... on REST or MCP requests.
2. Free Schema Dry-Run ($0.00)
curl -X POST "https://dom-harvest.apikeg.com/v1/harvest-page-structures?dry_run=true" \
-H "Content-Type: application/json" \
-d '{"baseUrl":"https://shop.example.com/catalog","includeMatrix":true,"minCollectionItems":3,"html":"<html><head><title>Catalog</title></head><body><table><thead><tr><th rowspan='2'>Region</th><th colspan='2'>Q1 2026</th></tr><tr><th>Revenue</th><th>Growth</th></tr></thead><tbody><tr><td>NA</td><td>$1,200,000</td><td>18%</td></tr></tbody></table></body></html>"}'