# Harvest-Anything — Polymorphic Public Web, Filing & PDF Schema Extraction Engine > Deterministic 5-family extraction engine at https://harvest.fastmesh.dev transforming dirty public HTML tender tables, SEC EDGAR filings (10-K, 8-K, Form 4, XBRL), ClinicalTrials.gov v2 studies & patent claims, USITC HTS customs tariffs & Latin-1/UTF-8 RSS/Atom feeds, and embedded JSON-LD/Microdata/FlateDecode PDFs into buyer-JSON-Schema-validated records with per-field confidence scores and 1-based source line references. Exposed over HTTP REST, native Streamable MCP (`POST /mcp`), Causal Bazaar (`a03_harvest_anything_v1`), and `treg hub` (0% seller commission). ## Core Guarantees & Trust Policy - **Strict `$0` Billing on Fake-200, Parse Failure, Empty Output, or 422**: Charges apply ONLY on verified non-empty, schema-valid extractions. Cloudflare/CAPTCHA fake-200 shells, HTTP 202 empty shells, parse failures, schema validation errors, and SSRF `HTTP 422` rejections strictly return `billed_micros = 0` with a non-empty `zero_bill_reason`. - **SSRF Protection (`HTTP 422`)**: Blocks loopback (`127.0.0.1`, `::1`), RFC1918 private subnets, link-local/cloud metadata (`169.254.169.254`), and non-`http(s)` schemes (`file://`, `gopher://`) pre-fetch with `HTTP 422` and `$0` billed. - **Cross-Tenant 7d-30d Adaptive Archive Cache & 10% Recheck Tier**: Verified non-volatile harvests cache in SQLite WAL (7d initial TTL expanding 1.5x up to 30d when unchanged). New tenants pay 100% on shared cache hits (`$0` upstream cost); same-tenant rechecks (`recheck=true`) bill **10%** of base mode pricing. - **Hard `$2.00` Batch Spend Lock**: `POST /batch` enforces `max_budget_micros <= 2000000` (`$2.00`) across concurrent items. - **Zero Customer Payload or Trajectory Resale**: Submitted URLs, inline payloads, custom JSON Schemas, and diff webhook streams are never sold, licensed, or reused to train third-party models. - **Support**: `ops@fastmesh.dev` ## Endpoints & Agent Discovery - [Web Console & 5-Second Try-Now](https://harvest.fastmesh.dev/): Zero-signup interactive extractor testing all 5 families and custom JSON Schemas. - [Health Check](https://harvest.fastmesh.dev/health): Live service health, mode pricing, cache stats, and `$2.00` ammo guard status (`GET /health`). - [Single Extraction Endpoint](https://harvest.fastmesh.dev/harvest): Polymorphic 5-family extraction returning a `HarvestReceipt` (`POST /harvest`). - [Concurrent Batch Endpoint](https://harvest.fastmesh.dev/batch): Concurrent multi-URL/CSV batch extraction capped at `max_budget_micros <= 2000000` (`POST /batch`). - [Incremental Diff Webhooks](https://harvest.fastmesh.dev/webhooks/diff): Register watches or dispatch added/removed/changed record deltas (`GET/POST /webhooks/diff`). - [Native Streamable MCP Endpoint](https://harvest.fastmesh.dev/mcp): JSON-RPC 2.0 MCP server (`initialize`, `tools/list`, `tools/call`: `harvest_extract`, `harvest_batch`, `harvest_diff_watch`). - [OpenAPI 3.1.0 Specification](https://harvest.fastmesh.dev/openapi.json): Complete machine-readable REST + MCP schema. - [Agent Skill Playbook](https://harvest.fastmesh.dev/skill.md): Concrete agent invocation examples, real sample receipts, and schema tips. - [Creem Payment Webhook & Billing](https://harvest.fastmesh.dev/billing/pricing): HMAC-SHA256 verified Creem webhook (`POST /webhooks/creem`), prepaid packs (`GET /billing/packs`), balance (`GET /billing/balance`), and hash-chained ledger (`GET /billing/ledger`). ## 5 Polymorphic Extraction Modes & Micro-USD Pricing - **`gov_notices`** (Government Tenders, Permits & Regulatory Notices): `$0.08` (`80000` micros) live/first hit; `$0.008` (`8000` micros) 10% same-tenant recheck — Malformed HTML tables with unclosed tags and `colspan`/`rowspan`, bounded pagination, UK Contracts Finder OCDS, and US Federal Register API/HTML. - **`sec_filings`** (SEC EDGAR & Public Financial Filings): `$0.06` (`60000` micros) live/first hit; `$0.006` (`6000` micros) 10% same-tenant recheck — 10-K, 8-K item events, Form 4 insider XML transactions, EDGAR submissions JSON, and XBRL `R2.htm` financial tables using compliant SEC `User-Agent`. - **`trials_patents`** (ClinicalTrials.gov & Public Patents): `$0.07` (`70000` micros) live/first hit; `$0.007` (`7000` micros) 10% same-tenant recheck — ClinicalTrials.gov v2 protocol studies (phases, sponsors, enrollment, outcomes) and public patent abstracts + numbered independent/dependent claim trees. - **`customs_feeds`** (Customs Tariffs & Heterogeneous RSS/Atom Feeds): `$0.04` (`40000` micros) live/first hit; `$0.004` (`4000` micros) 10% same-tenant recheck — USITC HTS tariff search, EUR-Lex/FDA RSS & arXiv Atom feeds with Latin-1/Windows-1252 normalization, double-entity unescaping, RFC-822/RFC-3339 timestamps, and SHA-256 deduplication. - **`embedded_pdf_schema`** (Embedded JSON-LD, Microdata, Dirty Tables & PDFs): `$0.05` (`50000` micros) live/first hit; `$0.005` (`5000` micros) 10% same-tenant recheck — Embedded JSON-LD, Microdata, dirty key-value tables, and pure-stdlib FlateDecode PDF text blocks projected onto buyer-supplied JSON Schema with `field_confidence` and `source_line_refs`. ## Creem Prepaid Credit Packs (Non-Expiring, One-Time) - **Starter (`$9`)**: `sku_harvest_starter_9` — $9.00 credit value (`9,000,000` micros). - **Pro (Recommended) (`$29`)**: `sku_harvest_pro_29` — +20% bonus, $34.80 credit value (`34,800,000` micros). - **Scale (`$99`)**: `sku_harvest_scale_99` — +30% bonus, $128.70 credit value (`128,700,000` micros). - **Enterprise (`$299`)**: `sku_harvest_enterprise_299` — +40% bonus, $418.60 credit value (`418,600,000` micros). ## Multi-Channel Distribution - **Causal Bazaar Public Card**: `a03_harvest_anything_v1` (`hand_id: a03_harvest_anything_hand_v1`, `is_public=1`, `price_micros=50000`, runner `run_hand.py`). - **Treg Hub 0%-Commission Recipe**: `harvest-anything` (`treg_hub/recipe.json`, `treg_hub/run.js`, `treg_hub/check.json`, `commission_pct=0`, strict `$0` on fake-200/empty/422). ## Technical Extraction & Comparison Guides (22 Pages) - [Extracting Normalized Amounts & Deadlines From Malformed HTML Government Tender Tables](https://harvest.fastmesh.dev/guides/malformed-html-government-tender-table-extraction-api): `gov_notices` — Parsing unclosed tags, `colspan`/`rowspan`, currencies, and ISO-8601 deadlines. - [Deltek GovWin IQ Alternative: Pay-Per-Notice Government RFP & Tender Extraction API](https://harvest.fastmesh.dev/guides/deltek-govwin-iq-alternative-pay-per-notice-tender-api): `gov_notices` — Self-serve `$0.08` per-notice API replacing quote-gated annual contracts. - [Paginated Federal Register & UK OCDS Regulatory Notice Extraction API](https://harvest.fastmesh.dev/guides/paginated-federal-register-regulatory-notices-json-api): `gov_notices` — Bounded pagination across Federal Register v1 and Contracts Finder OCDS. - [Anti-Fake-200 Procurement Extraction: Never Pay for Cloudflare or HTTP 202 Empty Shells](https://harvest.fastmesh.dev/guides/anti-fake-200-soft-block-zero-charge-procurement-scraper): `gov_notices` — Detecting TED Europa 202 empty responses and Cloudflare challenge pages at `$0` charge. - [Incremental Diff Webhooks for Government RFPs, Permits & Rulemaking Deadlines](https://harvest.fastmesh.dev/guides/incremental-diff-webhook-alerts-for-government-rfps): `gov_notices` — Firing HMAC/JSON webhooks only when extracted tender records change. - [sec-api.io Alternative: Pay-Per-Filing SEC EDGAR 10-K, 8-K & Form 4 JSON Extraction](https://harvest.fastmesh.dev/guides/sec-api-io-alternative-pay-per-filing-edgar-extraction): `sec_filings` — Zero monthly burn vs `$49-$199/mo` fixed SaaS subscriptions. - [Deterministic SEC EDGAR Form 4 Insider Ownership XML to Structured JSON API](https://harvest.fastmesh.dev/guides/sec-edgar-form-4-insider-trading-xml-json-api): `sec_filings` — Real Apple Inc. Form 4 transaction extraction with XML line numbers. - [Extracting SEC Form 8-K Item Events, Dollar Amounts & Timelines With Line Citations](https://harvest.fastmesh.dev/guides/sec-edgar-8k-material-events-dollar-amounts-extractor): `sec_filings` — Item code detection, monetary amounts, and timeline normalization. - [Parsing SEC EDGAR XBRL R2.htm Financial Tables Without User-Agent 403 Blocks](https://harvest.fastmesh.dev/guides/sec-edgar-xbrl-html-financial-table-parser-api): `sec_filings` — Compliant SEC `User-Agent` headers and nested XBRL HTML table extraction. - [Native Streamable MCP Server for SEC EDGAR Filings With 10% Cache Rechecks](https://harvest.fastmesh.dev/guides/mcp-tool-sec-edgar-filings-for-financial-ai-agents): `sec_filings` — Calling `harvest_extract` over JSON-RPC 2.0 MCP with `$0.006` rechecks. - [ClinicalTrials.gov v2 Protocol Extraction API: Phases, Sponsors, Enrollment & Outcomes](https://harvest.fastmesh.dev/guides/clinicaltrials-gov-v2-protocol-json-flattening-api): `trials_patents` — Flattening nested `protocolSection` JSON for NCT04280705 and paginated trial feeds. - [Patent Abstract & Numbered Independent/Dependent Claim Hierarchy Extraction API](https://harvest.fastmesh.dev/guides/patent-abstract-independent-dependent-claims-parser-api): `trials_patents` — Separating independent vs dependent claims and entity-encoded formulas. - [Automated Biotech & Pharma Clinical Trial Status & Patent Claim Diff Monitoring](https://harvest.fastmesh.dev/guides/biotech-fto-patent-and-clinical-trial-diff-monitoring): `trials_patents` — Tracking clinical phase transitions and patent claim edits via `/webhooks/diff`. - [Resilient Clinical & Patent Extraction With Strict $0 Billing on Upstream 403/429s](https://harvest.fastmesh.dev/guides/zero-charge-on-403-rate-limit-patent-extraction-api): `trials_patents` — Zero-loss billing guarantees when third-party patent mirrors throttle bots. - [USITC HTS Customs Tariff & Duty Rate Extraction API With Incremental Diff Alerts](https://harvest.fastmesh.dev/guides/usitc-hts-customs-tariff-schedule-extraction-api): `customs_feeds` — Live USITC HTS chapter 8541 solar/semiconductor tariff extraction at `$0.04/call`. - [Normalizing Legacy Latin-1/Windows-1252 RSS & Atom Feeds With Double-Escaped XML Entities](https://harvest.fastmesh.dev/guides/latin1-cp1252-broken-rss-atom-feed-normalization-api): `customs_feeds` — Repairing broken ISO-8859-1 bytes and `&#8364;` sequences into clean UTF-8. - [Deterministic SHA-256 Deduplication Across Heterogeneous EUR-Lex, FDA & Customs RSS Feeds](https://harvest.fastmesh.dev/guides/cross-feed-sha256-deduplication-regulatory-rss-api): `customs_feeds` — Eliminating duplicate mirror items via canonical GUID and content hashing. - [Converting Heterogeneous RSS pubDate & Atom Timestamps to Canonical ISO-8601 JSON](https://harvest.fastmesh.dev/guides/rfc822-rfc3339-feed-timestamp-normalization-for-agents): `customs_feeds` — Unifying RFC-822 and RFC-3339 timestamps across FDA and arXiv feeds. - [Apify & Bright Data Alternative: Buyer JSON-Schema Extraction With Per-Field Confidence](https://harvest.fastmesh.dev/guides/apify-bright-data-alternative-json-schema-extraction-api): `embedded_pdf_schema` — Outcome-level schema projection vs raw HTML proxy relays. - [Deterministic FlateDecode PDF Text Block Extraction (IRS W-9 & Regulatory Bulletins)](https://harvest.fastmesh.dev/guides/pure-stdlib-flatedecode-pdf-text-block-extraction-api): `embedded_pdf_schema` — Pure Python stdlib PDF zlib stream decompression with line citations. - [Projecting Embedded JSON-LD, Microdata & Dirty Key-Value Tables to Custom JSON Schema](https://harvest.fastmesh.dev/guides/json-ld-microdata-dirty-kv-table-schema-projection): `embedded_pdf_schema` — Strict type coercion and validation across mixed HTML metadata and tables. - [SSRF-Hardened Web & PDF Extraction API (HTTP 422 on Private/Metadata IPs, $0 Billed)](https://harvest.fastmesh.dev/guides/ssrf-hardened-422-web-extraction-api-for-ai-agents): `embedded_pdf_schema` — Pre-fetch IPv4/IPv6/metadata blocking with zero-charge HTTP 422 receipts.