- Use the Markdown output directly in your applications
- Classify and split multi-document files into separate documents
- Run field extraction on the parsed content
Use ADE Parse to Parse Documents
Use the API to parse data from documents. See the full API reference here. To get detailed information about the API response, go to JSON Response for Parsing.Rotation detection can be enabled upon request. To request this feature, contact support@landing.ai.
Specify Documents to Parse
The API offers two parameters for specifying the document you want to parse:document: Specify the actual file you want to parse.document_url: Include the URL to the file that you want to parse.
Set Up Splits for Parsing
The API includes an optionalsplit parameter that controls how the parsed content is organized in the response.
This is how to include the split parameter when calling the API.
Omit the Split Parameter
When you omit thesplit parameter, the API returns the entire document as a single split. All chunks from all pages are grouped together in one split object with class: "full" and identifier: "full".
Omit the split parameter when you need to:
- Process the entire document as a single unit
- Maintain document context across pages
- Extract data that spans multiple pages
Use Page-Level Splits
When you use page-level splits (When you setsplit=page), the API organizes chunks by page. For multi-page documents, this creates one split per page. Each split has class: "page" and an identifier like page_0, page_1, etc.
Use page-level splits (set the split parameter to page) when you need to:
- Process pages independently
- Extract data from specific pages
- Build page-by-page workflows
- Reduce content size for downstream processing
Example: Parse a Document with the API
This example shows how to parse a document with the API and save the Markdown output to a file. Materials:- Sample PDF: Wire Transfer Form
id. For example, the first chunk is the text ”# WIRE TRANSFER FORM”. The id for that chunk is 33335548-e7c3-40bd-898e-4f23d6c99d34.
To extract specific fields from the parsed Markdown, see Extract Data.
Run Parse with Our Libraries
Click one of the tiles below to learn how to run the API with our libraries.Python Library
Run Parse with our Python library.
TypeScript Library
Run Parse with our TypeScript library.
The legacy agentic-doc library does not support the API.
Migrate from the Legacy Parse Endpoint
If you’ve been using the legacy API endpoint (v1/tools/agentic-document-analysis), the API returns a different output format.
When migrating to the endpoint, you may need to update scripts that process the parsed output.
Key differences in the output:
- The output doesn’t include extraction data. Use the separate API for field extraction.
- The output is not wrapped in a
dataobject. - Each
chunksobject now has amarkdownattribute. - The chunk type is in the
typeattribute (legacy useschunk_type). - The chunk ID is in the
idattribute (legacy useschunk_id). - Bounding box coordinates use full names:
left,top,right,bottom(legacy usesl,t,r,b). - The output includes a
splitsobject showing how the document was split. - The output includes a
metadataobject with processing information.

