Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions api-reference/endpoint/parse.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: 'Parse'
openapi: '/api-reference/v2-openapi.json POST /parse'
---

import ParseCurl from '/snippets/v2/parse/base/curl.mdx'

Use `/v2/parse` to upload a local file and run it through the scrape pipeline (PDF/document parsing, markdown conversion, metadata extraction, and transformers).

## Multipart Fields

- `file` (required): The file to parse.
- `options` (optional): JSON string of parse options.
- `origin`, `integration`, `zeroDataRetention` (optional): Same semantics as `/v2/scrape`.

## Allowed Options

- `formats`: `markdown`, `html`, `rawHtml`, `links`, `images`, `summary`, `json`, `attributes`
- `onlyMainContent`, `includeTags`, `excludeTags`, `parsers` (pdf only), `removeBase64Images`, `timeout`

## Supported File Types

- PDF (`application/pdf` or `%PDF` signature)
- Office documents: `.docx`, `.odt`, `.rtf`, `.xlsx`, `.xls`
- HTML: `.html`, `.htm`, `text/html`, `application/xhtml+xml`
- Markdown: `.md`, `text/markdown`
- Plain text: `text/plain`

## Example

<ParseCurl />
Loading