
Smart Article Extractor
Pricing
Pay per usage

Smart Article Extractor
📰 Smart Article Extractor extracts articles from any scientific, academic, or news website with just one click. The extractor crawls the whole website and automatically distinguishes articles from other web pages. Download your data as HTML table, JSON, Excel, RSS feed, and more.
4.7 (6)
Pricing
Pay per usage
117
Total users
4.9k
Monthly users
353
Runs succeeded
>99%
Issue response
3.5 days
Last modified
2 months ago
You can access the Smart Article Extractor 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://www.theguardian.com"14 }15 ],16 "isUrlArticleDefinition": {17 "minDashes": 4,18 "hasDate": true,19 "linkIncludes": [20 "article",21 "storyid",22 "?p=",23 "id=",24 "/fpss/track",25 ".html",26 "/content/"27 ]28 },29 "proxyConfiguration": {30 "useApifyProxy": true31 },32 "extendOutputFunction": ($) => {33 const result = {};34 // Uncomment to add a title to the output35 // result.pageTitle = $('title').text().trim();36 37 return result;38 }39};40
41// Run the Actor and wait for it to finish42const run = await client.actor("lukaskrivka/article-extractor-smart").call(input);43
44// Fetch and print Actor results from the run's dataset (if any)45console.log('Results from dataset');46console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);47const { items } = await client.dataset(run.defaultDatasetId).listItems();48items.forEach((item) => {49 console.dir(item);50});51
52// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Scrape and download articles and news API in JavaScript
The Apify API client for JavaScript is the official library that allows you to use Smart Article Extractor 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: