Get Started with the Python Library
This tutorial walks you through how to parse a document then extract a subset of fields from it using the Python library.1. Set the API Key as an Environment Variable
Get your API key and set it as an environment variable. For more details, go to API Key.2. Install the landingai-ade Library
Install the library.3. Parse a Document
Run the script below to parse this document: Bank Statement. The script saves the response to a Markdown file.4. Extract Fields from a Document
Now that we have the parsed output in a Markdown file, let’s extract these fields: Account Holder Name and Number of Deposits. To do this, run the script below.Get Started with the API
You can call the APIs directly:1. Get Your API Key
Get your API key. For more details, go to API Key.2. Parse a Document
Run the code below to parse a document with the API. ReplaceYOUR_API_KEY with your API key, and replace document.pdf with the filepath to your document.
3. Extract Fields from a Document
After parsing a document, save themarkdown response to a Markdown file. Pass that Markdown file and the extraction schema to the API using the code below.
Replace YOUR_API_KEY, the schema value, and markdown.md with your information.

