Skip to main content

Maxun SDK

The Maxun SDK lets you create robots programmatically for scraping websites and extracting structured data.

Installation

npm install maxun-sdk

Requirements

  • Node.js 18.0.0 or higher
  • Maxun instance (Cloud or self-hosted)
  • API Key from Maxun Dashboard

Environment Variables

MAXUN_API_KEY=your-api-key

# For LLM Extraction (optional)
ANTHROPIC_API_KEY=your-anthropic-key
OPENAI_API_KEY=your-openai-key

SDK Initialization

import { Extract, Scrape } from 'maxun-sdk';

// For Extract robots
const extractor = new Extract({
apiKey: process.env.MAXUN_API_KEY
});

// For Scrape robots
const scraper = new Scrape({
apiKey: process.env.MAXUN_API_KEY
});