# n8n Workflows Scraper (`dadhalfdev/n8n-workflows-scraper`) Actor

This scraper extracts pre-built, free workflow templates directly from the n8n template library. Pick a category and sort order, and the scraper will navigate n8n's library to extract not only the metadata of each workflow but the full, raw JSON configuration.

- **URL**: https://apify.com/dadhalfdev/n8n-workflows-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Categories:** Agents, AI
- **Stats:** 5 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 🤖 n8n Workflows Scraper

Want ready-made automations instead of building every flow from scratch? This scraper makes it super easy!

Pick a **category** and **sort order** from the [n8n template library](https://n8n.io/workflows/), and get up to **2000 free** workflow templates with metadata plus the **full importable `workflow_json`** (nodes, connections, and settings) as CSV or JSON.

### 💡 Perfect for...

- **Automation builders:** Discover how others solve CRM, DevOps, AI, support, and ops problems.
- **n8n users:** Download free templates you can import without clicking through the library by hand.
- **Market Research:** See which categories, patterns, and creators are popular.
- **Data Analysts:** Export clean structured workflow data for catalogs and dashboards.
- **🤖 AI Agents:** Power OpenClaw workflows and bots that need real n8n template structures.
- **📚 RAG Systems:** Feed full workflow JSON into Retrieval-Augmented Generation pipelines for generation and troubleshooting.
- **🔗 AI Workflows:** Integrate with LangChain, AutoGPT, CrewAI, and other stacks that need structured automation templates.

### ✨ Why you'll love this scraper

- 📥 **Import-ready JSON:** Each result includes the full `workflow_json` you can paste into n8n.
- 🎯 **Category filtering:** 20+ categories like AI Chatbot, Lead Generation, SecOps, and Crypto Trading.
- 🆓 **Free templates only:** Paid/premium templates are skipped automatically.
- ⏱️ **Sorting Options:** Relevancy, Popularity, or Most recent — same options as on n8n.io.
- ⚡ **Fast & scalable:** Up to 2000 workflows per run via n8n’s public APIs (no slow browser clicking).

### 📦 What's inside the data?

For every workflow you will get:

- **Core Details:** `id`, `name`, `category`, `workflow_url`, `description`, `created_at`, `total_views`
- **Creator:** `creator_id`, `creator_name`, `creator_username`, `creator_bio`, `creator_verified`
- **The workflow:** `workflow_json` — nodes, connections, settings, and metadata

### 🛠️ Sort options

You can tell the scraper what order to read templates in using the `sort_by` parameter:

- **`Relevancy`** – Best match *(default)*
- **`Popularity`** – Most viewed
- **`Most recent`** – Newest templates first

### 🚀 Quick start

1. Select a **Category** (e.g. AI Chatbot).
2. Choose **Sort by**.
3. Set `max_workflows` (20–2000).
4. Click **Start**.
5. Export JSON so nested `workflow_json` stays intact (CSV flattens nested objects).

***

#### Tech details for developers 🧑‍💻

**Input Example:**

```json
{
  "category": "AI Chatbot",
  "sort_by": "Most recent",
  "max_workflows": 100
}
```

**Output Example (truncated):**

```json
{
  "id": 17658,
  "name": "Manage CRM leads by chat with Google Gemini and Google Sheets",
  "category": "AI Chatbot",
  "workflow_url": "https://n8n.io/workflows/17658-manage-crm-leads-by-chat-with-google-gemini-and-google-sheets/",
  "total_views": 120,
  "creator_name": "Example Creator",
  "creator_username": "example",
  "creator_verified": true,
  "description": "Chat-driven CRM lead intake with Gemini and Google Sheets…",
  "created_at": "2026-08-01T12:00:00.000Z",
  "workflow_json": {
    "name": "Manage CRM leads by chat…",
    "nodes": [],
    "connections": {},
    "settings": {}
  }
}
```

### Input reference

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `category` | string | `AI Chatbot` | Category of free workflows to scrape. |
| `sort_by` | string | `Relevancy` | Relevancy, Popularity, or Most recent. |
| `max_workflows` | integer | `100` | How many free workflows to collect (`20`–`2000`). |

# Actor input Schema

## `category` (type: `string`):

Category of the workflows to scrape.

## `sort_by` (type: `string`):

Sort the workflows by the given criteria.

## `max_workflows` (type: `integer`):

How many free workflows to collect (20–2000).

## Actor input object example

```json
{
  "category": "AI Chatbot",
  "sort_by": "Relevancy",
  "max_workflows": 100
}
```

# Actor output Schema

## `overview` (type: `string`):

Table view of scraped N8N workflows using the dataset 'overview' view.

## `results` (type: `string`):

All scraped N8N workflows from the default dataset without view transformation.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("dadhalfdev/n8n-workflows-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("dadhalfdev/n8n-workflows-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call dadhalfdev/n8n-workflows-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dadhalfdev/n8n-workflows-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/xfd4YFOsoq6PkThvI/builds/VyMgxU0ZokG2fb34d/openapi.json
