
Extended GPT Scraper
Pricing
Pay per usage

Extended GPT Scraper
Extract data from any website and feed it into GPT via the OpenAI API. Use ChatGPT to proofread content, analyze sentiment, summarize reviews, extract contact details, and much more.
4.6 (4)
Pricing
Pay per usage
72
Monthly users
91
Runs succeeded
98%
Response time
1.4 days
Last modified
3 months ago
You can access the Extended GPT Scraper 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 "startUrls": [
12 {
13 "url": "https://news.ycombinator.com/"
14 }
15 ],
16 "instructions": `Gets the post with the most points from the page and returns it as JSON in this format:
17 postTitle
18 postUrl
19 pointsCount`,
20 "model": "gpt-3.5-turbo",
21 "includeUrlGlobs": [],
22 "excludeUrlGlobs": [],
23 "linkSelector": "a[href]",
24 "initialCookies": [],
25 "proxyConfiguration": {
26 "useApifyProxy": true
27 },
28 "targetSelector": "",
29 "removeElementsCssSelector": "script, style, noscript, path, svg, xlink",
30 "skipGptGlobs": [],
31 "schema": {
32 "type": "object",
33 "properties": {
34 "title": {
35 "type": "string",
36 "description": "Page title"
37 },
38 "description": {
39 "type": "string",
40 "description": "Page description"
41 }
42 },
43 "required": [
44 "title",
45 "description"
46 ]
47 },
48 "schemaDescription": ""
49};
50
51// Run the Actor and wait for it to finish
52const run = await client.actor("drobnikj/extended-gpt-scraper").call(input);
53
54// Fetch and print Actor results from the run's dataset (if any)
55console.log('Results from dataset');
56console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
57const { items } = await client.dataset(run.defaultDatasetId).listItems();
58items.forEach((item) => {
59 console.dir(item);
60});
61
62// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
Extended GPT Scraper API in JavaScript
The Apify API client for JavaScript is the official library that allows you to use Extended 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:
Pricing
Pricing model
Pay per usageThis Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage.