Skip to main content

SDKs & CLI

Use Maxun from your own code or terminal. The SDKs and CLI create robots (saved, reusable jobs) on your Maxun account, so anything you create in code also shows up in the dashboard, and the other way round.

InstallGuide
Node.js / TypeScriptnpm install maxun-sdkNode SDK
Pythonpip install maxunPython SDK
CLInpm install -g maxun-cliCLI

All of them work with Maxun Cloud and self-hosted Maxun. Get an API key from the dashboard under Settings → API Key (see API Key).

Quick example​

import { Maxun } from 'maxun-sdk';

const maxun = new Maxun({ apiKey: process.env.MAXUN_API_KEY });

const robot = await maxun.scrape('Maxun home', 'https://maxun.dev', { formats: ['markdown'] });
const result = await robot.run();

console.log(result.markdown);

What you can build​

MethodWhat the robot does
scrapeTurns a page into Markdown, HTML, text, links, a summary or screenshots
extractExtracts structured data, described in plain English or with selectors
crawlVisits many pages of a website
searchSearches the web and optionally scrapes the results
documents.extract / documents.parseExtracts data from or converts a PDF, DOCX, XLSX, CSV, JPG or PNG

Prefer plain HTTP? See the API Reference. Using an AI agent? See Build with AI.