REST Example (curl)
curl -X POST "https://dom-harvest.apikeg.com/v1/harvest-page-structures" \
-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>"
}'
MCP tools/call Payload
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "harvest_page_structures",
"arguments": {
"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>"
}
}
}