
Website Content Crawler
Pricing
Pay per usage

Website Content Crawler
Crawl websites and extract text content to feed AI models, LLM applications, vector databases, or RAG pipelines. The Actor supports rich formatting using Markdown, cleans the HTML, downloads files, and integrates well with 🦜🔗 LangChain, LlamaIndex, and the wider LLM ecosystem.
4.6 (38)
Pricing
Pay per usage
1306
Total users
49.3k
Monthly users
6.9k
Runs succeeded
>99%
Issue response
5.3 days
Last modified
7 days ago
You can access the Website Content Crawler programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "startUrls": [12 {13 "url": "https://docs.apify.com/academy/web-scraping-for-beginners"14 }15 ],16 "useSitemaps": false,17 "respectRobotsTxtFile": true,18 "crawlerType": "playwright:adaptive",19 "includeUrlGlobs": [],20 "excludeUrlGlobs": [],21 "initialCookies": [],22 "proxyConfiguration": {23 "useApifyProxy": true24 },25 "keepElementsCssSelector": "",26 "removeElementsCssSelector": `nav, footer, script, style, noscript, svg, img[src^='data:'],27 [role="alert"],28 [role="banner"],29 [role="dialog"],30 [role="alertdialog"],31 [role="region"][aria-label*="skip" i],32 [aria-modal="true"]`,33 "clickElementsCssSelector": "[aria-expanded=\"false\"]"34};35
36// Run the Actor and wait for it to finish37const run = await client.actor("apify/website-content-crawler").call(input);38
39// Fetch and print Actor results from the run's dataset (if any)40console.log('Results from dataset');41console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);42const { items } = await client.dataset(run.defaultDatasetId).listItems();43items.forEach((item) => {44 console.dir(item);45});46
47// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Website Content Crawler API in JavaScript
The Apify API client for JavaScript is the official library that allows you to use Website Content Crawler API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-client
Other API clients include: