AI Web Scraper: The Easiest Way to Scrape and Crawl the Web

Search for a command to run...

No comments yet. Be the first to comment.
Four months ago, we launched Interfaze. It's a new model architecture that outperforms both closed and open-source models on deterministic tasks like OCR, data extraction, web scraping, and classifica

One might argue that translation is a problem that has long been solved with the advent of sequence-to-sequence models. That assumption, however, is far from the truth. While significant progress has been made, particularly in handling complex and no...

2025 has been great for the embedding model space, with Google’s Gemini-Embedding-001-Model and Alibaba team releasing their own series of Qwen3 embedding models. Both models outperform their predecessors in quality on various tasks for text embeddin...

Most classifiers ship with a fixed label list. They perform well inside that box and fail silently outside it. So we took this as a challenge. We introduce a classifier that starts from the opposite assumption: the world is open. New product names ap...

Have we just rebranded prompt engineering? Like Apple did with “Glass“? Well, turns out that there is more to context-engineering than writing lengthy prompts. If prompt engineering was about cleverly wording a single query to coax a good answer, con...

Web scraping just got smarter. Forget tedious CSS selectors—AI Scraper automatically extracts links, crawls dynamic pages, and handles infinite scroll. Whether you're building a web crawler, monitoring price changes, or gathering structured data at scale, get structured data in a single API call.
Instead of writing tedious CSS selectors, AI Scraper automatically extracts structured data based on natural language prompts. Just specify what elements you need (e.g., "Plan title", "Plan price"), and AI Scraper does the rest—delivering structured JSON responses in seconds.
Many modern websites load content dynamically as you scroll. Traditional scrapers fail to capture these elements, leaving you with incomplete data. AI Scraper solves this by automatically scrolling through long pages, ensuring no links or content are missed.
Built with JigsawStack's AI capabilities, AI Scraper provides a developer-friendly API that supports multiple languages, including JavaScript, Python, and cURL.
Web scraping and web crawling are often used interchangeably, but they serve different purposes. Here's a quick comparison:
| Feature | Web Scraping | Web Crawling |
| Purpose | Extracts structured data from pages | Navigates multiple pages to discover new data |
| Example | Scraping product prices from an e-commerce page | Collecting all blog links from a website |
Web scraping is the process of extracting structured data from a webpage. With JigsawStack AI Scraper, you don’t need to manually define CSS selectors—just specify what elements you need (e.g., "Plan title", "Plan price"), and the scraper fetches structured JSON data.
Using AI Scraper is as simple as making a POST request. Here's an example in JavaScript:
import { JigsawStack } from "jigsawstack";
const jigsawstack = JigsawStack({
apiKey: "your-api-key",
});
const result = await jigsawstack.web.ai_scrape({
url: "https://supabase.com/pricing",
element_prompts: ["Plan title", "Plan price"],
});
console.log(result);
{
"page_position": 1,
"page_position_length": 3,
"context": {
"Plan title": ["Enterprise", "Pro"],
"Plan price": ["Custom", "$25"]
},
"link": [
{ "href": "https://supabase.com/dashboard/new?plan=free", "text": "Start for Free" },
{ "href": "https://supabase.com/dashboard/new?plan=pro", "text": "Get Started" }
],
"success": true
}
Web crawling, on the other hand, involves discovering and following links to navigate through multiple pages. This is useful when you need to collect information across an entire website, such as product listings, articles, or other structured data.
AI Scraper is a full-fledged web crawler with powerful customization options:
Auto-scroll to handle infinite scrolling pages
Dynamic web scraping for JavaScript-heavy sites
Custom HTTP headers & authentication support
Reject request patterns to avoid scraping unnecessary data
Viewport & user-agent customization
Proxy rotation & custom proxies for anti-bot protection
Imagine you want to scrape wikipedia to quickly research a topic. The full code can be found here.
//Set up the prompt
try {
const result = await jigsawstack.web.ai_scrape({
url: url,
element_prompts: [
"Article title",
"Article introduction",
"Key concepts",
],
wait_for: {
mode: "selector",
value: "#content"
},
goto_options: {
timeout: 12000,
wait_until: "domcontentloaded"
}
});
// Run the crawler
(async () => {
try {
// Choose Wiki article
const seedUrl = "https://en.wikipedia.org/wiki/Machine_learning";
// Set limits
const maxDepth = 1;
const maxArticles = 5; // Follow 5 links per article for more breadth
const articles = await crawlWikipedia(seedUrl, maxDepth, maxArticles);
// Generate a knowledge graph
const knowledgeGraph = createKnowledgeGraph(articles);
// Print the results
console.log("\n=== WIKIPEDIA KNOWLEDGE CRAWLER RESULTS ===\n");
console.log(`Total articles crawled: ${articles.length}`);
console.log(`Seed article: ${seedUrl}`);
console.log(`Crawl time: ${new Date().toLocaleString()}`);
} catch (error) {
console.error("Error running Wikipedia crawler:", error);
}
})();
Starting Wikipedia crawler from: https://en.wikipedia.org/wiki/Machine_learning
Crawling (depth 0): https://en.wikipedia.org/wiki/Machine_learning
Following 5 links from this article:
- https://en.wikipedia.org/wiki/Machine_Learning_(journal)
- https://en.wikipedia.org/wiki/Quantum_machine_learning
- https://en.wikipedia.org/wiki/Outline_of_machine_learning
- https://en.wikipedia.org/wiki/Timeline_of_machine_learning
- https://en.wikipedia.org/wiki/Unsupervised_machine_learning
=== WIKIPEDIA KNOWLEDGE CRAWLER RESULTS ===
Total articles crawled: 6
Seed article: https://en.wikipedia.org/wiki/Machine_learning
Crawl time: 3/2/2025, 9:39:50 AM
This script starts from a search specific wiki page, extracts details, follows related subject links, and continues crawling up to a set depth. The added wait_for option ensures content is fully loaded before scraping.
AI Scraper is designed to stay opinionated and streamlined—meaning no complex configurations and no unnecessary feature bloat. Future updates will refine existing capabilities while ensuring high-speed, cost-effective scraping for developers and businesses alike.
Your feedback matters! If you have ideas to improve AI Scraper, open a discussion in our Discord.