# Activepieces Pieces & Flow Templates Scraper — Usage & JSON (`gridline-labs/activepieces-scraper`) Actor

Extract 770+ Activepieces integrations (live usage counts, actions, triggers, auth) and 420+ official workflow templates with importable flow JSON. Pure HTTP/JSON.

- **URL**: https://apify.com/gridline-labs/activepieces-scraper.md
- **Developed by:** [Gridline Labs](https://apify.com/gridline-labs) (community)
- **Categories:** Developer tools, Automation, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Activepieces Pieces & Flow Templates Scraper — Usage, Actions & Flow JSON API

Fast, pure-HTTP scraper for the official **Activepieces** open-source automation ecosystem. Extract all **770+ Pieces (integrations)** with live `projectUsage` popularity metrics, authors, categories, auth types, and full action/trigger schemas — plus **420+ official Flow Templates** with complete importable flow JSON.

Built by **[Gridline Labs](https://gridlinelabs.vercel.app)** — runs smoothly on **256 MB RAM** with zero headless browser overhead and full **Apify MCP** compatibility for Claude, Cursor, n8n, and autonomous AI agents.

***

### What Data Can You Extract?

#### 1. Activepieces Pieces (`mode: "pieces"`)

- Package identifier (`@activepieces/piece-slack`), short slug, display name, description, and latest version
- Live **`projectUsage`** counts (measure real-world adoption across Activepieces projects)
- Categories, authors, auth type (`OAUTH2`, `SECRET_TEXT`, `CUSTOM_AUTH`, `NONE`), and deprecation flag
- Action & trigger counts — plus optional deep enrichment (`includePieceDetails: true`) returning **every action & trigger definition** (`name`, `displayName`, `description`, `requireAuth`, `props[]`)

#### 2. Official Flow Templates (`mode: "templates"`)

- Template ID, title, summary, description, categories, tags, and author
- Complete `pieces[]` stack, `flowsCount`, and recursive `stepsCount`
- Full importable **`flows[]` JSON** blueprint (`includeFlowJson: true`)

#### 3. Monitor Mode (`onlyNew: true`)

Schedule daily or weekly runs with `onlyNew: true` to receive **only newly launched Pieces or Templates**. Previously seen items are skipped at **$0 cost**.

***

### Example Output (Enriched Piece)

```json
{
  "recordType": "piece",
  "id": "zZUzIbSqNaEhAlNQsWj9T",
  "name": "@activepieces/piece-slack",
  "slug": "slack",
  "displayName": "Slack",
  "projectUsage": 412,
  "actionsCount": 29,
  "triggersCount": 15,
  "totalOperations": 44,
  "categories": ["COMMUNICATION"],
  "authType": "OAUTH2",
  "version": "0.10.2",
  "url": "https://www.activepieces.com/pieces/slack",
  "actions": [
    {
      "name": "send_channel_message",
      "displayName": "Send Message To A Channel",
      "requireAuth": true,
      "props": ["channel", "text", "username", "blocks"]
    }
  ]
}
```

***

### Transparent Pay-Per-Event Pricing

- **`catalog-item`:** `$0.002` per matching Piece or Flow Template delivered (`$2.00 / 1,000` records)
- **`piece-actions-detail`:** `$0.003` per Piece only when `includePieceDetails: true` fetches the full actions/triggers schema
- Filtered-out and already-seen Monitor Mode records cost **`$0`**

***

### Companion Actors by Gridline Labs

- **[n8n Workflows & Templates Scraper](https://apify.com/gridline-labs/n8n-workflows-scraper)** — Extract 14,000+ n8n templates, views, paid pricing & importable workflow JSON.

# Actor input Schema

## `mode` (type: `string`):

Choose whether to extract Activepieces integration Pieces, official Flow Templates, or both in one run.

## `searchQuery` (type: `string`):

Optional case-insensitive keyword filter matching name, displayName, description, summary, authors, or piece tags (e.g. 'AI', 'Slack', 'CRM', 'Shopify'). Leave empty for the full catalog.

## `categories` (type: `array`):

Optional list of Activepieces categories (e.g. 'ARTIFICIAL_INTELLIGENCE', 'COMMUNICATION', 'SALES_AND_CRM', 'PRODUCTIVITY', 'DEVELOPER_TOOLS', 'COMMERCE').

## `pieceNames` (type: `array`):

Optional list of piece slugs or short names (e.g. 'slack', 'openai', '@activepieces/piece-notion'). In pieces mode, returns matching pieces; in templates mode, returns templates using any listed piece.

## `minProjectUsage` (type: `integer`):

Only include Pieces used in at least this many Activepieces projects (pieces mode). Set 0 for all.

## `excludeDeprecated` (type: `boolean`):

Skip Pieces flagged as deprecated in the official registry.

## `sortBy` (type: `string`):

How to sort matched results before applying maxResults.

## `includePieceDetails` (type: `boolean`):

Fetches each Piece's full manifest from /api/v1/pieces/{name} to include every action name, trigger name, description, auth requirement, and input property list. Triggers the piece-actions-detail event ($0.003/piece).

## `includeFlowJson` (type: `boolean`):

Includes the full Activepieces flows\[] JSON blueprint inside each template record (templates/both mode). No extra charge beyond catalog-item.

## `onlyNew` (type: `boolean`):

Persist seen IDs across scheduled runs and output only newly added Pieces or Templates. Previously seen items are skipped at $0 cost.

## `monitorKey` (type: `string`):

Named state key used when onlyNew is enabled so independent schedules don't collide.

## `maxResults` (type: `integer`):

Maximum number of matched records to deliver to the dataset.

## Actor input object example

```json
{
  "mode": "pieces",
  "searchQuery": "",
  "categories": [],
  "pieceNames": [],
  "minProjectUsage": 0,
  "excludeDeprecated": true,
  "sortBy": "usage",
  "includePieceDetails": false,
  "includeFlowJson": true,
  "onlyNew": false,
  "monitorKey": "default",
  "maxResults": 50
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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("gridline-labs/activepieces-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("gridline-labs/activepieces-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 gridline-labs/activepieces-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gridline-labs/activepieces-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/cj5IAS1FkEWJw9JdM/builds/aEPq9cwFveEIlSwgH/openapi.json
