POST /v2/parse
Upload a document, get Markdown back
Send a PDF, DOCX, XLSX, PPTX, HTML, CSV or text file and get clean Markdown — page by page for PDFs, with optional summary or schema-shaped JSON.
- Endpoint
POST /v2/parse- Mode
- Synchronous · multipart upload or base64 JSON
- Credits
- 1 per document · +1 per PDF page · +4 per LLM format
- Also
- Documents already online:
POST /v2/scrapewith the URL
What it's for
Private files into your pipeline
Contracts, reports and slides that are not on the web, converted for your LLM.
Spreadsheets as tables
XLSX and CSV become Markdown tables a model can read.
Fields from documents
Add {"type": "json", "schema": …} to pull invoice or contract fields.
How it works
- Upload
multipart/form-data with a file part (up to 20 MB) and an optional options part, or JSON with base64.
- Detect
The type comes from the content and the file name; unsupported legacy formats (.doc, .xls, .ppt, .rtf, .odt …) are refused with 400.
- Convert
Text, tables and headings become Markdown; PDFs also return pages[].
Request parameters
Full docs →| Field | Type | Default | Description |
|---|---|---|---|
filerequired | file | base64 | — | The document, up to 20 MB. |
options.formats | array | ["markdown"] | markdown, summary, html, rawHtml, links, images, json. |
options.onlyMainContent | boolean | true | For HTML files. |
options.parsers | array | — | e.g. [{"type": "pdf", "mode": "fast", "maxPages": 20}]; modes fast, auto, ocr. |
options.timeout | integer (ms) | 30000 | 1000–300000. |
options.redactPII | boolean | false | Mask personal data (+4 credits). |
Unknown fields do not fail the request — they are listed in the response warning, as are values that were clamped to the engine's limits.
Example request
curl -X POST https://crawl.echolotnews.com/v2/parse \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@report.pdf" \
-F 'options={"formats": ["markdown"]}'import json
import requests
with open("report.pdf", "rb") as f:
resp = requests.post(
"https://crawl.echolotnews.com/v2/parse",
headers={"Authorization": "Bearer YOUR_API_KEY"},
files={"file": ("report.pdf", f, "application/pdf")},
data={"options": json.dumps({"formats": ["markdown"]})},
timeout=120,
)
resp.raise_for_status()
print(resp.json()["data"]["markdown"])const form = new FormData();
form.append("file", fileInput.files[0]); // or a Blob
form.append("options", JSON.stringify({ formats: ["markdown"] }));
const res = await fetch("https://crawl.echolotnews.com/v2/parse", {
method: "POST",
headers: { "Authorization": "Bearer YOUR_API_KEY" },
body: form,
});
const json = await res.json();
console.log(json.data.markdown);# There is no dedicated MCP tool for uploads — call POST /v2/parse from your
# agent (see the other tabs). For documents that are already online, the
# engine_scrape tool reads PDF, DOCX, XLSX and PPTX URLs directly:
claude mcp add --transport http echolot https://crawl.echolotnews.com/mcp \
--header "Authorization: Bearer YOUR_API_KEY"Example response
{
"success": true,
"data": {
"markdown": "# Annual report 2025\n\n## Summary\n\nRevenue grew…",
"pages": [
{ "pageNumber": 1, "markdown": "# Annual report 2025\n\n…" },
{ "pageNumber": 2, "markdown": "## Summary\n\nRevenue grew…" }
],
"metadata": {
"title": "Annual report 2025",
"numPages": 2,
"sourceFile": "report.pdf",
"contentType": "application/pdf",
"creditsUsed": 3
}
}
}Credits
Pricing →| What | Credits |
|---|---|
| A document | 1 |
| Each PDF page | +1 |
| Each LLM format (summary, json) | +4 |
| PII redaction | +4 |
Start with 500 free credits
No card required. Every endpoint, REST and MCP.