Prerequisites
Tutorial: Parse and Extract a Document
This tutorial guides you through how to parse a sample bank statement and extract these fields: Account Holder Name and Number of Deposits.- cURL
- Python
- TypeScript
Parse a document
Run the code below to parse a sample bank statement with the API. The
> at the end of the command saves the response to a file called parse-output.json.Replace YOUR_API_KEY with your API key.Save the Markdown content
To extract data from the document, you need to pass the
markdown field from parse-output.json to the API.Run the following command to save the markdown field to a file called markdown-bank-statement.md.Extract fields from a document
Now that the parsed output is in a Markdown file, run the code below to extract the Account Holder Name and Number of Deposits fields using the API.Replace The API response includes the extracted fields:
YOUR_API_KEY with your API key.- Account Holder Name: Sarah J. Mitchell
- Number of Deposits: 5
Next Steps: Develop and Scale
Choose how you want to integrate into your workflow. Build with AI agents, call the API directly, or use our Python and TypeScript libraries.Build with AI Agents
Use ADE skills, an MCP server, and llms.txt with your AI agents and coding tools.
API
Call the API directly for language flexibility and advanced customization.
Python Library
Use our Python library to build custom scripts.
TypeScript Library
Use our TypeScript library to build custom scripts.
Sample Scripts & Projects
Use these sample scripts and projects for real-world use cases as templates to develop your own custom document processing solutions.Sample Projects
Explore end-to-end examples for common document processing workflows.
Sample Scripts in Documentation
Browse code samples with examples for the Python and TypeScript libraries.