Introducing Smart Queries
Introducing Smart Queries
We’re excited to introduce Smart Queries — a new way to extract exactly what you need from any webpage using natural language.
Smart Queries let you act on a page after it’s scraped.
You scrape a URL → then give instructions → Maxun performs those actions on the same page.
You can
- Click buttons
- Fill forms
- Extract data from dynamic content
All using a simple natural language prompt.
When to Use This
Use Smart Queries when:
- You need to click or interact with the page after scraping
- New Content loads after navigation or actions
- You want to refine or extract specific data after scraping
Important
Smart Queries only run on the same page you just scraped.
Examples
- “Click the pricing tab and list all plans”
- “Click login and extract user profile data”
- “Open the first product and get its price and rating”
- “Scroll and extract all comments”
Smart Queries Using Node SDK
// Extract specific data after interacting with the page
const robot = await scraper.create(
'Maxun Pricing',
'https://maxun.dev/pricing',
{
formats: ['markdown'],
smartQueries: 'List all the pricing plans and their monthly costs'
}
);
const result = await robot.run();
console.log(result.data.promptResult);
How It Works
- Create a scrape robot to scrape a page
- Add a Smart Query
- Maxun performs the actions on that page
- Returns the result
Output
When a Smart Query is used, the run output includes promptResult:
{
"markdown": "...",
"html": "...",
"promptResult": "The pricing plans are: Starter ($9/mo), Growth ($29/mo), Pro ($99/mo)."
}
Works Everywhere
- Dashboard (No-Code)
- API
- SDK
- CLI
Try Smart Queries
Documentation
https://docs.maxun.dev/robot/scrapeGet Started
Turn any website into an API — now with actions.