Skip to main content

Scrape

Convert any webpage into clean HTML, LLM-ready Markdown, text, links, AI summaries or screenshots. Ask questions about a page with Smart Queries.

How It Works​

  1. Enter the URL you want to scrape.
  2. Choose your output format
  3. Optionally add a Smart Query prompt (see below).
  4. Run the robot.

Output Formats​

FormatWhat you get
markdownThe page as clean Markdown, ready for an LLM
htmlThe page's HTML
textThe page's visible text
linksEvery link on the page
summaryAn AI-written summary of the page
screenshot-visibleA screenshot of the visible part of the page
screenshot-fullpageA screenshot of the whole page

When to Use Scrape​

  • Fast content extraction
  • Clean HTML or Markdown for an LLM

If you need logins, interactions, pagination, or element-level data capture, use Extract instead.

Smart Queries​

Smart Queries let you attach an optional natural language prompt to a scrape robot. After the page is scraped, an LLM analyzes the page content and returns an answer to your prompt - without any extra setup.

How to Add a Smart Query​

When creating a scrape robot, enter your instructions in the Smart Queries field:

  1. Example: "Click the 'Login' button and extract the user profile data."
  2. Example: "Navigate to the pricing page and list all plan names and prices."
  3. Example: "Find the company's latest blog post title and publication date."

The result is returned in the run output as promptResult.

Output​

When a Smart Query is configured, the run result includes an additional promptResult field alongside the usual markdown, html, etc.:

{
"markdown": "...",
"html": "...",
"promptResult": "The pricing plans are: Starter ($9/mo), Growth ($29/mo), Pro ($99/mo)."
}

Using with SDK​

Scrape is available through the Maxun SDK for programmatic usage and integration into your applications.

import { Maxun } from 'maxun-sdk';

const maxun = new Maxun();

const robot = await maxun.scrape('Example page', 'https://example.com');
const result = await robot.run();

console.log(result.markdown);

Using with CLI​

Scrape is available through the Maxun CLI for quick data gathering from the terminal.

maxun robots scrape https://example.com -f markdown