Skip to content

Getting Started

Transform your document processing workflow with Anyparser’s powerful SDK. In this guide, you’ll learn how to set up the SDK, authenticate your application, and start extracting structured data from documents in minutes. Whether you’re building an enterprise document automation system or integrating document intelligence into your application, we’ll get you up and running quickly with clean, production-ready code examples.

Prerequisites

Before diving in, make sure you have:

Installation

  1. Choose your SDK
    Install the Anyparser SDK for your preferred language:

    Terminal window
    pip install anyparser-core
  2. Set up authentication
    Get your API key from Anyparser Studio and set it up:

    from anyparser_core import Anyparser
    import asyncio
    # Initialize with your API key
    parser = Anyparser(api_key="your-api-key")
  3. Parse your first document
    Let’s try parsing a simple PDF document:

    async def main():
    # Parse a single document
    result = await parser.parse("path/to/document.pdf")
    print(f"Extracted {result.total_characters} characters")
    print(result.markdown) # Get markdown formatted content
    asyncio.run(main())

Features at a Glance

What’s Next?

Now that you’re set up, explore these guides to make the most of Anyparser: