# API Documentation

> mdapi.io - Minimal Data API I/O: a content transformation layer primitive for AI systems.
>
> Transforms files and webpages into AI-ready Markdown and structured data, optimized for LLM efficiency and token usage.

The API documentation split into addressable pages - the language examples and the long guides, each complete on its own.

Every page below is complete on its own and can be read in any order. The whole API reference is at https://mdapi.io/ - this index is its table of contents.

## Examples

- **JavaScript (fetch)** - The conversion called from JavaScript with `fetch` - GET answers Markdown, POST answers JSON with metadata.
  https://mdapi.io/docs/examples/javascript
- **Python** - The same conversion called from Python.
  https://mdapi.io/docs/examples/python
- **Go** - The same conversion called from Go.
  https://mdapi.io/docs/examples/go
- **Rust** - The same conversion called from Rust.
  https://mdapi.io/docs/examples/rust
- **OpenAI SDK** - The conversion called through the OpenAI-compatible client, streaming included.
  https://mdapi.io/docs/examples/openai
- **MCP Tool Examples** - The `convert` tool called over MCP: JSON-RPC requests with a prompt and a result format.
  https://mdapi.io/docs/examples/mcp
- **A2A Examples** - Every A2A method called with `curl`: sending a message, a file and structured data, reading and listing tasks, subscribing, cancelling, and what a stored task keeps.
  https://mdapi.io/docs/examples/a2a

All examples in one place: https://mdapi.io/docs/examples

## Guides

- **Supported formats** - Every format the service reads, grouped by what it is for, with what each kind of file is good for, how a file is read and what the answer keeps.
  https://mdapi.io/docs/formats
- **Reading a document in parts** - Walking a large document part by part: the range a conversion reports, the headers carrying it, and `part=N`.
  https://mdapi.io/docs/parts
- **Searching a document without reading it** - Searching a converted document for literal substrings and getting addresses back instead of text.
  https://mdapi.io/docs/find
- **Converting only the part you asked for** - Naming a subtree instead of the whole document: an element on HTML and XML, a key path on JSON, and what the answers say when it names nothing.
  https://mdapi.io/docs/select
- **The address as a path** - Writing the document address as a path instead of a parameter: `GET /u/example.com/article`.
  https://mdapi.io/docs/path-form
- **Documents larger than the input gate** - What the input ceiling applies to, and which formats stay readable when a document is larger than the gate.
  https://mdapi.io/docs/large-documents
- **Reading the embedded images** - The images a document carries - inline on GET, indexed in `attachments[]` on POST.
  https://mdapi.io/docs/images
- **Streaming Parameter** - Server-Sent Events delivery: the `stream` parameter, the frame shape and the termination markers.
  https://mdapi.io/docs/streaming
- **OpenAI-compatible endpoints** - The `/v1/chat/completions` and `/v1/responses` endpoints: what a message may carry, the full request schema with every core parameter, and when custom instructions trigger a paid stage.
  https://mdapi.io/docs/openai-endpoints
- **Response metadata** - The facts an answer carries in its headers: the service that replied, the document validators and the integrity field.
  https://mdapi.io/docs/response-metadata
- **Free tier and paid tier** - What each tier runs, how the free allowance is counted, what a paid stage answers without a token, and what a conversion is allowed to keep.
  https://mdapi.io/docs/tiers
- **Document conversion quality** - Quality measured over three corpora - PDF documents, those documents re-emitted in fifteen office, web, spreadsheet and Apple formats, office files and e-books, and a sample of iWork packages, archives, data and mail - each scored by its own evaluator: the scores of this service and of the other engines on the same files, which corpus measures each extension, who measured each, the method boundaries, and the capabilities no compared engine offers.
  https://mdapi.io/docs/benchmarks

## Links

- **About service:** https://mdapi.io/about
- **Privacy:** https://mdapi.io/privacy
- **Contact:** https://mdapi.io/contact
- **Agent entry point:** https://mdapi.io/AGENTS.md or https://mdapi.io/agents.md or https://mdapi.io/agent.md
- **Agent access:** https://mdapi.io/auth.md
- **API documentation and conversion:** https://mdapi.io
- **MCP server manifest:** https://mdapi.io/mcp
- **Health check:** https://mdapi.io/health
- **Documentation index:** https://mdapi.io/llms.txt
- **Full API documentation:** https://mdapi.io/llms-full.txt
- **AI discovery:** https://mdapi.io/.well-known/ai-discovery.json or https://mdapi.io/ai-discovery.json
- **AI Agent discovery:** https://mdapi.io/.well-known/agent.json or https://mdapi.io/agent.json
- **A2A Agent card:** https://mdapi.io/.well-known/agent-card.json or https://mdapi.io/agent-card.json
- **ACP manifest:** https://mdapi.io/.well-known/acp.json or https://mdapi.io/acp.json
- **x402 payment manifest:** https://mdapi.io/.well-known/x402.json or https://mdapi.io/x402.json or https://mdapi.io/.well-known/x402
- **OpenAPI specification (JSON):** https://mdapi.io/.well-known/openapi.json or https://mdapi.io/openapi.json
- **OpenAPI specification (YAML):** https://mdapi.io/.well-known/openapi.yaml or https://mdapi.io/openapi.yaml
- **MAPI specification:** https://mdapi.io/.well-known/mapi.md or https://mdapi.io/mapi.md
- **Skill specification:** https://mdapi.io/.well-known/skill.md or https://mdapi.io/skill.md
- **ARD manifest:** https://mdapi.io/.well-known/ard.json or https://mdapi.io/.well-known/ai-catalog.json or https://mdapi.io/ard.json
- **Agent Plugins manifest:** https://mdapi.io/.well-known/plugin/plugin.json or https://mdapi.io/.well-known/plugin.json
- **Agent Plugins MCP config:** https://mdapi.io/.well-known/plugin/mcp.json
- **Agent Plugins conversion skill:** https://mdapi.io/.well-known/plugin/skills/mdapi-conversion/SKILL.md
- **API documentation pages:** https://mdapi.io/docs
- **Example pages:** https://mdapi.io/docs/examples

## External Links

- **github.com** https://github.com/mdapiio/mdapi.io
- **skills.sh** https://www.skills.sh/mdapiio/mdapi.io
- **skillsmp.com** https://skillsmp.com/creators/mdapiio/mdapi.io
- **clawhub.ai** https://clawhub.ai/mdapiio
- **x.com** https://x.com/mdapiio

## Disclaimer

**The service is provided "AS IS".**


> mdapi.io is an edge-native service-transport primitive for AI, autonomous agents, and the Web4 ecosystem.
