![Universal AI GPT Scraper avatar](https://images.apifyusercontent.com/TQKMj-rYPBljfoJyaZPkyGyHbBQ1R4e2C-HxQ4zWy9c/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vaTI5QjVLUXFnc2M1ekt1c1ctYWN0b3ItY2lsYnRIUFM0endUWDVodjMtTFhFYjBNSUFBaC1vcGVuYWktbG9nb21hcmsucG5n.webp)
Universal AI GPT Scraper
This Actor is paid per event
![Universal AI GPT Scraper](https://images.apifyusercontent.com/TQKMj-rYPBljfoJyaZPkyGyHbBQ1R4e2C-HxQ4zWy9c/rs:fill:250:250/cb:1/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMudXMtZWFzdC0xLmFtYXpvbmF3cy5jb20vaTI5QjVLUXFnc2M1ekt1c1ctYWN0b3ItY2lsYnRIUFM0endUWDVodjMtTFhFYjBNSUFBaC1vcGVuYWktbG9nb21hcmsucG5n.webp)
Universal AI GPT Scraper
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:
Actor Metrics
4 monthly users
-
0 No stars yet
91% runs succeeded
Created in Feb 2025
Modified 5 days ago