{
  "openapi": "3.0.1",
  "info": {
    "title": "n8n Workflow JSON Extractor for AI Agents, RAG & Automation",
    "description": "Extract 14,000+ n8n workflow templates with importable workflow JSON, AI Agent node stacks, apps, views, paid prices & verified creators. Pure-HTTP 256 MB Actor with MCP Server & onlyNew monitor mode.",
    "version": "1.0",
    "x-build-id": "jDtihRfWPaKwAx5Oi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gridline-labs~n8n-workflows-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gridline-labs-n8n-workflows-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/gridline-labs~n8n-workflows-scraper/runs": {
      "post": {
        "operationId": "runs-sync-gridline-labs-n8n-workflows-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/gridline-labs~n8n-workflows-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-gridline-labs-n8n-workflows-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search across n8n workflow titles and descriptions (e.g. [\"RAG\", \"Lead Generation\", \"Slack AI\"]). Leave empty to browse without keyword filtering.",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Filter by one or more official n8n workflow categories (e.g. \"AI\", \"Marketing\", \"Sales\", \"AI RAG\", \"Lead Generation\"). Leave empty for all categories.",
            "items": {
              "type": "string",
              "enum": [
                "AI",
                "AI Chatbot",
                "AI RAG",
                "AI Summarization",
                "Content Creation",
                "CRM",
                "Crypto Trading",
                "DevOps",
                "Document Extraction",
                "Document Ops",
                "Engineering",
                "File Management",
                "HR",
                "Internal Wiki",
                "Invoice Processing",
                "IT Ops",
                "Lead Generation",
                "Lead Nurturing",
                "Marketing",
                "Market Research",
                "Miscellaneous",
                "Multimodal AI",
                "Other",
                "Personal Productivity",
                "Project Management",
                "Sales",
                "SecOps",
                "Social Media",
                "Support",
                "Support Chatbot",
                "Ticket Management"
              ]
            }
          },
          "apps": {
            "title": "App integrations filter",
            "type": "array",
            "description": "Filter workflows that use specific n8n apps/integrations (exact display names such as \"Slack\", \"Google Sheets\", \"HubSpot\", \"Supabase\", \"Gmail\", \"OpenAI Chat Model\").",
            "items": {
              "type": "string"
            }
          },
          "workflowIdsOrUrls": {
            "title": "Direct workflow IDs or URLs",
            "type": "array",
            "description": "Optional direct n8n workflow IDs (e.g. \"1954\") or URLs (e.g. \"https://n8n.io/workflows/1954-ai-agent-chat/\"). When provided, fetches these specific workflows directly.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "default",
              "views",
              "newest",
              "trending",
              "price_desc"
            ],
            "type": "string",
            "description": "How search results are ordered before applying maxResults.",
            "default": "views"
          },
          "pricingFilter": {
            "title": "Pricing filter",
            "enum": [
              "all",
              "free",
              "paid"
            ],
            "type": "string",
            "description": "Keep all templates, free templates only, or paid marketplace templates only. Filtered-out templates are never charged.",
            "default": "all"
          },
          "minViews": {
            "title": "Minimum total views",
            "minimum": 0,
            "type": "integer",
            "description": "Only return workflows with at least this many total views. Set 0 to disable. Skipped workflows are never charged.",
            "default": 0
          },
          "verifiedCreatorsOnly": {
            "title": "Verified creators only",
            "type": "boolean",
            "description": "Only return workflows published by verified n8n creators.",
            "default": false
          },
          "creatorUsernames": {
            "title": "Filter by creator usernames",
            "type": "array",
            "description": "Optional list of n8n creator usernames (case-insensitive) to keep.",
            "items": {
              "type": "string"
            }
          },
          "includeWorkflowJson": {
            "title": "Include full importable n8n workflow JSON & detail stats",
            "type": "boolean",
            "description": "Fetches each workflow's full detail endpoint to include the complete importable n8n workflow JSON, exact nodeCount, nodeTypes breakdown, recentViews, and full categories. Adds one workflow-json-detail event per enriched item.",
            "default": false
          },
          "includeNodeDetails": {
            "title": "Include detailed node metadata",
            "type": "boolean",
            "description": "Include per-node type, displayName, version, and categories in output. Leave false for compact AI-agent-friendly records.",
            "default": false
          },
          "onlyNew": {
            "title": "Monitor mode (only new workflows since last run)",
            "type": "boolean",
            "description": "Remembers previously delivered workflow IDs in a named Key-Value Store and only outputs newly discovered workflows on subsequent scheduled runs.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor state key",
            "type": "string",
            "description": "Custom state key for monitor mode so multiple scheduled tasks can track separate watchlists independently.",
            "default": "default"
          },
          "maxResults": {
            "title": "Maximum workflows to return",
            "minimum": 1,
            "maximum": 15000,
            "type": "integer",
            "description": "Maximum number of unique matching workflows to output and bill for in this run.",
            "default": 25
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}