Skip to content
Menu
Read · Parse · 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/scrape with 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

  1. Upload

    multipart/form-data with a file part (up to 20 MB) and an optional options part, or JSON with base64.

  2. Detect

    The type comes from the content and the file name; unsupported legacy formats (.doc, .xls, .ppt, .rtf, .odt …) are refused with 400.

  3. Convert

    Text, tables and headings become Markdown; PDFs also return pages[].

Request parameters

Full docs →
FieldType DefaultDescription
filerequiredfile | base64—The document, up to 20 MB.
options.formatsarray["markdown"]markdown, summary, html, rawHtml, links, images, json.
options.onlyMainContentbooleantrueFor HTML files.
options.parsersarray—e.g. [{"type": "pdf", "mode": "fast", "maxPages": 20}]; modes fast, auto, ocr.
options.timeoutinteger (ms)300001000–300000.
options.redactPIIbooleanfalseMask 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

bash
curl -X POST https://crawl.echolotnews.com/v2/parse \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@report.pdf" \
  -F 'options={"formats": ["markdown"]}'
python · requests
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"])
javascript · fetch
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);
mcp
# 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

json · trimmed
{
  "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
    }
  }
}
WhatCredits
A document1
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.