Smartcontext AI Web Crawler avatar
Smartcontext AI Web Crawler

Pricing

$7.00/month + usage

Go to Store
Smartcontext AI Web Crawler

Smartcontext AI Web Crawler

Developed by

Serafim

Serafim

Maintained by Community

Scrape any website and extract structured data using AI-powered instructions. Provide URLs and a natural language prompt to get tailored JSON outputs.

5.0 (1)

Pricing

$7.00/month + usage

1

Total users

5

Monthly users

5

Runs succeeded

>99%

Last modified

13 days ago

You can access the Smartcontext AI Web 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 token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11 "start_urls": [
12 {
13 "url": "https://pt.wikipedia.org/wiki/Michael_Jordan"
14 },
15 {
16 "url": "https://pt.wikipedia.org/wiki/Scottie_Pippen"
17 },
18 {
19 "url": "https://pt.wikipedia.org/wiki/LeBron_James"
20 }
21 ]
22};
23
24// Run the Actor and wait for it to finish
25const run = await client.actor("serafimc/smartcontext-ai-crawler").call(input);
26
27// Fetch and print Actor results from the run's dataset (if any)
28console.log('Results from dataset');
29console.log(`πŸ’Ύ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
30const { items } = await client.dataset(run.defaultDatasetId).listItems();
31items.forEach((item) => {
32 console.dir(item);
33});
34
35// πŸ“š Want to learn more πŸ“–? Go to β†’ https://docs.apify.com/api/client/js/docs

Smartcontext AI Web Crawler API in JavaScript

The Apify API client for JavaScript is the official library that allows you to use Smartcontext AI Web 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: