Universal AI GPT Scraper avatar

Universal AI GPT Scraper

Try for free

This Actor is paid per event

Go to Store
Universal AI GPT Scraper

Universal AI GPT Scraper

louisdeconinck/ai-gpt-scraper
Try for free

This Actor is paid per event

Transform any website into structured data with AI-powered extraction. This versatile tool combines advanced web scraping with intelligent content analysis to deliver clean, customized JSON output - perfect for automating data collection from any web source.

You can access the Universal AI GPT Scraper programmatically from your own JavaScript 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    "urls": [
12        "https://apify.com/louisdeconinck/ai-gpt-scraper"
13    ],
14    "fields": [
15        {
16            "name": "name",
17            "description": "The name/title of the scraper tool",
18            "type": "string"
19        },
20        {
21            "name": "price",
22            "description": "The price per 1000 results, only the number",
23            "type": "number"
24        },
25        {
26            "name": "author",
27            "description": "The author or maintainer of the scraper",
28            "type": "string"
29        }
30    ],
31    "cssSelector": "main",
32    "predefinedModel": "google/gemini-2.0-flash-001",
33    "useCustomModel": false,
34    "proxyConfiguration": {
35        "useApifyProxy": true
36    }
37};
38
39// Run the Actor and wait for it to finish
40const run = await client.actor("louisdeconinck/ai-gpt-scraper").call(input);
41
42// Fetch and print Actor results from the run's dataset (if any)
43console.log('Results from dataset');
44console.log(`πŸ’Ύ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
45const { items } = await client.dataset(run.defaultDatasetId).listItems();
46items.forEach((item) => {
47    console.dir(item);
48});
49
50// πŸ“š Want to learn more πŸ“–? Go to β†’ https://docs.apify.com/api/client/js/docs

Universal AI GPT Scraper API in JavaScript

The Apify API client for JavaScriptis the official library that allows you to use Universal AI GPT Scraper 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:

Developer
Maintained by Community

Actor Metrics

  • 4 monthly users

  • 0 No stars yet

  • 91% runs succeeded

  • Created in Feb 2025

  • Modified 5 days ago