# API Keg Category: `context-compression`

> 3 zero-signup Cloudflare Edge API(s) and Streamable HTTP MCP server(s) tagged `context-compression` on `*.apikeg.com`.

## [Office OOXML Template Merge & Markdown Extractor API](https://office-template.apikeg.com/) (`https://office-template.apikeg.com/mcp`)
Brand-safe .docx/.pptx template merging (fixing Word split XML runs & table loops) and 85%+ token-saving .docx/.pptx/.xlsx Markdown extraction.

- [`merge_office_template`](https://office-template.apikeg.com/tools/merge-office-template.md) — $0.004 USD per Office template merge (.docx or .pptx) (x402 instant micropayment): Coalesces split {{variable}} runs across Word (<w:r>) and PowerPoint (<a:r>) paragraphs while preserving opening-run typography, expands {{#loop}}...{{/loop}} table rows, replaces variables across body/headers/footers/slides, and returns a valid PKZIP Base64 document plus any unmatchedPlaceholders.
- [`extract_office_markdown`](https://office-template.apikeg.com/tools/extract-office-markdown.md) — $0.002 USD per Office document extraction (.docx, .pptx, or .xlsx) (x402 instant micropayment): Auto-detects .docx, .pptx, or .xlsx from OOXML structure and converts headings, lists, Word/PowerPoint tables, numerically ordered slides, speaker notes, and sparse Excel worksheets into compact GitHub-Flavored Markdown with token-savings telemetry.

## [Spec Slice — OpenAPI & GraphQL Subgraph Extractor](https://spec-slice.apikeg.com/) (`https://spec-slice.apikeg.com/mcp`)
Shrink 200k-token OpenAPI 3.1 and GraphQL schemas by 90-99% into valid, cycle-safe mini-specs in <20ms.

- [`slice_openapi_spec`](https://spec-slice.apikeg.com/tools/slice-openapi-spec.md) — $0.001 USD per OpenAPI/Swagger subgraph slice (x402 instant micropayment): Scores OpenAPI/Swagger endpoints against a natural-language `query` (BM25 + boosted `operationId`, `summary`, `tags`, and path tokens) or explicit `operationIds`/`pathPatterns`, walks every reachable JSON Pointer `$ref` with cycle protection, prunes unused paths/components, and emits ready-to-use `curl` + TypeScript `fetch` snippets.
- [`slice_graphql_schema`](https://spec-slice.apikeg.com/tools/slice-graphql-schema.md) — $0.001 USD per GraphQL SDL subgraph slice (x402 instant micropayment): Parses GraphQL Schema Definition Language (`Query`, `Mutation`, `Subscription`, `type`, `input`, `interface`, `union`, `enum`, `scalar`), scores root fields against `query` or explicit `rootFields`, and emits a valid mini-SDL containing only selected root fields and the transitive closure of referenced types.

## [DOM Harvest & Table Grid Edge API](https://dom-harvest.apikeg.com/) (`https://dom-harvest.apikeg.com/mcp`)
Turn noisy HTML tables, repeating product grids, and JSON-LD into clean typed JSON with >90% LLM token reduction.

- [`harvest_page_structures`](https://dom-harvest.apikeg.com/tools/harvest-page-structures.md) — $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.
- [`extract_by_schema`](https://dom-harvest.apikeg.com/tools/extract-by-schema.md) — $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.

