
GPT Scraper
Pricing
$9.00 / 1,000 pages

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.4 (7)
Pricing
$9.00 / 1,000 pages
96
Total users
5.8k
Monthly users
173
Runs succeeded
>99%
Issue response
3.2 days
Last modified
4 months ago
You can access the 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 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://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 postTitle18 postUrl19 pointsCount`,20 "includeUrlGlobs": [],21 "excludeUrlGlobs": [],22 "linkSelector": "a[href]",23 "initialCookies": [],24 "proxyConfiguration": {25 "useApifyProxy": true26 },27 "targetSelector": "",28 "removeElementsCssSelector": "script, style, noscript, path, svg, xlink",29 "schema": {30 "type": "object",31 "properties": {32 "title": {33 "type": "string",34 "description": "Page title"35 },36 "description": {37 "type": "string",38 "description": "Page description"39 }40 },41 "required": [42 "title",43 "description"44 ]45 },46 "schemaDescription": ""47};48
49// Run the Actor and wait for it to finish50const run = await client.actor("drobnikj/gpt-scraper").call(input);51
52// Fetch and print Actor results from the run's dataset (if any)53console.log('Results from dataset');54console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);55const { items } = await client.dataset(run.defaultDatasetId).listItems();56items.forEach((item) => {57 console.dir(item);58});59
60// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs
GPT Scraper API in JavaScript
The Apify API client for JavaScript is the official library that allows you to use 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: