|
4 | 4 | <img src="./nodes/scrapegraphAI.svg" width="250" alt="ScrapegraphAI Logo"> |
5 | 5 | </p> |
6 | 6 |
|
7 | | -This is the official node for [ScrapegraphAI](https://scrapegraphai.com) for n8n. It allows you to use ScrapegraphAI's powerful web scraping and data extraction capabilities within your n8n workflows. |
| 7 | +The official [ScrapeGraphAI](https://scrapegraphai.com) node for n8n. Hits the v2 API at `https://v2-api.scrapegraphai.com/api`. |
8 | 8 |
|
9 | | -## Installation |
10 | | - |
11 | | -You can install this node in your n8n instance as follows: |
12 | | - |
13 | | -1. Go to **Settings** in your n8n instance |
14 | | -2. Select the **Community Nodes** tab |
15 | | -3. Click on **Install** |
16 | | -4. Enter `n8n-nodes-scrapegraphai` in the "npm package name" field |
17 | | -5. Click **Install** |
| 9 | +> **1.0.0 is a breaking release.** v1 endpoints (`/v1/smartscraper`, `/v1/markdownify`, `/v1/agentic-scrapper`, `/v1/toonify`) are gone. See **Migrating from 0.x** below. |
18 | 10 |
|
19 | | -After installation, you will be able to use the ScrapegraphAI nodes in your workflows. |
20 | | - |
21 | | -## Features |
22 | | - |
23 | | -This node provides several operations to interact with the ScrapegraphAI API: |
| 11 | +## Installation |
24 | 12 |
|
25 | | -- Markdownify - Convert a webpage to markdown |
26 | | -- Smart Scraper - Extract specific data from a webpage |
27 | | -- Search Scraper - Extract data from search results |
| 13 | +1. In n8n, go to **Settings → Community Nodes → Install** |
| 14 | +2. Enter `n8n-nodes-scrapegraphai` |
| 15 | +3. Click **Install** |
28 | 16 |
|
29 | 17 | ## Credentials |
30 | 18 |
|
31 | | -To use this node, you need a ScrapegraphAI API key. You can get one by signing up at [scrapegraphai.com](https://scrapegraphai.com) and visiting your [dashboard](https://dashboard.scrapegraphai.com/dashboard). |
32 | | - |
33 | | -<img width="1360" alt="image" src="https://github.com/user-attachments/assets/c4305f4d-a7bd-445a-a495-a1e0314b4f46" /> |
34 | | - |
35 | | - |
36 | | -## Usage |
37 | | - |
38 | | -After adding the node to your workflow, you'll need to: |
39 | | - |
40 | | -1. Create new credentials and enter your ScrapegraphAI API key |
41 | | -2. Choose the operation you want to perform |
42 | | -3. Configure the required parameters (e.g., website URL, extraction rules) |
| 19 | +1. Sign up at [scrapegraphai.com](https://scrapegraphai.com) and grab a key from the [dashboard](https://scrapegraphai.com/dashboard). |
| 20 | +2. In n8n, create a new **ScrapegraphAI API** credential and paste the key. |
| 21 | +3. n8n will validate the key against `GET /api/credits` — a green check means it's good. |
| 22 | + |
| 23 | +## Resources |
| 24 | + |
| 25 | +| Resource | Operations | What it does | |
| 26 | +|----------|------------|--------------| |
| 27 | +| **Scrape** | Scrape | Fetch a URL in any combination of formats: markdown, HTML, links, images, summary, JSON extraction, branding, or screenshot. | |
| 28 | +| **Extract** | Extract | LLM-powered structured extraction from a URL, raw HTML, or markdown. Optional JSON schema. | |
| 29 | +| **Search** | Search | Web search with content fetched inline. Optional AI rollup across all results. | |
| 30 | +| **Crawl** | Start, Get Status, Stop, Resume, Delete | Async multi-page crawl with include/exclude URL patterns. | |
| 31 | +| **Monitor** | Create, Get, Get Many, Get Activity, Update, Pause, Resume, Delete | Cron-scheduled fetches with change detection and webhooks. | |
| 32 | +| **History** | Get, Get Many | Look up past requests by ID — including the formatted content of crawled pages via each `scrapeRefId`. | |
| 33 | +| **Credit** | Get | Remaining credits, plan, and crawl/monitor quotas. | |
| 34 | + |
| 35 | +Every fetch-based resource shares the same **Fetch Config** options: `mode` (auto / fast / js), `stealth`, `scrolls`, `wait`, `timeout`, `country`, custom `headers`, custom `cookies`. |
| 36 | + |
| 37 | +## Migrating from 0.x |
| 38 | + |
| 39 | +Three resources were removed in v2 — the API endpoints behind them are gone: |
| 40 | + |
| 41 | +| Removed in 1.0.0 | Replacement | |
| 42 | +|------------------|-------------| |
| 43 | +| Markdownify | **Scrape** with format `markdown` | |
| 44 | +| Agentic Scraper | **Extract** with `Fetch Config → Mode = JS` and `Stealth = true` for hard pages, or **Crawl** for multi-page flows | |
| 45 | +| Toonify | The open-source [`toonify`](https://github.com/ScrapeGraphAI/toonify) package — TOON is no longer an API endpoint | |
| 46 | + |
| 47 | +Field renames (top-level → v2): |
| 48 | + |
| 49 | +| 0.x field | 1.0.0 location | |
| 50 | +|-----------|----------------| |
| 51 | +| `website_url` | `url` | |
| 52 | +| `user_prompt` | `prompt` (extract) / `query` (search) | |
| 53 | +| `output_schema` | `schema` | |
| 54 | +| `render_heavy_js` | `Fetch Config → Mode = JS` | |
| 55 | +| `stealth` | `Fetch Config → Stealth` | |
| 56 | +| `wait_ms` | `Fetch Config → Wait (Ms)` | |
| 57 | +| `number_of_scrolls` | `Fetch Config → Scrolls` | |
| 58 | +| `country_code` | `Fetch Config → Country` (most) / `Location (Country Code)` (search) | |
| 59 | +| `time_range` | `Time Range` (search) | |
| 60 | + |
| 61 | +Removed without replacement: |
| 62 | + |
| 63 | +- `total_pages` — use the **Crawl** resource for multi-page work. |
| 64 | +- `mock` — gone in v2; mock at the n8n / HTTP layer if you need it. |
| 65 | +- `cache_website`, `same_domain_only`, `breadth` (crawl) — use `includePatterns` / `excludePatterns` / `maxLinksPerPage` / `maxDepth` instead. |
43 | 66 |
|
44 | 67 | ## License |
45 | 68 |
|
|
0 commit comments